Re: php crashes with msyql
| From: | Noah Silverman | Date: | Wed, 22 Mar 2006 01:51:51 +0000 |
| Subject: | Re: php crashes with msyql | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41568@lists.php.net to get a copy of this message | ||
Chris,
Thanks in advance for all the help. i appreciate it.
The script
-------------------------
<?php
mysql_connect('123.123.123.123','user','pass');
?>
----------------------
The error from apache log
-------------------------------------
[Tue Mar 21 15:36:05 2006] [notice] child pid 19337 exit signal Segmentation fault (11)
-------------------------------------
How I got here:
I had an old copy of apache and php running (apache 2.0.? and php 4.3.5)
I delete apache
I configured, made, and installed apache (2.2.0)
I configured, made, and installed php (4.4.2)
The mysql being used is the pre-compiled one from mysql.com. I have used it on other servers and it works fine.
I can provide an strace of the apache processing crashing if anyone is interested,
Thanks
On Mar 21, 2006, at 5:46 PM, Chris wrote:
Noah Silverman wrote:Chris, Same problem Called from the command line it works. Called through a browser, it crashes. php test.php - WORKS http://server.com/test.php - CRASHESWhat exactly is in test.php (change database details, but we need to see the test.php script) ? Is it segfaulting (check the apache error logs) ? Did you re-compile php after updating mysql? Maybe there's a version difference in there somewhere, it's trying to load an older module. Does a phpinfo page show correct database version details? Please CC the list, others may have ideas I don't about what's going on. --Postgresql & php tutorials http://www.designmagick.com/