samovar Posted November 20, 2011 Share Posted November 20, 2011 The PrestaShop Installer program instructs to set the folder write permissions as I have show below (these are all copied directly from the Installer screens); however, it does not say to set write permission on the folder themes/ or the folder prestashop/. If you do not set write permission on themes/; then, the Theme Installer program cannot copy a new theme-folder into the themes/ folder. The installer says to "Set write permissions on folders and subfolders/recursively", which I do using the command "chown -R", where -R means recursively. [Note: Instead of doing "chmod 755", I'm doing "chown -R www-data:www-data directory_name". This has the same effect. This command is giving ownership of directory_name/ to the Apache web server. So, Apache ends up having write permission on directory_name because it has ownership of directory_name.] What this does in the case of the command: sudo chown -R www-data:www-data themes/prestashop/lang/ is to set write permission on the last directory and everything below it. So; the directory lang/, and every file and folder below it has write permission set. However, the two directories in front of /lang do not have write permission set. So, themes/ and prestashop/ do not have write permission set. Now; here is the really damaging problem: after I run my chown commands to set the permissions the way I think I have been told to set them, and I then press the refresh button on the browser, the Installer Program changes the web page to tell me I've got the permsissons set correctly; it does this by changing the directories from the something-is-wrong red color to the everything-is-ok green color. I am allowed by the installer to move on to the next step of the install with the permissions set incorrectly; but, I think they are correct, because I have feedback telling me everything is OK. COPPIED FROM INSTALL PROGRAM: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set write permissions on files and folders: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /config /tools/smarty/compile /tools/smarty/cache /tools/smarty_v2/compile /tools/smarty_v2/cache /sitemap.xml /log COPPIED FROM INSTALL PROGRAM: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set write permissions on folders and subfolders/recursively: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /img /mails /modules /themes/prestashop/lang /themes/prestashop/cache /translations /upload /download COMMANDS I USE TO CREATE THE WRITE PERMISSIONS: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sudo chown www-data:www-data config/ sudo chown www-data:www-data tools/smarty/compile/ sudo chown www-data:www-data tools/smarty/cache/ sudo chown www-data:www-data tools/smarty_v2/compile/ sudo chown www-data:www-data tools/smarty_v2/cache/ sudo chown www-data:www-data sitemap.xml sudo chown www-data:www-data log/ sudo chown -R www-data:www-data img/ sudo chown -R www-data:www-data mails/ sudo chown -R www-data:www-data modules/ sudo chown -R www-data:www-data themes/prestashop/lang/ sudo chown -R www-data:www-data themes/prestashop/cache/ sudo chown -R www-data:www-data translations/ sudo chown -R www-data:www-data upload/ sudo chown -R www-data:www-data download/ 1 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