Topic: This PHP environment does not have support for any of the databases ..

Hi I got the following message when I'm trying to install punBB :

This PHP environment does not have support for any of the databases that PunBB supports. PHP needs to have support for either MySQL, PostgreSQL or SQLite in order for PunBB to be installed.

Here's my phpinfo () test page : http://avant-garde.no-ip.biz/forum/test.php

I've configured mysql parameters into php.ini

Any help would be appreciate.

[img]http://avant-garde.no-ip.biz/images/new_logo.gif[/img]

Re: This PHP environment does not have support for any of the databases ..

Did you load the MySQL extension?

Re: This PHP environment does not have support for any of the databases ..

Smartys wrote:

Did you load the MySQL extension?

yes I do
extension=php_mysqli.dll
extension=php_mysql.dll

[MySQL]

mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =3306
mysql.default_socket =
mysql.default_host =localhost
mysql.default_user =root
mysql.default_password =xxx

[img]http://avant-garde.no-ip.biz/images/new_logo.gif[/img]

Re: This PHP environment does not have support for any of the databases ..

and the server is restarted since those changes?

Re: This PHP environment does not have support for any of the databases ..

Frank H wrote:

and the server is restarted since those changes?

yep I restarted it

[img]http://avant-garde.no-ip.biz/images/new_logo.gif[/img]

6

Re: This PHP environment does not have support for any of the databases ..

Hey, ain't it great to run all these services on Windows?

You're problem is this: extension_dir    C:\php5

It should be C:\php5\ext, at least that's where the extensions should be.

Current version of my services:
Apache 2.0.58
MySQL 5.0.21
PHP 5.1.3

7 (edited by *alexandre* 2006-05-03 16:03)

Re: This PHP environment does not have support for any of the databases ..

hcgtv wrote:

Hey, ain't it great to run all these services on Windows?

You're problem is this: extension_dir    C:\php5

It should be C:\php5\ext, at least that's where the extensions should be.

Current version of my services:
Apache 2.0.58
MySQL 5.0.21
PHP 5.1.3

that's strange I open php.ini file under c:\php5 and my variable extension_dir is :
extension_dir = = "c:/php5/ext/"

but with phpinfo () it's appear to be c:/php5/

any idea ?????

edit I didn't see the == sorry for the posts smile it's work fine thanks for it

[img]http://avant-garde.no-ip.biz/images/new_logo.gif[/img]

8 (edited by elbekko 2006-05-03 16:03)

Re: This PHP environment does not have support for any of the databases ..

Make sure error reporting in php.ini is fully enabled wink

display_startup_errors = On

This line smile

Re: This PHP environment does not have support for any of the databases ..

elbekko wrote:

Make sure error reporting in php.ini is fully enabled wink

display_startup_errors = On

This line smile

thx I will made the change smile

[img]http://avant-garde.no-ip.biz/images/new_logo.gif[/img]

Re: This PHP environment does not have support for any of the databases ..

Configuration File (php.ini) Path  C:\php5\php.ini 
That is where you're editing, right (I know I have PHP set up so that php.ini is in the Windows folder and I believe that's a suggested way to do it)?

11

Re: This PHP environment does not have support for any of the databases ..

Smartys wrote:

That is where you're editing, right (I know I have PHP set up so that php.ini is in the Windows folder and I believe that's a suggested way to do it)?

These are my lines in the Apache2 httpd.conf:

# load the PHP 5 module
LoadModule php5_module "C:/usr-bin/PHP/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/usr-bin/PHP"

I have my Windows box setup like my Debian server:
C:/usr-bin/ - all the services
C:/var-lib/ - databases
C:/var-www/ - html root

Keeping the databases and html root out of the services directory makes it very easy to upgrade to new versions without worrying about your stuff.

With the new .msi installers for Apache2 and MySQL, it's very easy to direct everything where to go. PHP is a zip file, so it's a straight copy to the directory of your choice.

12 (edited by Smartys 2006-05-03 20:27)

Re: This PHP environment does not have support for any of the databases ..

hcgtv: Indeed, that's why I have php.ini where I have it (I seem to remember instructions that put it in the WINDOWS folder, but I can't seem to find them anymore) smile
I just remember having issues when I forgot where my php.ini file was and tried editing the wrong one tongue

Re: This PHP environment does not have support for any of the databases ..

I have it in C:/WINDOWS, my PHP in C:/server togther with Apache and MySQL and my www on D:/webserver/www (this is because I reinstalled and was too lazy to copy)