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.
|