skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

    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.


  2. 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 files

    find . -type d -exec chmod 755 -- {} + to set proper permissions for all directories

    chmod 666 .htaccess to set proper permissions for .htaccess

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search