Jump to content

Write permissions for PHP installation error


Recommended Posts

Hi everyone I am trying to install PrestaShop 8.2.0 on Ubuntu 22.04 with PHP8.1

When I browse to the install, I get this error message:

Quote

 

You need to grant write permissions for PHP on the following directory: /var/www/html


 

My current permissions are set to 0644 but still unable to get past this first step

image.png

presta error.png

Link to comment
Share on other sites

OK I finished the install and changed permissions back to 664 and the same issue and pages do not load.


Also tried using 775 and site does not work.

Changed permissions back to 777 and site loads.

I can't seem to figure out what is causing this. Do you have any other thoughts?

 

Link to comment
Share on other sites

  • 7 months later...

owner and group. having similar problem on mx linux. Have running install on WAMP, moved verything to LAMP and strugling to connect to DB. On linux I see group and owner as root/root, think it has to be something with www-data. Don't know why on f... windoze it's working fine...

Link to comment
Share on other sites

  • 2 weeks later...

What if it's Windows? The same error. Both local user and system have write permission to the directory, sample php file with file_put_contents function works creating the file. 

ps-win.thumb.png.8aae0e05e0c5827d86f7cd7fbabf77be.png

 

Link to comment
Share on other sites

This is Windows so setting permissions is a little bit different than in Linux,  I know that it requires write and execute permissions, full permissions are granted (equivalent to 777 in Linux) but still doesn't work. Will try in WSL but it should work in Windows too, I have no problems with write permission when I use my own PHP scripts.

Edit: Ok, looks it was Apache's configuration causing this problem (virtual host settings for this directory), changed and now it works.

Edited by tomsyty (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...