Apache is dumping core if I have the following enabled in php/mod_php:

mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#/usr/local/etc/rc.d/apache start
Starting apache.
mailds:#tail -3 /var/log/messages
Jan 18 07:57:37 mailds kernel: pid 95875 (httpd), uid 0: exited on signal
11 (core dumped)
Jan 18 07:58:30 mailds kernel: pid 95885 (httpd), uid 0: exited on signal
11 (core dumped)
Jan 18 07:58:31 mailds kernel: pid 95894 (httpd), uid 0: exited on signal
11 (core dumped)
nothing is being written to httpd-error.log
mailds:#tail -1 /var/log/httpd-error.log
[Thu Jan 17 12:49:18 2008] [notice] caught SIGTERM, shutting down

but with that php extension commented out:
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#tail -3 /var/log/httpd-error.log
[Thu Jan 17 12:49:18 2008] [notice] caught SIGTERM, shutting down
[Fri Jan 18 08:01:29 2008] [notice] Apache/1.3.39 (Unix) PHP/5.2.5 with
Suhosin-Patch configured -- resuming normal operations
[Fri Jan 18 08:01:29 2008] [notice] Accept mutex: flock (Default: flock)
mailds:#ps auxw|grep httpd|wc -l

I've also tried this another box,fresh install yesterday with latest cvsup
It does the same apache core dump, with only apache13/php5/php5-mhash
This was all installed from ports [make install], I've tested with my
httpd.conf file and default one, still this php extension causes apache to

mailds:#pkg_info |egrep "apache|php|hash"
apache-1.3.39_2     The extremely popular Apache http server. Very fast,
very c
mhash-0.9.9         An easy-to-use library for strong hashes such as MD5
and SH
php5-5.2.5          PHP Scripting Language
php5-gettext-5.2.5  The gettext shared extension for php
php5-iconv-5.2.5    The iconv shared extension for php
php5-mbstring-5.2.5 The mbstring shared extension for php
php5-mhash-5.2.5    The mhash shared extension for php
php5-openssl-5.2.5  The openssl shared extension for php
php5-pcre-5.2.5     The pcre shared extension for php
php5-pgsql-5.2.5    The pgsql shared extension for php
php5-session-5.2.5  The session shared extension for php
php5-xml-5.2.5      The xml shared extension for php

   I've got the latest code cvsup from Jan 17, world rebuilt for RELENG_7,
latest portsnap from about the same time - this is fresh install of
7-beta4, cvsupped to "7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Thu Jan
17 09:33:41 MST 2008"
  I've got the mhash running on another box, but that was done awhile ago
with with version 0.9.7.. [it's required for squirrelmail].

  Any ideas anyone? gdb httpd /httpd.core doesn't give out much info, php
in debug mode, still not seeing anything in logs.
  php cli works fine: [php code from php.net mhash example]
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#php php.t
The hash is d03cb659cbf9192dcd066272249f8412<br />
The hmac is 750c783e6ab0b503eaa86e310a5db738<br />
 and with extension disabled [no surprise];
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#php php.t
PHP Fatal error:  Call to undefined function mhash() in
/usr/local/etc/apache/php.t on line 6
  so I know it works, just curious if anyone has mhash 0.9.9 working with
apache13/any ideas about what is going on?


freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to