PDA

View Full Version : Fatal error in step #3


sam
Wed 7th Jun '00, 4:58am
hi,,,

anybody knows whats the problem in step 3 :

-------
Attempting to connect...

Fatal error: Call to unsupported or undefined function mysql_pconnect() in db_mysql.php on line 29
-------

help me please to solve this one

thank you :)

sam
Wed 7th Jun '00, 5:11am
also

whereto find this file db_mysql.php, in which dirctory exactley

Martin
Wed 7th Jun '00, 5:32am
first, could you tell me what OS and what version of mySQL and PHP you're using? I ran into this problem when trying to install on NT with PHP 3.0.x When I upgraded to PHP 4.0.0 all those problems went away

John
Wed 7th Jun '00, 6:46am
It sounds like you do not have MySQL support turned on. In windows, that is just a matter of editing the php.ini file. In Unix systems, it is slightly more complicated.

As Martin said - could you post a few more details please.

John

sam
Wed 7th Jun '00, 6:08pm
I'm using

Red Hat Linux release 6.0

MYSQL 3.22.32

PHP 3.0.16

John
Wed 7th Jun '00, 7:57pm
In that case it looks like you have permanent connections to MySQL disabled. You can enable them in your php.ini (they are faster than standard connections) or you can change mysql_pconnect to mysql_connect in the db_mysql.php

John

sam
Wed 7th Jun '00, 11:43pm
:(

I tried the second method that to change mysql_pconnect to mysql_connect , but no luck at all, same fatal message appear

I'd like to try enable mysql in php.ini, but i don't know where the php.ini file located exactley.

also, maybe the problem with my installation of Mysql

can you suggest me other page for installation different that what you mentioned befor

http://hotwired.lycos.com/webmonkey/99/21/index2a.html

thank you again

John
Thu 8th Jun '00, 1:41am
I do not think that it is a MySQL problem.

The php.ini file should be installed to /usr/local/lib if I remember correctly. If there is no php.ini file there, you should extract the default one from the archive (php.ini-dist) and upload it to /usr/local/lib

You can then edit that file.

John

customcpu
Tue 27th Jun '00, 1:25am
sam,
Red Hat does not install MySQL support in PHP by default. If you go to rpmfind.net you will find an rpm that will enable it.

customcpu
Tue 27th Jun '00, 1:39am
Went and looked up the URL for you. http://www.rpmfind.net/linux/RPM/mandrakecooker/contrib/RPMS/php-mysql-3.0.14-2mdk.i586.html

NOTE: I HAVE seen this RPM work with PHP 3.0.16.

sam
Fri 30th Jun '00, 3:21pm
Thank you customcpu

Actually I know little about linux, so i don't know how to install the rpm you mentioned.

Can you tell me how to install this rpm.

Thanks alot

customcpu
Fri 30th Jun '00, 3:36pm
sure...
You will need to be root to do this.

1) To be safe shutdown MySQL
2) At a prompt type "rpm -ivh php-mysql-3.0.14-2mdk.rpm"
(NOTE: Do not type the quotes + file name may differ)
3) Restart MySQL and apache

That's it. If you have any problems let me know.

Shaman
Fri 30th Jun '00, 4:06pm
That is an extremely old version of MySQL!

The current stable version is 3.22.32!!!!!

I highly recommend you use this version for Linux:

http://www.mysql.com/Downloads/MySQL-3.22/MySQL-3.22.32-1.i386.rpm

and

http://www.mysql.com/Downloads/MySQL-3.22/MySQL-devel-3.22.32-1.i386.rpm

Go get'm and make sure to do a "strip" on the *.so files and the binaries in the ~/mysql/bin and ~/mysql/libexec to get all the debug information out of the files if there is any.

customcpu
Fri 30th Jun '00, 4:14pm
Actually 3.0.14 is the version of PHP.

Shaman
Fri 30th Jun '00, 4:15pm
Ah.

Now I see it. OK

sam
Sat 1st Jul '00, 3:03pm
customcpu, thank you man but i faced a problem

I downloaded the rpm then loaded to my server using binary mode, then i typed the command as you mentioned but i got an error message.



# rpm -ivh php-mysql-3.0.14-2mdk.i586.rpm

error: failed dependencies:
php is needed by php-mysql-3.0.14-2mdk