UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Help: MySQL PHP 5 extension error

Help: MySQL PHP 5 extension error

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Aug 2006
Posts: 1
Hello,

My name is Juan. I am seeking help in way to solve some trouble I have with UseBB installation.

My configuration is:

OS: Fedora Core 5 i386
Mem: 256 mb
HDD: 20 GB
it is a VMware Server Virtual Machine
Web server: Apache 2
PHP version: 5

Basically, when I try to install the forum, appears the following message:

In file db_mysql.php on line 47:

E_USER_ERROR - Unable to load module for database server "mysql": PHP mysql extension not available!

Then, I checked out with the command: 'php -m' and tried to look if the mysql module is installed, and it is. Weird.

Another post in this forum pointed that a "workaround" is to change the type = "mysql" line inside config.php to type = "mysqli", and also check if mysqli is installed. And it is also installed.

When I tried to refresh the page, appears the same error message but doing reference to mysqli as if didn't were installed. Weird.

Can you give me some directions to solve this?

Thanks.


Juan
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
Seemingly extension_loaded('mysql') gives false although PHP seems to have mysql support. I suggest to comment out or delete the following lines from db_mysql.php.

if ( !extension_loaded('mysql') && !defined('NO_DB') )
trigger_error(...


I don't know whether this is a bug in PHP, configuration dependant or a bug in the binary distribution by Fedora.

mysqli is only used for MySQL 4.1 and 5.x.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » Help: MySQL PHP 5 extension error

UseBB Community is powered by UseBB 1 Forum Software