Topic on Project:Support desk

Furlaniyuri (talkcontribs)

Ciao a tutti, quando vado a installare mediawiki su centos7 ho il seguente errore:

Impossibile trovare un driver adatto per il database! È necessario installare un driver per PHP. I seguenti formati di database sono supportati: MySQL (o compatibile), PostgreSQL, Oracle, Microsoft SQL Server, SQLite.

Se compili PHP autonomamente, riconfiguralo attivando un client database, per esempio utilizzando ./configure --with-mysqli. Qualora avessi installato PHP per mezzo di un pacchetto Debian o Ubuntu, allora devi installare anche il pacchetto php5-mysql.   

Cosa sbaglio?? 

PHP e installato, MariaDb idem... 

88.130.78.137 (talkcontribs)

Buon giorno!

I understand that you are trying to install MediaWiki, but MediaWiki tells you that it would not find a usable database system. You are using Debian or Ubuntu with PHP and MariaDB.

Make sure that MariaDB is actually active. You can check the output of a PHP file with the content

<?php phpinfo()

to see, if MariaDB is activated. If it is not, you still have to activate it.

Furlaniyuri (talkcontribs)

Yes,yes, I am installing mediawiki...

i have create the file php with the content <?php phpinfo() ; ?>..

But don't check the output on my browser...

MariaBd is installed, whene i lunch this comand:

yum -y install mariadb-server mariadb

this is message return:

Il pacchetto 1:mariadb-server-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione

Il pacchetto 1:mariadb-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione

Niente da fare

Where is the problem :(

Ciencia Al Poder (talkcontribs)

The problem here is that PHP doesn't have the mysqli driver, needed to connect to mariadb database.

See https://www.howtoforge.com/apache_php_mysql_on_centos_7_lamp#-getting-mysql-support-in-php for instructions to install the mysql driver for PHP (note that you should install mysqli and not mysql, as in sudo yum install php5-mysqli).

After installing, you need to restart apache. phpinfo should display the mysql driver.

If not, you may need to edit php.ini and add extension=mysqli.so to php.ini in case the installation of the mysql driver doesn't add it to php.ini itself, and restart apache again.

Furlaniyuri (talkcontribs)

Thanks..... Mediawiki is OK..