Question

Can't upload files since droplet rebuilt

Hi,

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 123.45.123.45:30463] PHP Warning:  unlink(upload/import/dupes_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.241989 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/dupesdisplay_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242010 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/errorrecords_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242027 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/errorrecordsonly_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242044 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/status_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index

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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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 ~]#

Thanks.

David