works on command line, not on server

From: Date: Tue, 25 Jan 2005 22:21:25 +0000
Subject: works on command line, not on server
Groups: php.db 
Request: Send a blank email to php-db+get-38347@lists.php.net to get a copy of this message
I have a new installation of php on an existing apache 2 server, and something strange is happening. The file 'test.php' works and connects to the database when run through the command line, but when run from the web server (http://server/test.php) produces a segmentation fault: "child pid 29056 exit signal Segmentation fault" php itself does work, and a file with only phpinfo() in it runs fine on both the server and the command line. Has anyone seen anything like this before? Any ideas? <?php $link = mysql_connect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("disorder") or die("Could not select database"); print "hello"; ?>

« previous php.db (#38347) next »