PHP not connecting to MySQL while installing PostNuke

Zack yellowdog-general@lists.terrasoftsolutions.com
Sat Jun 29 14:19:01 2002


I find that odd.

Just a stupid question - are you using apt-get as root?

I was experiencing the same problem as you, also with phpnuke - and I couldn't get it to work no matter what.

Finally, I got it working with that command, only slightly modified.

#apt-get install apache php-mysql

And then:

#shutdown -r now

When it rebooted, and I reopened the phpnuke installation, it worked!

There has to be something else wrong... very odd.

-Z

Marcelo Pena <marcelo@mac.com> wrote:

>I tried that and it didn't fix the problem.
>
>I then tried installing, via rpm, the newer PHP software that comes with YDL
>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!
>>
>> The simple solution to your problem:
>>
>> # apt-get install php-mysql
>>
>> and then...
>>
>> # service restart httpd
>>
>>
>> mysql_connect and mysql_pconnect will now work :-D
>>
>> -Z
>>
>> 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
>


-- 
_____________________
I feel more like I do right now than I did a while ago.



__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/