How do I CHMOD a file owned by Apache?
I am installing Magento on a Fasthosts dedicated server and I have the following problem:
The installation process requires me to change the permissions of a folder (and its contents) in order to proceed with the installation. The folder in question is ../var/session 1. I tried changing the permissions in Filezilla but I was unable to do so 2. I tried changing the permissions in File Manager within Plesk but I was unable to do so as the folder is 'owned' by Apache 3. I enabled shell access to the domain/hosting set up in Plesk so I could login via SSH using Putty and attempted to CHOWN the folder in question but this would not work 4. I presume that the correct way to do it is via SSH while logged in as root...? The problem is I have no idea of the syntax for navigating using Putty to the domain directory of a particular domain when logged in as root. I would be really grateful if someone could help me with this! Thanks, Ben |
Hi,
To change ownership with CHOWN Quote:
Quote:
To change permissions for a folder Quote:
Quote:
...but chmod is more fine tuned, use the numbers...you can calculate these and then use the number instead... Chmod can be a life saver...learn all there's to learn about it! Luck! And, by the way: welcome to the forum :) Thor |
Thanks!
The complete path for the domain is httpdocs/var/session and using the command you suggest, returns the error 'No such file or directory'. The root login is for the dedicated server and not for the hosting/domain I have created on it and which I am trying to configure. I'm guessing my problem is with the path I am using? Ben |
Quote:
Quote:
If it's not, enter everything...for example, to chmode a file on apache, I had to enter: Quote:
Been there too dont worry :D Thor |
2 points:
1. there is no '+r' http://linux.die.net/man/1/chmod 2. don't use '-R' which does recursive(!) changes unless you really want that.... |
All times are GMT -5. The time now is 05:45 PM. |