Apache and PHP – How to Set Write Permissions

apache-2.2file-permissions

I have a php script that writes to a file.
But when I try to actually write to the file I get permission denied.
How can I tell what user name I need to add to the file permission in order for the php to write to it?

Best Answer

How can I tell what user name I need to add to the file permission in order for the php to write to it?

ps axu|grep apache|grep -v grep