php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18038 about safe_mode
Submitted: 2002-06-28 02:12 UTC Modified: 2002-06-28 02:18 UTC
From: 77508 at 163 dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.1 OS: freebsd4.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 24 = ?
Subscribe to this entry?

 
 [2002-06-28 02:12 UTC] 77508 at 163 dot com
I use apache2.0.39. ^_^
While I set Safe_mode to Off, php seems work well.
But I set Safe_mode to On, php return a blank page!
See in apache's error_log file, I found:
------------------------------------------------------
PHP Warning: SAFE MODE Restriction in effect. The script
whose uid/gid is -1/-1 is not allowed to access 
/mypage/test.php owned by uid/gid 60001/60001 in Unknown
on line 0
PHP Warning: Failed opening '/mypage/test.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0
-------------------------------------------------------
I run apache by uid/gid nobody/nobody(60001/60001),and set
/mypage/test.php owner/group to nobody/nobody. I can't find
the way from faq page. So I post this report.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 02:17 UTC] derick@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.
 [2002-06-28 02:18 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Oops :) Meant to say that this was fixing in CVS (try the NON stable snapshot from snaps.php.net).
 [2002-06-28 02:39 UTC] 77508 at 163 dot com
Got it!
Thanks!!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC