14
I think I answered your questions about 5 times already in previous posts.
Quote:
The files aren't owned by nobody they are owned by the virtual host name as of now. Only apache is running as nobody.
Files can not be owned by virtual host name, there must be a user for that account. nobody is just a system account for un-assigned files with no access permission, no login permissions, no email basically restricted user permission with acess to nobody.
Quote:
If I log in as root and create a new file it is not going to be owned by nobody, or the virual host name john, it going to be root, right?
Correct. In special cases if there is no account for that user files might be assigned to the number, but you should not worry about it, it's only when you try to preserve permissions in special cases.
All files within your website SHOULD belong to the same user as apache is running as. And you should run apache as apache user, most likely it already has properly setup permissions.
Quote:
Let's go back to the problem.
The problem is that I have to chmod the folders cache and c_template as 777.
What I need is 755. So if I change apache to run as apache rather then nobody can I then change ownership of folders cache and c_template to be apache rather then john and chmod only those folders to 755?
See my post #11 on how to chmod ALL directories. There is no need for WorldWideWrite permissions on any folder. You should give only read and sometimes required execute permissions to all folders for others.
Gediminas