No valid database drivers appear to be compiled into your PHP install

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Stefan

No valid database drivers appear to be compiled into your PHP install

Post by Stefan »

Hello,
I'm trying to install my CMSMS on a friend's Debian server. It passes the first file permission checks correctly and then gives
>No valid database drivers appear to be compiled into your PHP install. Please confirm that you have mysql, mysqli, and/or postgres7 support installed, and try again.<
This is strange because new php and sql versions are installed and phpmyadmin itself works. The databasenames and passwords are as well correct.

I need a hint or a clue or both. Greetings, Stefan
Piratos

Re: No valid database drivers appear to be compiled into your PHP install

Post by Piratos »

if you have mysql use MySQL (3 and 4.0).
if you select mysqli or postgresql the installscript checks with
function_exists('mysqli_connect') or function_exists('pg_connect') if you have mysqli or pg-function.
if there is no mysqli or pg the errorstring appears.
Stefan

Re: No valid database drivers appear to be compiled into your PHP install

Post by Stefan »

Thanks, my friend didn't experience the best with mysqli and therefore refrained from installing it. I thought it belongs to a "standard repertoire" of sql installation. Still have to convince him of installing it and will post if this was the source of error.

Regards stefan
ren0r

Re: No valid database drivers appear to be compiled into your PHP install

Post by ren0r »

i got errors too at my ddebian system.

mysqld Ver 4.1.14-Debian_6-log for pc-linux-gnu on i486 (Source distribution)
PHP 4.4.0-4 (cli) (built: Oct 20 2005 16:42:12)
Server version: Apache/2.0.54

i also use this configuration for other projects like vexim2, which works fine for me.

i used "apt-cache search msqyli" and found one result.

"php4-maxdb - PHP extension to access MaxDB databases". installed that package, but the result is the same.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: No valid database drivers appear to be compiled into your PHP install

Post by Ted »

apt-get install php4-mysql

Then, restart apache.
Locked

Return to “[locked] Installation, Setup and Upgrade”