Hi, all.
I have troubles with subj. I have create directory: /usr/local/phpexec, rights is 755 owner is root, grp is wheel. In httpd.conf (apache server) for virtual server configuration I've settings:
php_admin_value open_basedir /home/null/www/htdocs
php_admin_value doc_root /home/null/www/htdocs
php_admin_value error_reporting 15
php_admin_value track_errors on
php_admin_value safe_mode on
php_admin_value php_mode_exec_dir /usr/local/phpexec
php_admin_value sql.safe_mode on
Now, let's test this script:
$output = cat /etc/ftpchroot;
echo "<pre>$output</pre>";
and I've tried function passthru("cat /etc/ftpchroot"); aganist subj... but by this script I could see file /etc/ftpchroot, passing thru doc_root, basedir and also SUBJ!!! I have no idea what's going wrong.
From manual:
safe_mode_exec_dir string
If PHP is used in safe mode, system() and the other functions executing system programs refuse to start programs that are not in this directory.
P.s. This problem I have seen in php 4.0.5 on my OpenBSD 2.9 box.
Write back.