BRP-shop Posted November 28, 2024 Share Posted November 28, 2024 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 Link to comment Share on other sites More sharing options...
Divine Posted November 28, 2024 Share Posted November 28, 2024 Hello, try 664 or 775. Link to comment Share on other sites More sharing options...
BRP-shop Posted November 28, 2024 Author Share Posted November 28, 2024 Neither worked but somehow 777 worked for permissions. I am going to finish my install and set it back to 775 and see if I still have issues. Link to comment Share on other sites More sharing options...
Divine Posted November 29, 2024 Share Posted November 29, 2024 Ok let us know if you have other issues Link to comment Share on other sites More sharing options...
BRP-shop Posted November 29, 2024 Author Share Posted November 29, 2024 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 More sharing options...
darkin Posted June 30 Share Posted June 30 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 More sharing options...
tomsyty Posted July 12 Share Posted July 12 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. Link to comment Share on other sites More sharing options...
darkin Posted July 14 Share Posted July 14 Put folder /sklep permission to 777 (owner, group, others are permitted to read/write) for installation. Link to comment Share on other sites More sharing options...
tomsyty Posted July 20 Share Posted July 20 (edited) 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 July 20 by tomsyty (see edit history) Link to comment Share on other sites More sharing options...
darkin Posted July 20 Share Posted July 20 (edited) Nice to hear you sorted it. Maybe you can write it down what was wrong, so other people with similar problem can find a fix. Good luck Edited July 20 by darkin (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now