ID:               48744
 User updated by:  tom at ideaweb dot de
 Reported By:      tom at ideaweb dot de
-Status:           Feedback
+Status:           Open
 Bug Type:         Safe Mode/open_basedir
 Operating System: Linux Debian Etch
 PHP Version:      5.3.0
 Assigned To:      fb-req-jani
 New Comment:

Without php.ini the server keeps crashing, but i think with "wrong 
configuration parameters" the server should not crash...


Previous Comments:
------------------------------------------------------------------------

[2009-07-10 14:00:09] jleg at nrw dot net

Hi,

i just wanted to confirm this behaviour - we recently upgraded one of
our development servers from PHP 5.2.9 to 5.3.0, and experienced similar
segfaulting. Test script only contains "phpinfo()".
It segfaults one time out of three.

System is a CentOS 5.3, standard httpd (prefork). Updating PHP was the
only change. Reverting back to 5.2.9 stops segfaulting, as well as
removing the "php_admin_value open_basedir" in apache config.
To build the PHP 5.3.0, the same configure-script as fpr 5.2.x was used
- with the exception of including "mysqlnd".

Error msg in log while segfaulting is (note that garbage in "allowed
paths"):

PHP Warning:  Unknown: open_basedir restriction in effect.
File(<....>/t.php) is not within the allowed path(s): (\³<        \³<   
 Àg=     ) in Unknown on line 0
PHP Warning:  Unknown: failed to open stream: Operation not permitted
in Unknown on line 0

regards, Jan

------------------------------------------------------------------------

[2009-07-07 17:23:23] j...@php.net

Obvious thing to check is what are the differences in your working
installation and this non-working one's php.ini, configure line, loaded
modules, apache settings..etc.

------------------------------------------------------------------------

[2009-07-01 19:48:11] tom at ideaweb dot de

Thread Safety is disabled (shown in phpinfo()), but i did never 
enabled it on our servers, and we have lot... and i'm using apache2-
mpm-prefork... these default configurations ran never in trouble for 
me, on high traffic sites too, but in this case it crashes on each 
request. =(

./configure \
"--enable-so" \
"--enable-cgi" \
"--enable-info" \
"--enable-rewrite" \
"--enable-usertrack" \
"--enable-deflate" \
"--enable-dav" \
"--enable-unique-id" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-mime-magic" \
"--enable-proxy" \
"--enable-ssl" \
"--with-ssl=/usr" \
"--prefix=/www/apache/2.2.11"

[...]
checking which MPM to use... prefork
[...]

./configure \
--prefix=/www/prog/php/5.3.0 \
--with-apxs2=/www/apache/2.2.11/bin/apxs \
--with-config-file-path=/www/etc \
--with-iconv=/usr/local \
--with-iconv-dir=/usr/local \
--with-mysqli=/www/prog/mysql/current/bin/mysql_config \
--with-mysql-sock=/www/share/mysql/current/mysqld.sock \
--with-pdo-mysql=/www/prog/mysql/current/ \
--with-mysql=/www/prog/mysql/current/ \
--enable-safe-mode=no \
--enable-discard \
--enable-magic-quotes \
--enable-track-vars \
--with-zlib \
--with-zlib-dir=/usr \
--enable-trans-sid \
--with-openssl=/usr \
--enable-wddx \
--enable-bcmath \
--enable-shmop \
--enable-mhash \
--enable-ftp \
--enable-calendar \
--with-gd \
--with-freetype \
--with-freetype-dir=/usr \
--with-jpeg \
--with-jpeg-dir=/usr \
--enable-exif \
--with-png \
--with-png-dir=/usr \
--enable-mbstring \
--enable-sockets \
--with-mhash=/usr \
--with-ldap=/usr \
--with-kerberos=/usr \
--with-libxml-dir=/usr \
--with-gettext \
--with-xsl=/usr \
--enable-soap \
--with-mcrypt \
--enable-debug

------------------------------------------------------------------------

[2009-07-01 17:59:47] sjoerd-php at linuxonly dot nl

Are you perhaps running a multithreaded Apache server with a
non-thread-safe PHP module?

Check "Thread Safety" in phpinfo() and whether you have
apache2-mpm-worker or apache2-mpm-prefork.

------------------------------------------------------------------------

[2009-07-01 07:33:34] tom at ideaweb dot de

Its really strange, because i have several php53 installations without

any trouble with the same configuration, but only on one dev server it

crashes. if you cannot reproduce, its not a big deal that you can get 
access to our dev server, there are not secrets and no data...

<VirtualHost *:80>

    ServerAdmin webmas...@ecolint.ch

    ServerName ecodev.ecolint.ch
    ServerAlias ecm.ideaweb.de
    ServerAlias 217.169.129.40

    #ErrorDocument 404 /

    DocumentRoot /var/www/ecolint.ch/dev/ecolint/trunk/admin

    CustomLog /var/www/ecolint.ch/logs/access_log combined
    ErrorLog /var/www/ecolint.ch/logs/error_log

    <Directory /var/www/ecolint.ch/dev/ecolint/trunk/admin/>
        Options -MultiViews -Indexes -Includes +FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    Alias /mysql/ /var/www/ecolint.ch/mysql/

    <Directory /var/www/ecolint.ch/mysql/>
        Options -MultiViews -Indexes -Includes -FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    php_admin_flag register_globals off
    php_admin_flag magic_quotes_gpc off
    php_admin_flag magic_quotes_runtime off
    php_admin_value default_charset utf-8
    php_admin_value session.save_path /www/htdocs/ecolint.ch/tmp/
    php_admin_value upload_tmp_dir /www/htdocs/ecolint.ch/tmp/
    php_admin_value open_basedir 
/www/htdocs/ecolint.ch/dev:/www/htdocs/ecolint.ch/tmp:/www/htdocs/ecol
int.ch/mysql

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]

</VirtualHost>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48744

-- 
Edit this bug report at http://bugs.php.net/?id=48744&edit=1

Reply via email to