The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP: Script generated files - ownership issue
On my server php scripts that generate files are doing so fine, however the files that the script makes sets the owner of that file as "apache.apache" and I can not remove/overwrite those files unless I log in as root and do so. The script is chmod 777. And the ownership is aceman.aceman, but the files it creates are always apache.apache.
I chown -R aceman.aceman public_html - which recursively sets all the files in the folder and it's sub folders to owner-aceman / group-aceman. Is there a way to setup the server so that the ownership is maintained? In the php.ini file or the httpd config file? Any guidance or help would be greatly appreciated. |
#2
|
|||
|
|||
From Zend's Page on File Creation:
Quote:
|
#3
|
||||
|
||||
I actually found that page on another site myself via google. I ran the command they indicated and my server says it's apache. Not nobody or www.
maybe it's a setting issue with the server because mine doesn't say nobody or www - it's apache. Where can I set it so that nobody is the default owner when a file is generated? Just a heads up: in my httpd.conf file I did notice a line that reads: User apache Group apache Would changing that too nobody for user and group help? And then restart apache? Aceman |
#4
|
||||
|
||||
It doesn't really matter whether it runs as apache or nobody, it just means the files will be owned by the user "nobody" instead. You need to alter the script that creates them to make sure the created files are global write.
|
#5
|
||||
|
||||
You shouldn't have to alter any scripts. It worked fine on the old server but this one is giving us fits for some reason. There has to be a setting somewhere that sets it. And no ones else seems to be having this problem so it has to be server side.
|
#6
|
||||
|
||||
You could try addind a user aceman, group aceman to the apache definition for that site.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|