MortysTW |
02-09-2006 10:17 PM |
Quote:
Originally Posted by Aceman
I have a problem:
Files generated via a php script (un tar'n a file for example) are defaulting to the ownership "apache" on my server. However, I have set the ownership of all the files in my directories to "aceman.aceman" in my public_html folder (this includes all the arcade files).
Is there a way to configure the PHP.ini file to account for the ownership and maintain that when a script generates a file?
I realize this: PHP runs via your webserver and therefore has the same rights as your webserver. Since most webservers do not run with super-user status (root in Unix/Linux, or administrator in Windows) you will need to make sure the folders and files you want to edit allow the webserver write access.
Mine run fine.. but set the wrong ownership as (apache.apache) so I'm unable to remove files unless I login as ROOT to delete them.
Help please.
Aceman
|
Aceman, I had the same exact issue that I discovered about 2 weeks ago. And I discovered when messing with the arcade, but after further investigation, found out it had nothing to do with the arcade. Its the way your server is setup and so was mine.
Alright, its the way your server is setup and you need to have your Admin of your server correct this issue.
Have them log into your account with SSH and have them run the following command:
Code:
chown -R admin123:admin123 *
Admin123 being your account. This will run through ALL your files and straighten out your server so all permissions/ownership our yours and not Apache's. This issue tends to arise when the server is NOT in High Security mode. I can't help anymore than this cuz I didn't do it, I just know that's how they fixed it on my server. Discovered this issue when I was trying to back my site up to leave that server to go to a new host.
Good luck and hope that helps. Should be enough for you to give to your server admin and send them down the right road to fix this issue.
|