PHP not connecting to MySQL while installing PostNuke

Marcelo Pena yellowdog-general@lists.terrasoftsolutions.com
Sat Jun 29 02:27:00 2002


I tried that and it didn't fix the problem.

I then tried installing, via rpm, the newer PHP software that comes with YD=
L
2.3 and the required dependencies. It didn't fix my problem either.

M

On 29/6/02 4:03 AM, "Zack" <macpulse@netscape.net> wrote:

> Yep!
>=20
> The simple solution to your problem:
>=20
> # apt-get install php-mysql
>=20
> and then...
>=20
> # service restart httpd
>=20
>=20
> mysql_connect and mysql_pconnect will now work :-D
>=20
> -Z
>=20
> Marcelo Pena <marcelo@mac.com> wrote:
>=20
>> Hi
>>=20
>> 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
>>=20
>> extension_dir =3D /usr/lib/php4
>>=20
>> And
>>=20
>> extension =3D mysql.so
>>=20
>> I then restarted httpd.
>>=20
>> During the PostNuke install (done through PHP web pages) I get this erro=
r:
>>=20
>> Fatal error: Call to undefined function: mysql_pconnect() in
>> /var/www/html/pn_714/html/install/newinstall.php on line 36
>>=20
>> Line 36 of the file quoted above looks like this:
>> =A0 =A0 =A0 =A0mysql_pconnect($dbhost, $dbuname, $dbpass);
>>=20
>> I don't know enough to know if this is a PHP problem or a MySQL problem.=
 Any
>> ideas?