Problem: Files/folders created using a web interface have apache:apache ownership.

dachmo

Verified User
Joined
Dec 24, 2004
Messages
7
Location
Toledo, Ohio
Any files or folders that are created using a script accessed via the webserver are being created with the ownership of apache:apache. According to http://www.directadmin.com/forum/showthread.php?threadid=3002&highlight=apache+user
I was under the impression that they should be created as user:apache. This is leading to some very large problems as users cannot delete the files that they are creating on their accounts. Anyone have any info on how to solve this problem? I'd really like for it to work like it's supposed to and set user:apache since it's more secure than just user:user with wide permissions, so I'm reluctant to run the script in the referenced post.

Thanks for the help!

OS: Fedora Core 3
Apache 1.3.33
DirectAdmin 1.23.3
 
They are created as user:user on my system.
Debian 3.0
DA 1.23.3

The link you posted is in regards to the public_html directory that is created with every domain, not files uploaded through DirectAdmin's FileManager. You might want to make sure that all public_html directories belong to the right user and group and are chmod'd properly. Other than that I have no other ideas, why files are being created with different permissions on your server.
 
The directories that are created upon account creation have the correct permissions, it's just directories and files that are created via install scripts, or PHP upload scripts, etc. Files uploaded through DA's filemanager have user:user permissions.
 
Last edited:
We encounter the same probleme. We have a permission error with a script trying to write or create a file. And the administrator don't want to use suPHP or something else like that.
OS: Fedora Core 2
Apache 1.3.33
DirectAdmin 1.23.3

Synaps

-- ... --
 
This is already being discussed somewhere else around this forum and a lot of other forums.

PHP is ran as the user Apache and by this the process is owned by Apache and by this the files are being written as Apache.

There isn't an easy way to fix this except just running some script that changes the files owned by apache:apache in the users Home dir to user:user.

http://www.directadmin.com/forum/showthread.php?s=&threadid=2420&highlight=php+files+owned+apache

http://www.directadmin.com/forum/showthread.php?s=&threadid=6084&highlight=php+files+owned+apache
 
Last edited:
Thanks a lot for this link.
:rolleyes:

Synaps

-- ... --
 
Last edited:
I installed all of this SuPHP, but it doesn't seem to do anything, can you tell me what i should do to make it work and set the permssions correctly?
 
Back
Top