1

Topic: Installation problem

I get this message when I try to install punbb "This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance."

I?m running -
php 5.0.1
apache 2.0
mysql  4.0.20

thanks.

Re: Installation problem

You must enable MySQL-support in php for it to work. There's just a line in the php.ini-file, search for mysql in it and you'll find some info. Remove the ; and it'll probably work.

Re: Installation problem

Don't forget to restart Apache after you've updated your php.ini.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

4

Re: Installation problem

Chacmool wrote:

You must enable MySQL-support in php for it to work. There's just a line in the php.ini-file, search for mysql in it and you'll find some info. Remove the ; and it'll probably work.

I tried a few places, doesn?t seem to work. Could you be a little more specific?

Re: Installation problem

What operating system are you using?

Read the installation notes here: http://se.php.net/manual/en/ref.mysql.php

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6

Re: Installation problem

Rickard wrote:

What operating system are you using?

Read the installation notes here: http://se.php.net/manual/en/ref.mysql.php

Win XP pro sp2

Re: Installation problem

Ok, then just read the page I linked to.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Installation problem

This seems to be my problem too. I have spent days on this and am ready to scream!

This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.

I see the link, http://se.php.net/manual/en/ref.mysql.php, talks about using --with-mysql[=DIR]. Please tell this stupid Windows user what the heck that means and how to employ it.

Thanks!

Re: Installation problem

From the manual:

Windows users will need to enable php_mysql.dll  inside of php.ini and either copy libmysql.dll  into the Windows system directory, or make it available to the PATH.

So, open up your php.ini, locate php_mysql.dll and remove the comment in front of that line. Then copy libmysql.dll into windows/system32 and restart apache.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Installation problem

Only problem with that is I am using PHP 4, which has built in MYSQL support. I have tried several versions of 4 and also 5, before I found one that actually worked. If I understand correctly I cannot use the mysql dll's with version 4...

Steve

11

Re: Installation problem

As a fellow stupid windows user I would recommend giving up on all this seperate install stuff and just install Wamp http://www.wampserver.com/en/. Unless of course your aim is to learn about the inards of apache and php rather than just use it.

The install is just like a regular windows app install and you get apache, php and mysql already configured. It worked for me right out of the metophorical box. It's what I'm running to develop the markup for PunBB. There is also a plugin which allows you to switch between php4 and php5.

An alternative is xamp http://www.apachefriends.org/en/xampp.html

Re: Installation problem

Rickard hit the nail on the head actually. I figured there was no chance of it working as I have already tried it before, but I had never before copied libmysql.dll to the winnt/system32 directory before. Bingo!

Thank you Rickard.

Paul, I copied your post so I may try that later if this gives me any more trouble. Now to learn Blog:CMS...