Hey,
I've been puzzled by this one all day, and really hope someone could point out the obviously simple mistake I am overlooking.
I have apache setup as user "apache", and I want PHP to rename a file created by PHP in the tmp folder to a folder in /var/spool/ however I keep getting the error message "Permission denied" with the "rename" function and the "exec" function just dies with no error.
Odd thing is, when I "su apache" and do the command I tried with exec, it works perfect which can only mean there is some internal setting in PHP or Apache blocking this.
PHP Info shows that
safe_mode: Off Off
safe_mode_exec_dir: no value no value
safe_mode_gid: Off Off
safe_mode_include_dir: no value no value
open_basedir no value no value
and have also added php_admin_flag safe_mode Off to httpd.conf and in .htaccess, still nothing!
So what possibly could be refusing PHP to access that folder when all filesystem permissions are correct?
Many thanks