[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Segmentation fault (11) in httpd error log - PHP related
- Subject: Re: [cobalt-users] Segmentation fault (11) in httpd error log - PHP related
- From: johan@xxxxxxxxxx
- Date: Wed Jul 4 20:07:46 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
For the benefit of others, the problem was related to mysql_connect
as used in a PHP script (used by the phpReactor portal system ->
http://phpreactor.org).
> > Incompatable apache module [eg mismatched mod_perl/php etc]
> - prime candidate (PHP 4.0.5 was installed)
The error message was always logged when the forum or poll pages
at a specific client site was visited:
[Timestamp] [notice] child pid 30726 exit signal Segmentation fault (11)
We found the following comment in the database connection script, made
the required change, and the problem is now solved:
* REMEMBER TO CHANGE mysql_pconnect() TO mysql_connect() IF running php as cgi.
//$mydb_db = @mysql_pconnect($mydb_host, $user, $pass); - previous
$mydb_db = @mysql_connect($mydb_host, $user, $pass); - now
Thanks once again for the hints ...
Johan Pretorius
http://host24.com
---------------------------------------------
This message was sent using M-Web Airmail.
http://airmail.mweb.co.za/