|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19298 SAFE MODE error -- uid -1!!!
Submitted: 2002-09-08 23:10 UTC Modified: 2002-09-09 16:05 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: kh at waikato dot ac dot nz Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.3 OS: linux 2.2.19
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kh at waikato dot ac dot nz
New email:
PHP Version: OS:


 [2002-09-08 23:10 UTC] kh at waikato dot ac dot nz
1. Start apache 2 - ./apachectl startssl OR just 'start'

2.  Request file phptest.php (containing just phpinfo() 

3.  Browser reports incomplete page (actually nothing at 

4.  Stop apache.

5.  View apache error_log file which contains -

[notice] Apache/2.0.40 (Unix) mod_ssl/2.0.40 
OpenSSL/0.9.6g DAV/2 PHP/4.2.3 configured -- resuming 
normal operations

PHP Warning: SAFE MODE Restriction in effect.  The script 
whose uid is -1 is not allowed to access 
/home/htdocs/phptest.php owned by uid 99 in Unknown on line 
PHP Warning: Failed opening '/home/htdocs/phptest.php' for 
inclusion (include_path= ...) in Unknown on line 0

     Apache is running as uid 99 and the named file is 
owned by that user and permissions rwx are provided - but I 
have never heard of a uid -1.  I do note that an earlier 
bug last year complained of something similar but with uid 
1 (as opposed to -1)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-09 02:01 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-09-09 16:04 UTC] kh at waikato dot ac dot nz
The CVS snapshot php4-200209091200 (together with a 
necessary update to Sablotron 0.96) has built and run 
successfully clearing the reported bug.

     My thanks to all concerned.
 [2002-09-09 16:05 UTC]
closing then
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 14:05:53 2022 UTC