By elgaliamine
Hello,
I can’t upload any image or plugin from the backoffice prestashop, when I set the permission of upload folder to 777 it’s work fine, but i must put 755 for reason of security,
My website run under apache2, ubuntu 15.02
Any help please
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!
You should be able to correct this by ensuring the proper ownership of the files rather than setting them to 777. The Apache process on Ubuntu runs as the user www-data. Assuming your web files are in the default directory of /var/www/html, the following command will set the ownership properly and should allow files to be written without the 777 permissions on them.
sudo chown -Rf www-data:www-data /var/www/html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.