Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2006, 13:37
lipp9000 lipp9000 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy How to configure PHP with MySQL ????

I am running Fedora core 5 and have followed the howtoforge fedora core 5 perfect setup for ispconfig. MySQL and php are all setup and working, but I have phpBB on one of my users and I have created a database for this.

When I fill out the install page and fill out all the necessary fields and click install I get this error.

"The PHP configuration on your server doesn't support the database type that you chose."

Is PHP configured with MySQL by default? Or is there some line of code that needs to be added to the php config to enable it to work with mysql. One again I have followed the howtoforge perfect FD5 setup guide and havnt missed a thing, but it didnt say anything about configuring php with mysql.

Any suggestions?

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2006, 14:25
TheRudy TheRudy is offline
Senior Member
 
Join Date: Dec 2005
Posts: 216
Thanks: 1
Thanked 7 Times in 5 Posts
Default

You using PHP5? PHP5 doesn't come with mysql library anymore so you'll have to activate it manually, if you don't, it won't work.. They removed mysql from official php5 package cause of some license problems i think.. Or simply use PHP4 instead
Reply With Quote
  #3  
Old 22nd July 2006, 14:37
lipp9000 lipp9000 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its PHP5, so what do i need to do in order to get MySQL working then?
Reply With Quote
  #4  
Old 22nd July 2006, 14:47
TheRudy TheRudy is offline
Senior Member
 
Join Date: Dec 2005
Posts: 216
Thanks: 1
Thanked 7 Times in 5 Posts
Default

Oh wait you already installed php-mysql cause you followed that guide.. erm, you can still check if you really have it installed.. Don't know the command for fedora, probaby yum, so yum install php-mysql and it should report if you have the latest version on it or not..

Try by enabling mysql extension in php.ini, can't hurt to try it, don't forget to restart apache afterwards!
Reply With Quote
  #5  
Old 24th July 2006, 00:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Do you have something like
Code:
extension=mysql.so
in your php.ini?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 24th July 2006, 06:46
lipp9000 lipp9000 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I fixed it. Thanks anyway. I installed this module called php-mysql, its php5 with mysql support already built in. Then it worked
Reply With Quote
  #7  
Old 25th July 2006, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by lipp9000
I installed this module called php-mysql, its php5 with mysql support already built in. Then it worked
Then you didn't follow the Perfect Setup close enough because that package is installed in chapter 10 on http://www.howtoforge.com/perfect_se...dora_core_5_p5 :
Code:
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 20th November 2009, 12:34
sniffffer sniffffer is offline
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default i got it..

yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel

try that. ots perfect ... i simply wasted time without installing those packages, by the way i 'am a nood here. still pushing.

I was having the problem like this.:

I installed latest versions Mysql, php, apache on centos.
I am having a working project which is working perfectly on a wamp server. So i decided to try it on a lamp server. I installed centos five and also installed the packages available with that. My first assumptions went compleatly wrong when i tried those php over http. It was not working. Even it dosent give any error messages. I was blindly trying every single step to reintalling those packages again and again. How stupid. !! :o:eek::o:eek::o:eek::o

falko ooooooo thanks man.... :D
Reply With Quote
  #9  
Old 6th April 2010, 17:21
Imran01 Imran01 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP and MySQL

Quote:
Originally Posted by lipp9000 View Post
I fixed it. Thanks anyway. I installed this module called php-mysql, its php5 with mysql support already built in. Then it worked

Which php-mysql file, Is it php_mysql.dll in ext folder?

Thanks
With regards
Imran
Reply With Quote
  #10  
Old 7th April 2010, 16:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by Imran01 View Post
Which php-mysql file, Is it php_mysql.dll in ext folder?
What's your Linux distribution?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & MySQL working, but AREN'T WORKING???? lipp9000 Installation/Configuration 4 21st July 2006 18:01
how to make php to work with mysql (php installed with apt-get, (no mysql support) grafik Installation/Configuration 3 16th May 2006 00:18
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 22:27
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04


All times are GMT +2. The time now is 22:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.