Link to home
Start Free TrialLog in
Avatar of rajendraone
rajendraoneFlag for United States of America

asked on

add php-mysql module

Hello everybody,
<<<<If it works you will certainly get A grade.>>>>

Ques:After logging in I get the following error: "Fatal error: Call to undefined function: mysql_pconnect()". What's wrong?
ANS:You may need to install the php-mysql module (rpms and debs are available).

Okay i got it. But my problem is how do i install this module in my exisiting system. How do i make my apache and php to support mysql. What configurations do i need to change.

Do i need to reinstall or recompile anything  like apache and php? Is there any easy way to just make my existing system that to make php support mysql without reinstalling or recoompiling anything that has already beed setup.

Regards,
Rajendra.

 
Avatar of marxy
marxy

If you have instlled php, apache as RPMS then you need no recompilation
just install php-mysql.rpm

rpm -ihv mysql-......rpm

then, goto /etc/php.d/mysql.ini and be sure it includes
; Enable mysql extension module
extension=mysql.so

Good!

Now simply
/etc/init.d/httpd restart
Avatar of rajendraone

ASKER

Apache and php are not installed as RPM. They were compiled from source.
You will have to recompile your PHP.

When you ./configure, pass --with-mysql with the rest of them

So...

./configure --with-axps-whatever --with-mysql

then install it, and you should be good.

You may need to uncomment extention=mysql.so in your php.ini also after you do this.
ASKER CERTIFIED SOLUTION
Avatar of GinEric
GinEric

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
All done.  Although I didn't compile Webmin, I just took the Binary Tarball and used that, it took about two hours from start to log on to Webmin.

To see some notes, go here:


http://www.musics.com/howteach/mysql/Webminhelp.html

and note that this is not one of those grade "B" links because I wrote it, for this problem, and it is just too big to post here.

Read it and see if it helps.
Thank you rajendraone