Hello
I know this has been discussed on lists and other forums, but so far I cant get rid of this issue.
The problem is that apache crashes (but no every time) I run apachectl restart. I understand that this is related to php and may be to the order of extensions in extensions.ini. Yesterday I updated php and extensions from 5.2.6 to 5.2.8. I hoped that this could be fixed . But now I still have this issue. I have used a script to fix order of extensions (here it is: http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround ), but it didnt help me too.
Here are some details:
I have this in main httpd.conf file in <Directory /> ... directive related to php error logging.
and the following directives related to php in the main virtual host configuration
I can post more info or the httpd.core file if needed. Please help me to get rid of this problem
10x in advance
I know this has been discussed on lists and other forums, but so far I cant get rid of this issue.
The problem is that apache crashes (but no every time) I run apachectl restart. I understand that this is related to php and may be to the order of extensions in extensions.ini. Yesterday I updated php and extensions from 5.2.6 to 5.2.8. I hoped that this could be fixed . But now I still have this issue. I have used a script to fix order of extensions (here it is: http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround ), but it didnt help me too.
Here are some details:
Code:
#:> uname -a
FreeBSD test.--mydomain--.bg 7.0-STABLE FreeBSD 7.0-STABLE #1: Wed Jul 9 11:17:29 EEST 2008 root@test.--mydomain--.bg:/usr/obj/usr/src/sys/TESTPC i386
Code:
#:> pkg_info | grep -i -E 'apache|php5'
apache-2.0.63_2 Version 2.0.x of Apache web server with prefork MPM.
php5-5.2.8 PHP Scripting Language
php5-ctype-5.2.8 The ctype shared extension for php
php5-gd-5.2.8 The gd shared extension for php
php5-gettext-5.2.8 The gettext shared extension for php
php5-mbstring-5.2.8 The mbstring shared extension for php
php5-mcrypt-5.2.8 The mcrypt shared extension for php
php5-mhash-5.2.8 The mhash shared extension for php
php5-mysql-5.2.8 The mysql shared extension for php
php5-mysqli-5.2.8 The mysqli shared extension for php
php5-openssl-5.2.8 The openssl shared extension for php
php5-session-5.2.8 The session shared extension for php
php5-simplexml-5.2.8 The simplexml shared extension for php
php5-snmp-5.2.8_2 The snmp shared extension for php
php5-sockets-5.2.8 The sockets shared extension for php
php5-spl-5.2.8 The spl shared extension for php
php5-xml-5.2.8 The xml shared extension for php
Code:
#:> cat /usr/local/etc/php/extensions.ini
extension=ctype.so
extension=session.so
extension=simplexml.so
extension=gd.so
extension=openssl.so
extension=mcrypt.so
extension=mhash.so
extension=gettext.so
extension=mbstring.so
extension=xml.so
extension=snmp.so
extension=spl.so
extension=mysqli.so
extension=mysql.so
extension=sockets.so
Code:
#:> cat /usr/local/etc/php.conf
PHP_VER=5
PHP_VERSION=5.2.8
PHP_SAPI=cli cgi mod
PHP_EXT_INC=pcre
I have this in main httpd.conf file in <Directory /> ... directive related to php error logging.
Code:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors on
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /var/log/httpd-php-error.log
php_value log_errors_max_len 0
and the following directives related to php in the main virtual host configuration
Code:
php_admin_flag register_globals on
php_admin_flag allow_url_fopen off
php_flag magic_quotes_gpc on
I can post more info or the httpd.core file if needed. Please help me to get rid of this problem
10x in advance