TourisT Posted July 10, 2012 Share Posted July 10, 2012 Hi, I am installing Prestashop 1.5.0.13 on a ubuntu 12 64 bits server (Amazon EC2). Apache2, mysql, php5.3 installed. Prestashop is running but the first configuration step blocks at: Write permissions on files: OK: ~/themes/prestashop/lang/ ~/themes/prestashop/pdf/lang/ ~/themes/prestashop/cache/ ~/sitemap.xml NOT OK ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/translations/ ~/upload/ ~/download/ I access my EC2 server using Filezilla. I tryed setting permissions first to 777 thanks to several forums. That didn't solve my problems. http://www.prestashop.com/forums/topic/168796-solved-permissions-issues/ I then read that: - folders should be 755 - files should be 644 which sound better to me on a security point of view. That didn't change anything to my access problem. Any idea what I should look for? Thanks, Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 Hi Tourist, Does anything happen when you refresh the configuration page to check the permissions again? And who is your hosting provider? -Mike Link to comment Share on other sites More sharing options...
TourisT Posted July 10, 2012 Author Share Posted July 10, 2012 Wahou! That's a fast answer! As mentionned, I am on Amazon AWS (EC2). It's a Ubuntu 12.04 64 bits server. Unfortunately nothing happens when I refresh :S [i am used to setup servers / develop in php and working in e-commerce since 5 years so I wouldn't have missed that ] Any idea? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 Wahou! That's a fast answer! As mentionned, I am on Amazon AWS (EC2). It's a Ubuntu 12.04 64 bits server. Unfortunately nothing happens when I refresh :S [i am used to setup servers / develop in php and working in e-commerce since 5 years so I wouldn't have missed that ] Any idea? If you've properly configured your permissions as listed above, you should no longer be blocked by this page. Since this is a brand new installation, it might be worthwhile to delete everything and reupload it, and then double-check all the permissions before launching the installer. Hopefully that would get you around this! -Mike Link to comment Share on other sites More sharing options...
TourisT Posted July 10, 2012 Author Share Posted July 10, 2012 I will give it a try and keep you posted. Before I get started, please confirm if the recommended setup is: 1. setting permissions to 777 recursively on all files and folders 2. setting up permissions to 755 for folders and 644 on files recursively on all files and folders 3. Anything else? Thanks, Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 I will give it a try and keep you posted. Before I get started, please confirm if the recommended setup is: 1. setting permissions to 777 recursively on all files and folders 2. setting up permissions to 755 for folders and 644 on files recursively on all files and folders 3. Anything else? Thanks, That should work fine, so let us know how that goes! -Mike Link to comment Share on other sites More sharing options...
TourisT Posted July 10, 2012 Author Share Posted July 10, 2012 Maybe I wasn't clear but that was a question... I was looking for your recommendation as to I should use 1, 2 or 3? Thanks, Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 Maybe I wasn't clear but that was a question... I was looking for your recommendation as to I should use 1, 2 or 3? Thanks, I apologize, it actually depends a little on your specific host and server configuration. For most hosts, option 2 is fine, but some may require option 1 in order to work properly. You can also check out our Getting Started guide here. -Mike Link to comment Share on other sites More sharing options...
TourisT Posted July 11, 2012 Author Share Posted July 11, 2012 (edited) My last findings: Here is the situation: Write permissions on files: NOT OK ~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/translations/ ~/upload/ ~/download/ ~/sitemap.xml OK ~/themes/prestashop/lang/ ~/themes/prestashop/pdf/lang/ ~/themes/prestashop/cache/ Question: What are the access rights for the "themes" folder? According to Filezilla it is 775. so I tried setting up my root directory to 755, then 775, then 777: > sudo chmod -Rv 755 /var/www/site2 Note: I enable verbose to ensure something happens 755 -> same result, even if refreshing the prestashop install page with ctrl + F5 which should purge cached values > sudo chmod -Rv 775 /var/www/site2 Note: I had a feeling that this was much longer to process 775 -> same result, even if refreshing the prestashop install page with ctrl + F5 which should purge cached values > sudo chmod -Rv 777 /var/www/site2 777 -> Your configuration is valid, click next to continue! Here we are! But caution, it's working doesn't mean it's best setup for server security and I don't really feel comfortable having directories and files on 777 access level. Solution: change your apache user. You can do it for example using nano: > sudo nano [in nano] ctrl + R (read) input /etc/apache2/envvars modify the lines : export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data to: export APACHE_RUN_USER=ubuntu export APACHE_RUN_GROUP=ubuntu [or any other user you may prefer, but he needs to be define at the ubuntu level] !Dont forget to restart apache! >sudo service apache2 restart (reload may be sufficient if you cannot restart) then set permissions back to 755: > sudo chmod -Rv 755 /var/www/site2 755 -> Your configuration is valid, click next to continue! Enjoy! Edited July 11, 2012 by TourisT (see edit history) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 11, 2012 Share Posted July 11, 2012 Great, I'm glad you were able to resolve his, and thank you for your extensive solution! I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
n0dlehs Posted October 21, 2013 Share Posted October 21, 2013 Hi, I am installing Prestashop 1.5.0.13 on a ubuntu 12 64 bits server (Amazon EC2). Apache2, mysql, php5.3 installed. Prestashop is running but the first configuration step blocks at: Write permissions on files: OK: ~/themes/prestashop/lang/ ~/themes/prestashop/pdf/lang/ ~/themes/prestashop/cache/ ~/sitemap.xml NOT OK~/config/ ~/cache/ ~/log/ ~/img/ ~/mails/ ~/modules/ ~/translations/ ~/upload/ ~/download/ I access my EC2 server using Filezilla. I tryed setting permissions first to 777 thanks to several forums. That didn't solve my problems. http://www.prestashop.com/forums/topic/168796-solved-permissions-issues/ I then read that: - folders should be 755 - files should be 644 which sound better to me on a security point of view. That didn't change anything to my access problem. Any idea what I should look for? Thanks, Dear Mike, Did you use WGET to install PS or did you FTP to your VPS? I have a vps and wanting to migrate my store next month but want to use SSH with WGET. Any help would be awesome... Link to comment Share on other sites More sharing options...
Recommended Posts