UID -1 error with Apache 2.0.36 and PHP 4.2.1
| From: | Salsero | Date: | Tue, 14 May 2002 20:09:50 +0000 |
| Subject: | UID -1 error with Apache 2.0.36 and PHP 4.2.1 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6990@lists.php.net to get a copy of this message | ||
Hello there
I have compiled Apache 2.0.36 with PHP 4.2.1 as a DSO module,
successfully ( well I think ). But cannot make php work properly because of
a warning problem such as :
Warning: SAFE MODE Restriction in effect. The script whose uid is -1
is not allowed to access /usr/local/webserver/php.php owned by uid 0 in
Unknown on line 0
Warning: Failed opening '/usr/local/webserver/php.php' for inclusion
(include_path='.:/usr/local/php/lib/php') in Unknown on line 0
I have set the safe_mode in the php.ini to ON, but the problem still
occurs. My script, called php.php, is fairly simple as such :
<?php
echo "hello";
?>
The message says that 'The script whose uid is -1', what script are we
talking about? The only script that I'm using is the one above. There is no
included file in there.
My script as the user/group of root/root and I set the Apache
(httpd.conf) user/group as apache/apache. My question is, is it possible
that apache deamons may run as noboby?
Thanks Salsero