fatheeym Posted July 9, 2016 Share Posted July 9, 2016 according to the prestashop official docs the best chmood for security is (775 for folders and 664 for files) but when i make this i found this error in translation http://prntscr.com/bqvusp when i make all files and folders 777 it works fine so what should i do Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2016 Share Posted July 9, 2016 directories: 755files: 644 1 Link to comment Share on other sites More sharing options...
fatheeym Posted July 9, 2016 Author Share Posted July 9, 2016 thanks for your replay but after i have changed it to directories: 755 files: 644 i;ve got the same message when i try to translate Link to comment Share on other sites More sharing options...
El Patron Posted July 10, 2016 Share Posted July 10, 2016 check that your domain is a group owner....this is typical set up for most. If you have the incorrect owner then 777 would be needed but that is big security issue. learn more here https://www.mkssoftware.com/docs/man1/chown.1.asp contact your hosting or webmaster for assitance if you do not familiar with executing shell commannds like chmod. Link to comment Share on other sites More sharing options...
fatheeym Posted July 10, 2016 Author Share Posted July 10, 2016 i don't know is there any tutorials or toipcs talk about this and how to fix this ?? and if i go to whith my ip would it work???? for informations my vps on ohv and domain in namecheap pointing to my vps with a a record Link to comment Share on other sites More sharing options...
fatheeym Posted July 10, 2016 Author Share Posted July 10, 2016 and iam only have a root user Link to comment Share on other sites More sharing options...
El Patron Posted July 10, 2016 Share Posted July 10, 2016 search for chown, because usually your shop will run as user 'yourdomainwiithoutwww', not as root. There are loads of tuts on www outside of ps you can search...I hope this helps. Link to comment Share on other sites More sharing options...
fatheeym Posted July 10, 2016 Author Share Posted July 10, 2016 i have create a new user with a root privileges and disabled the user root loginand changed all files chown to the new user with this command sudo chown -v -R user:user /var/www of course i have replaced user with my username and then add this find /var/www -type d -exec chmod 755 {} \; find /var/www -type f -exec chmod 644 {} \; but it still the same problem Link to comment Share on other sites More sharing options...
fatheeym Posted July 10, 2016 Author Share Posted July 10, 2016 should i hire a free-lancer for this ? Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 any answer please Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 Seems you are trying to install an incompatible module with your Prestashop version in use. Which module is it ? Don't think you must hire someone for this and also don't think it is a writing permissions problem. The error says: ... module directory dose not exist. Please check on FTP if the folder of the module exists. If not, try to create it manually and add the content manually to that folder. If the module does not appear on module list on back-office, so it is clear that it is not compatible with your Prestashop version. Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 BTW, I've seen you are on OVH VPS, like me. Which configuration and php version in use ? You are using any php cache module ? Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 thank you for your replay it is a permission problem because when i set all files to 777 it works fine and iam not trying to install a module it just a translation Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 my php v is 5.6 i don't using any cashing module yet Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 by the way the message say that the module file not writable Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 Prestashop version in use ? This problem could be come from a non native theme in use, which is installing extra modules.... You are using native theme ? Native modules, or added something extra (paid/free) Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 Fatal error is on line 2049 -> module directory does not exist..... Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 i use the last ps version and iam using a lot of modules and my theme is wearhouse the best seller theme in themeforest Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 As I said, it could be a problem of your theme. Very often had in the past with foreign addons/themes. I'm sure it is not a writing permissions problem, but a bad coded content of the theme in use. Bestsellers don't say nothing, because at the end what is managing all, is the server and what is written in the file the server should manage. The best way to see if problem is coming from extras in use, is to switch to native theme and disable all overrides and non-native modules. First you can do on tab: preferences -> themes and the second one on tab: advanced paramaeters -> performance -> debug mode -> disable overrides an non native modules BOTH set to YES. Link to comment Share on other sites More sharing options...
jefathey Posted July 11, 2016 Share Posted July 11, 2016 i've tried all this still the same thing and by the way this message appear in every page in dashboard http://prntscr.com/brdjxe that in cas the folders not 777 Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 Whom installed you the VPS? You are having a strange server configuration. Which package for VPS are you using ? Linux ? Windows ? My VPS root on OVH is completely different architecture as yours.... /var/www/vhosts/vpsxxxxxxxxx/httpdocs/ On folder httpdocs than you will find all domains in each own folder, so: /var/www/vhosts/vpsxxxxxxxxx/httpdocs/domainA, /var/www/vhosts/vpsxxxxxxxxx/httpdocs/domainB etc.... Are you sure you are on a VPS ? Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 of course and iam using Ubuntu 15.10 Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 Strange... I'm on ubuntu 14.04.1 OVH France. Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 how did you setup the domain Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 my domain in namecheap i jyst added a a record and configure the file which i have copied from default_ssl. conf to my informatins and Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 SSL certificate bought on OVH, installed with OVH Control panel. Domain is on Austrian server. I simply pointed ALL DNS A-Records entries to the IP of OVH. On OVH I don't have registered any domain. This make easier for to move domain to everywhere if needed. Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 the same as my but now i think its permissions error Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 do you have the dns button in green or red Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 hi all now i buy a temporary vps to test if this problem just wwith my server or global and i've got the same thing yoy can test it your self vps info ip: 104.131.10.43 root password: Pass.1993 --------------------- prestashop : http://104.131.10.43/admin507r4v8az user: [email protected] pass:adminadmin ----------------- now the current permissions is 755 for folders and 644 for files if you changed it to 777 it will work fine test it in the translations try to translate any thing Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 ON THIS TEST INSTALL: Your error is related to smarty and cache, which is a theme related one. See on tab advanced parameters performance -> smarty. Caching type - File System (the directory /var/www/html/cache/smarty/cache must be writable) Try to do the following: ON FTP delete all folders and files contained in /cache/smarty/cache EXCEPT index.php and last_template_flush Strange, is that when I try to access front office I will get a blank page (same when I try to access tab products on BO). For this enable debug mode: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 If I activate CCC than I will get the error: To use Smart Cache directory /var/www/html/themes/default-bootstrap/cache must be writable. Another cache problem. Check wrtiting permissions at /themes/default-bootstrap/cache. You are using php-fpm ? Which cache did you configured on the server settings ? opcode cache ? Link to comment Share on other sites More sharing options...
jefathey Posted July 11, 2016 Share Posted July 11, 2016 Fatal error: Uncaught --> Smarty: unable to write file /var/www/html/cache/smarty/compile/fa/20/76/wrt5783d40b9e5f83_50016273 <-- thrown in /var/www/html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46thats what i got i found every thing relted with file permissions if i make it 777 every thing will be fine and work correctly :/ Link to comment Share on other sites More sharing options...
jefathey Posted July 11, 2016 Share Posted July 11, 2016 i didn't configured cache on the server Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 Finally i've solved it sounds like this man El Patron was right all solve was in this one line of code chown -R www-data:www-data and the prestashop path i don't know what that mean but it solved every thing and now it works fine with the permissions i need please rename it as solved Link to comment Share on other sites More sharing options...
selectshop.at Posted July 11, 2016 Share Posted July 11, 2016 The commando line set recursively via SSH the correct (writing) permissions for the whole www folder. chown is used for setting the ownership of folder or file. The explanation of -R had been answered (it recursively descends to all sub-folders). So the last thing is about www-data written repeated.www-data:www-data the first one is user, the second is group. Your username can be added as a member of www-data group, by this command sudo adduser user www-data, user can be replaced with your username. That command will result in user www-data. Link to comment Share on other sites More sharing options...
fatheeym Posted July 11, 2016 Author Share Posted July 11, 2016 i still not under stand one thing why it works fine with www-data and not working with root or my user Link to comment Share on other sites More sharing options...
selectshop.at Posted July 12, 2016 Share Posted July 12, 2016 This is a question for ubuntu forum.... Several users having the same problem (if you google that). Perhaps some instance problems ? I don't know. I didn't had this problem, but as told before, my architecture is an completely other as yours.... Link to comment Share on other sites More sharing options...
fatheeym Posted July 21, 2016 Author Share Posted July 21, 2016 hi every one now i know why this happens first the apache have owner how can control the files edit and move etc you can add your own user name by this code sudo nano /etc/apache2/envvars now find “export APACHE_RUN_USER=www-data” and replace the www-data with your username and the next line for the group thats it 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