Jump to content

[solved]what is the right chmod or file permissions


fatheeym

Recommended Posts

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

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

i have create a new user with a root privileges and disabled the user root login
and 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

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

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

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

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

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

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

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

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 46

thats 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

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

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

  • 2 weeks later...

hi every one 

now i know why this happens :D

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 :D

thats it

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...