Hi,
consider this little php-script :
<?
print whoami."<br>\n";
print echo ~."<br>\n";
?>
it should return the user and his homedirectory which is used to execute system-level stuff ...my webserver is running as user apache, which has /home/apache as homedir.
the output of the script is a bit confusing ...
apache
/root
if I do the same with a cgi-bin perl script, I nice ly get
apache
/home/apache
so, I guess it's not an apache related problem.
after a little more digging I found out that if the webserver is started during the bootprocess of the machine and not manuall the homedir resolves to
/
after manuall rebooting it, it is set to
/root
which seems a bit logic, given the current environment settings.
does anyone have an idea where (probably) I have made a mistake ?
thanks
Christophe VG
PS : config : apache 1.3.4 + php4.0.4pl1 on redhat linux 7.0