GazNicki Posted September 6, 2010 Share Posted September 6, 2010 Hi.I have successfully installed the PretaShop store and can access the Admin Panel of the store, but I cannot access the store as a user.The URL for the store is http://www.gptsolutions.co.uk/pretastore/The page displays as blank.Has anyone had this error before, and can anyone help me? I have tried serveral different attempts at installing the program, but to no avail.Please help, i'm tearing my hair out with it. Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2010 Share Posted September 6, 2010 What version of PHP are you using? Have you tried going to config/config.inc.php and temporarily changing 'display_errors' to 'on'? Link to comment Share on other sites More sharing options...
GazNicki Posted September 6, 2010 Author Share Posted September 6, 2010 Thanks for the advice.My PHP is version: 5.2.9After turning on the Display Errors Function, I have the following errors on the screen: Warning: include(/home/gptsolut/public_html/pretastore/tools/smarty/compile/% Link to comment Share on other sites More sharing options...
GazNicki Posted September 6, 2010 Author Share Posted September 6, 2010 For reference, I have also included a PHPINFO file for you to view if it helps:http://www.gptsolutions.co.uk/phpinfo.php Link to comment Share on other sites More sharing options...
GazNicki Posted September 6, 2010 Author Share Posted September 6, 2010 After some tweaking I now have a completely different result in my output.Now the name of the store appears at the top of the page, however there is nothing else other than a blank screen.I am now going to delete the directory from my server and DROP the tables from the SQL to remove this program, and then start a fresh with a completely new install. Hopefully this may work. I will report any further issues or advancements here. Link to comment Share on other sites More sharing options...
GazNicki Posted September 6, 2010 Author Share Posted September 6, 2010 Now SOLVEDThis was an issue with the permissions of the folders. While the permissions were suitable for the installation of the application, they were NOT suitable for the running of the application.All required folders for installation were set to 777 with Recursive for sub-directories & sub-files and it now works perfectly.I would appreciated if someone could however, double check to let me know if there are ANY files I should change the permissions to 766 or 755. Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2010 Share Posted September 6, 2010 You should be using chmod 755 instead of chmod 777 for directories and chmod 644 for files. I use these permissions on all my directories and files and PrestaShop works fine for me. Your server might be configured in a way so that only chmod 777 works. This is insecure, since anyone can write to your files. You should try to find a way to configure your server so PrestaShop works with chmod 755 permissions. Link to comment Share on other sites More sharing options...
GazNicki Posted September 7, 2010 Author Share Posted September 7, 2010 Thanks for the advice.Almost all directories are now 755 and the files are now 644. However, the tools/smarty/complie directory needs to be at least 775. Is this still secure, and is this a problem with my server or just the way it needs to be??Thanks again for all your help. Link to comment Share on other sites More sharing options...
rocky Posted September 7, 2010 Share Posted September 7, 2010 Yes, at least the "Everyone" group doesn't have "Write" permission now. Link to comment Share on other sites More sharing options...
GazNicki Posted September 7, 2010 Author Share Posted September 7, 2010 Excellent, thank you very much. The same goes for the IMG folder too as this was giving me an error in the Admin Panel rather than displaying the images. However, when the store is complete, I may change this back to 755 for the folders and 644 for the files to simply run the store.Many thanks Rocky. 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