Re: php and lighttpd
| From: | php at karsites dot net | Date: | Fri, 24 Mar 2006 17:20:20 +0000 |
| Subject: | Re: php and lighttpd | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17237@lists.php.net to get a copy of this message | ||
From a web browser, does phpinfo() show a section for mysql
directives?
Keith
In theory, theory and practice are the same;
in practice they are not.
To unsubscribe from this list, please see detailed
instructions already posted at:
http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2
On Fri, 24 Mar 2006, James Nachlin wrote:
> To: php-install@lists.php.net
> From: James Nachlin <jim@motionbox.com>
> Subject: [PHP-INSTALL] php and lighttpd
>
> 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!
>