Installing Prestashop 1.7.6.2
An error has occured:
You need to grant write permissions for PHP on the following directory: /var/www/html/presta
This error appears while installing Prestashop. It’s staying with 0%.
I have:
- centos 7
- PHP 7.3.14
Installing Prestashop 1.7.6.2
An error has occured:
You need to grant write permissions for PHP on the following directory: /var/www/html/presta
This error appears while installing Prestashop. It’s staying with 0%.
I have:
2
Answers
I've used apache:apache and somehow it's working. But right now i've got another problem: PrestaShop installation needs to write critical files in the folder var/cache. Please review the permissions on your server.
change var/www/html/presta owner to www-data if you’re using apache or to nginx if you’re using nginx.
chown -R www-data:www-data /var/www/html/presta
But DO NOT change permissions to 777 since this wil open your site completely, change directories to 0755 and files to 0644 instead.
Inside shop root folder:
find . -type f -exec chmod 644 -- {} +
to set proper permissions for all filesfind . -type d -exec chmod 755 -- {} +
to set proper permissions for all directorieschmod 666 .htaccess
to set proper permissions for .htaccess