php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20001 'make install' struggling with existing php.ini and safe_mode
Submitted: 2002-10-20 11:10 UTC Modified: 2002-10-29 10:19 UTC
From: joerg@php.net Assigned:
Status: Closed Package: PEAR related
PHP Version: 4CVS-2002-10-20 OS: Linux
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:
44 - 19 = ?
Subscribe to this entry?

 
 [2002-10-20 11:10 UTC] joerg@php.net
When updating a box with the latest cvs vetrsion where mod_php/php(4.2.1) already running and the existing php.ini have settings like 'safe_mode = on' the make install prozess shows the following errors. Same is happend when using the 4.3pre1.

./configure
..
"--with-config-file-path=/usr/apache/conf" \
"--with-apxs=/usr/apache/bin/apxs" \
....


tng-web:/usr/src/php4-200210200600 # make install
Installing PHP SAPI module
[activating module `php4' in /usr/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/apache/libexec/libphp4.so
chmod 755 /usr/apache/libexec/libphp4.so
cp /usr/apache/conf/httpd.conf /usr/apache/conf/httpd.conf.bak
cp /usr/apache/conf/httpd.conf.new /usr/apache/conf/httpd.conf
rm /usr/apache/conf/httpd.conf.new
Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing PHP CLI binary:        /usr/bin/
Installing PEAR environment:      /usr/lib/php/

Warning: file_exists() [http://www.php.net/function.file-exists]: SAFE MODE Restriction in effect.  The script whose uid is 100 is not allowed to access /root owned by uid 0 in /daten/src/php4-200210200600/pear/PEAR/Config.php on line 282

Warning: file_exists() [http://www.php.net/function.file-exists]: SAFE MODE Restriction in effect.  The script whose uid is 100 is not allowed to access /usr/etc owned by uid 0 in /daten/src/php4-200210200600/pear/PEAR/Config.php on line 285

Warning: file_exists() [http://www.php.net/function.file-exists]: SAFE MODE Restriction in effect.  The script whose uid is 100 is not allowed to access /usr/lib/php owned by uid 0 in /daten/src/php4-200210200600/pear/PEAR/Registry.php on line 101
[..]
and 100 more ...

Looks like that the php cli version is using during install and its struggling with the existing php.ini settings.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-29 10:19 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot 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 in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC