php and lighttpd
| From: | James Nachlin | Date: | Fri, 24 Mar 2006 17:15:41 +0000 |
| Subject: | php and lighttpd | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-17235@lists.php.net to get a copy of this message | ||
Hi,
I have php running under llighty, but am unable to connect to mysql with php. The strange thing is, when I look at the phpinfo() output via lighty, the configure line is like
'./configure' '--enable-fastcgi'
whereas running it on the command line, the line is
'./configure' '--enable-fastcgi'
'--with-mysql=/usr/local/mysql'More data: # which php /usr/local/bin/php # php --version PHP 5.1.2 (cgi-fcgi) (built: Mar 25 2006 05:03:03) [...] and lighttpd.conf points to that php: fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php"
)
)
)
The error I get is a "Call to undefined function: mysql_pconnect".
Any help appreciated!