By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,830 Members | 2,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,830 IT Pros & Developers. It's quick & easy.

Configuring MySQL ,PHP and APACHE to work together

frozenmist
Expert 100+
P: 179
Hi guys,
I am new to php. I was just trying to learn.
I am trying to create a forum using phpbb. I also have MySQL server running.
While installing an error is being raised as:

An error has occurred during installation
The PHP configuration on your server doesn't support the database type that you chose


Somebody do help me..
Cheers
May 9 '07 #1
Share this Question
Share on Google+
10 Replies


mwasif
Expert 100+
P: 801
Can PHP communicate to MySQL properly? To confirm this, please make a file containing the following code, save under webroot and run in browser. In the output, see if you can find some infromation about MySQL.
[PHP]<? phpinfo()?>[/PHP]

BTW, which version of Apache, PHP and MySQL you are using?
May 9 '07 #2

P: 10
also make sure that your apache and php are setup to deal with mysql properly as PhP v5 drops mysql support "out of the box" and some extra configuration is required. An improper setup can manifest itself in strange ways unfortunately :(


You can start a search for resources here:

http://us.php.net/mysql
May 9 '07 #3

Atli
Expert 5K+
P: 5,058
I created this for myself so I wouldn't have to re-invent the wheel every time I did this.
It is a basic list of what must be done to get them working together.

Apache+PHP+MySQL Install notes

It might be a bit out of date but it's a good enough guide.
May 10 '07 #4

frozenmist
Expert 100+
P: 179
Can PHP communicate to MySQL properly? To confirm this, please make a file containing the following code, save under webroot and run in browser. In the output, see if you can find some infromation about MySQL.
[PHP]<? phpinfo()?>[/PHP]

BTW, which version of Apache, PHP and MySQL you are using?
Hi,
I am using Apcahe 2.2.4and php 5.2.1 and mysql 5.x on windows.
I tried phpinfo() and iam not getting any info about MySQL.
Atli and Mathews, thanks for your input. I will check out those links.
Thanks for all of your replies.
Any more help guys?
Cheers
May 10 '07 #5

ak1dnar
Expert 100+
P: 1,584
Locate this line under php.ini and uncomment it.
extension=php_mysql.dll
May 10 '07 #6

frozenmist
Expert 100+
P: 179
Locate this line under php.ini and uncomment it.
extension=php_mysql.dll
Hi Ajax,

I had done that also , but it is not working still
Is there any other config required.
thanks for the reply
May 10 '07 #7

ak1dnar
Expert 100+
P: 1,584
Under your php/ext dir try to locate this files.
php_mysql.dll
php_mysqli.dll

And check httpd.conf file and locate this line.

LoadModule php5_module [you Ins dir]/php5/php5apache2_2.dll

and uncomments it if still commented and check whether its available on the previous location.

and check this file under mysql/bin directory.
libmySQL.dll

hope this helps to run php+mysql with apache.
May 10 '07 #8

frozenmist
Expert 100+
P: 179
Hi ajax,
Once again thanks for replying but everything is fine.
I dunno. Anyways i will check it out on the weekend.Its just for learning.

Cheers
May 10 '07 #9

ak1dnar
Expert 100+
P: 1,584
Here is alternative if you failed.download Appserv from Here and give a fresh installation. its a complete pack for work with PHP Environment.
:)
May 10 '07 #10

P: 10
you also have to add an environment variable in windows to the location where you have placed the php_mysql.dll or nothing will work:(

Some people just cheat and place a copy of the .dll in the "%windir%/system32" directory.

Otherwise you'll have to change the PATH statement in your windows environment to where you place it.
May 10 '07 #11

Post your reply

Sign in to post your reply or Sign up for a free account.