Can't upload files since droplet rebuilt

Posted August 10, 2019 469 views


Yesterday I need to do some test with a droplet that has installed a CRM running on PHP, Apache, MariaDB; so I made a snapshot, test and after the test I rebuild the droplet to the snapshot taken before.

Since the rebuilt I can’t upload any file images, CSV, etc., to the CRM. I see some errors like:

[Sat Aug 10 11:16:52.241907 2019] [php7:warn] [pid 9454] [client] PHP Warning:  unlink(upload/import/dupes_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer:
[Sat Aug 10 11:16:52.241989 2019] [php7:warn] [pid 9454] [client] PHP Warning:  unlink(upload/import/dupesdisplay_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer:
[Sat Aug 10 11:16:52.242010 2019] [php7:warn] [pid 9454] [client] PHP Warning:  unlink(upload/import/errorrecords_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer:
[Sat Aug 10 11:16:52.242027 2019] [php7:warn] [pid 9454] [client] PHP Warning:  unlink(upload/import/errorrecordsonly_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer:
[Sat Aug 10 11:16:52.242044 2019] [php7:warn] [pid 9454] [client] PHP Warning:  unlink(upload/import/status_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer:

Obviously I’ve checked file permissions and they are 775 or 755 as the CRM vendor request and the user Apache is the owner of all the directory and files on Apache root directory, I’ve also tried using 777 with no luck. There are space on disk too.

Does anybody knows what may be happening?

Thanks for your help.

edited by MattIPv4
1 comment
  • Hello,

    Can you share with us the permissions of the upload/import/ folder? It sounds like that the import folder does not either have write/execute permissions or is not owned by the Apache user.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi Bobby,

Thanks for your interest on my question. These are the permissions

[root@crm ~]# ll -h /var/www/html/crm/ | grep upload
drwxrwxr-x. 5 apache apache 68K Aug 9 00:21 upload
[root@crm ~]#