PHP not connecting to MySQL while installing PostNuke
Marcelo Pena
yellowdog-general@lists.terrasoftsolutions.com
Fri Jun 28 01:21:01 2002
I think I may have found my answer.
It appears that the version of PHP in YDL is not compiled correctly for
MySQL support. I found the following at this page:
http://www.mysqldeveloper.com/faqs/index.pcgi?id=27
Why do I get Fatal error: Call to undefined function: mysql_pconnect() in my
.php files?
------------------------------------------------------------------------
It sounds like your php was never compiled to handle mysql, To use php+mysql
you need to compile php with the --with-mysql option when you configure.
Like ./configure --with-mysql=/usr/local/mysql etc..
If this is true, then why have the YDL developers decided to do this? Is
there a way that I can use rpm to update PHP to a version that supports
MySQL?
Seems like a MAJOR oversight to me.
m
On 28/6/02 1:32 PM, "Marcelo Pena" <marcelo@mac.com> wrote:
> Hi
>
> I've installed a fresh install of Yeoow Dog Linux 2.2 and I'm trying to
> install PostNuke on it. Apache and PHP seem to be working OK. I've been
> through the list archives and added this to /etc/php.ini
>
> extension_dir = /usr/lib/php4
>
> And
>
> extension = mysql.so
>
> I then restarted httpd.
>
> During the PostNuke install (done through PHP web pages) I get this error:
>
> Fatal error: Call to undefined function: mysql_pconnect() in
> /var/www/html/pn_714/html/install/newinstall.php on line 36
>
> Line 36 of the file quoted above looks like this:
> mysql_pconnect($dbhost, $dbuname, $dbpass);
>
> I don't know enough to know if this is a PHP problem or a MySQL problem. Any
> ideas?
>
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general