nicero Posted September 23, 2015 Share Posted September 23, 2015 I recently installed for the first time PrestaShop latest version (1.6.1.1) in a subdirectory (/prestashop/) in my VPS. As soon as I uploaded all PrestaShop files I modified owner and permissions of files and directories: chown -R www-data:www-data prestashop find prestashop -type d -exec chmod 777 {} + find prestashop -type f -exec chmod 644 {} + but I noticed that the front end did not load CSSes files so it shows up not formatted. I thought that this was due to some path problems so I checked URLs and paths but URI in Preferences -> URL and SEO is set as: base_URI: /prestashop/ I start looking around and I read that the problem may be due to an active SSL on a non-SSL CDN, but SSL di disabled. But nothing up to now fixed the problem. I did not change any .htaccess. Thank you for any help. Link to comment Share on other sites More sharing options...
Twicode Posted September 24, 2015 Share Posted September 24, 2015 Would you have an URL where we could check ? Link to comment Share on other sites More sharing options...
nicero Posted September 24, 2015 Author Share Posted September 24, 2015 Thank you for answering. http://www.enrico.io/prestashop/ Link to comment Share on other sites More sharing options...
Twicode Posted September 25, 2015 Share Posted September 25, 2015 (edited) Do you have this folder /prestashop/themes/default-bootstrap ? In fact, it seems that all your files send an error 500. What kind of hosting do you have ? Edited September 25, 2015 by Twicode (see edit history) Link to comment Share on other sites More sharing options...
nicero Posted September 25, 2015 Author Share Posted September 25, 2015 It's a OpenVZ based VPS. I may configure it as I like if you think that there's something wrong. But the admin back end works perfectly and my other two Wordpress web sites work. also. Any suggestion? Link to comment Share on other sites More sharing options...
nicero Posted September 25, 2015 Author Share Posted September 25, 2015 (edited) I looked at Apache's error.log file and it reported the following two errors: /var/www/enrico.io/htdocs/prestashop/themes/.htaccess: Deny not allowed here, referer: http://www.enrico.io/prestashop/ /var/www/enrico.io/htdocs/prestashop/modules/.htaccess: Deny not allowed here, referer: http://www.enrico.io/prestashop/ The .htaccess files in "modules" and "themes" is the same: <FilesMatch "\.tpl$"> Deny from all </FilesMatch> I commented the "deny" line from both the files and the template loaded correctly. I then looked around about this issue and found it was reported here. I followed the suggestion by changing the .htaccess to: <FilesMatch "\.tpl$"> Require all denied </FilesMatch> but it didn't work, and the error was again (this time with "require"): /var/www/enrico.io/htdocs/prestashop/modules/.htaccess: Require not allowed here, referer: http://www.enrico.io/prestashop/ /var/www/enrico.io/htdocs/prestashop/modules/.htaccess: Require not allowed here, referer: http://www.enrico.io/prestashop/ so I simply commented the "deny" line again. Edited September 25, 2015 by nicero (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