Dear all,
There is a problem when I try to configure the mediawiki on Ubuntu 10.04. ______________________________________________________
MediaWiki 1.15.1 Installation * Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
Checking environment... Please include all of the lines below when reporting installation problems. * PHP 5.3.2-1ubuntu4.5 installed Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module * For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module * For SQLite, compile PHP using --with-pdo_sqlite, or install the pdo_sqlite.so module * For MSSQL, compile PHP using --with-mssql not ready, or install the mssql not ready.so module * For DB2, compile PHP using --with-ibm_db2, or install the ibm_db2.so moduleI refer the installation guide as follows, and modified the
/etc/apache2/apache2.conf and /etc/php5/apache2/php.ini as the guide said. http://www.mediawiki.org/wiki/Manual:Installing_Mediawiki_on_Ubuntu_10.04 http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu
LAMP info: $ uname -a Linux ubuntu 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux
$ cat /etc/issue Ubuntu 10.04.1 LTS \n \l
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.1 LTS Release: 10.04 Codename: lucid
$ apache2 -v Server version: Apache/2.2.14 (Ubuntu) Server built: Aug 19 2010 05:20:03
$ php -v PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
$ mysql -V mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
When I touch the php info web page, the result is correct as follows:
System Linux ubuntu 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64
Build Date Sep 17 2010 13:40:34 Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php5/apache2 Loaded Configuration File /etc/php5/apache2/php.ini Scan this dir for additional .ini files /etc/php5/apache2/conf.d Additional .ini files parsed /etc/php5/apache2/conf.d/apc.ini, /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini
PHP API 20090626 PHP Extension 20090626 Zend Extension 220090626 Zend Extension Build API220090626,NTS PHP Extension Build API20090626,NTS Debug Build no Thread Safety disabled Zend Memory Manager enabled Zend Multibyte Support disabled IPv6 Support enabled Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
Thank you for your help.
Yufei
ren yufei wrote:
Dear all,
There is a problem when I try to configure the mediawiki on Ubuntu 10.04. ______________________________________________________
MediaWiki 1.15.1 Installation
- Don't forget security updates! Keep an eye on the low-traffic release
announcements mailing list.
Checking environment... Please include all of the lines below when reporting installation problems.
- PHP 5.3.2-1ubuntu4.5 installed
Could not find a suitable database driver!
- For MySQL, compile PHP using --with-mysql, or install the mysql.so module
- For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so
module
- For SQLite, compile PHP using --with-pdo_sqlite, or install the pdo_sqlite.so
module
- For MSSQL, compile PHP using --with-mssql not ready, or install the mssql not
ready.so module
- For DB2, compile PHP using --with-ibm_db2, or install the ibm_db2.so moduleI
refer the installation guide as follows, and modified the
/etc/apache2/apache2.conf and /etc/php5/apache2/php.ini as the guide said. http://www.mediawiki.org/wiki/Manual:Installing_Mediawiki_on_Ubuntu_10.04 http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu
...
Thank you for your help.
Yufei
Well, you don't have any database driver in php that mediawiki can use. Try doing sudo apt-get install php5-mysql
Thank you. But I have already installed the php5-mysql,
$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you need any of configuration files?
Yufei
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Mon, October 11, 2010 6:52:52 PM Subject: Re: [Mediawiki-l] mediawiki installation error in ubuntu 10.04
ren yufei wrote:
Dear all,
There is a problem when I try to configure the mediawiki on Ubuntu 10.04. ______________________________________________________
MediaWiki 1.15.1 Installation * Don't forget security updates! Keep an eye on the low-traffic release
announcements mailing list.
Checking environment... Please include all of the lines below when reporting installation problems. * PHP 5.3.2-1ubuntu4.5 installed Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so
module
* For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so
module * For SQLite, compile PHP using --with-pdo_sqlite, or install the pdo_sqlite.so
module * For MSSQL, compile PHP using --with-mssql not ready, or install the mssql not
ready.so module * For DB2, compile PHP using --with-ibm_db2, or install the ibm_db2.so moduleI
refer the installation guide as follows, and modified the
/etc/apache2/apache2.conf and /etc/php5/apache2/php.ini as the guide said. http://www.mediawiki.org/wiki/Manual:Installing_Mediawiki_on_Ubuntu_10.04 http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu
...
Thank you for your help.
Yufei
Well, you don't have any database driver in php that mediawiki can use. Try doing sudo apt-get install php5-mysql
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
ren yufei wrote:
Thank you. But I have already installed the php5-mysql,
$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you need any of configuration files?
Yufei
Does it still tell you "Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module" when trying to install?
Yes,
"PHP 5.3.2-1ubuntu4.5 installed Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module"
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Tue, October 12, 2010 7:52:39 PM Subject: Re: [Mediawiki-l] mediawiki installation error in ubuntu 10.04
ren yufei wrote:
Thank you. But I have already installed the php5-mysql,
$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you need any of configuration files?
Yufei
Does it still tell you "Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module" when trying to install?
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Things to try: * restart the web server to ensure PHP configuration has been reloaded * make a file phpinfo.php containing "<?php phpinfo() ?>" * go to it in browser - it'll list all PHP configuration options and loaded modules. Check what's in there, including the path to php.ini * if necessary, edit php.initial to enable modules manually
Full docs on configuration are available at php.net
-- brion On Oct 12, 2010 4:56 PM, "ren yufei" renyufei83@yahoo.com.cn wrote:
Yes,
"PHP 5.3.2-1ubuntu4.5 installed Could not find a suitable database driver!
- For MySQL, compile PHP using --with-mysql, or install the mysql.so
module"
From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Tue, October 12, 2010 7:52:39 PM Subject: Re: [Mediawiki-l] mediawiki installation error in ubuntu 10.04
ren yufei wrote:
Thank you. But I have already installed the php5-mysql,
$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you need any of configuration files?
Yufei
Does it still tell you "Could not find a suitable database driver!
- For MySQL, compile PHP using --with-mysql, or install the mysql.so
module" when trying to install?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thank you very much for your help. After reset the dir of extension_dir in /etc/php5/apache2/php.ini, the configuration success.
$ locate mysql.so /usr/lib/perl5/auto/DBD/mysql/mysql.so /usr/lib/php5/20090626/mysql.so /usr/lib/php5/20090626/pdo_mysql.so
"/etc/php5/apache2/php.ini" extension_dir = "/usr/lib/php5/20090626/" ; extension_dir = "/usr/lib/perl5/auto/DBD/mysql/" -- not this one
$ sudo /etc/init.d/apache2 restart
it works.
Yufei
________________________________ From: Brion Vibber brion@pobox.com To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Sent: Wed, October 13, 2010 12:29:04 PM Subject: Re: [Mediawiki-l] mediawiki installation error in ubuntu 10.04
Things to try: * restart the web server to ensure PHP configuration has been reloaded * make a file phpinfo.php containing "<?php phpinfo() ?>" * go to it in browser - it'll list all PHP configuration options and loaded modules. Check what's in there, including the path to php.ini * if necessary, edit php.initial to enable modules manually
Full docs on configuration are available at php.net
-- brion On Oct 12, 2010 4:56 PM, "ren yufei" renyufei83@yahoo.com.cn wrote:
Yes,
"PHP 5.3.2-1ubuntu4.5 installed Could not find a suitable database driver!
- For MySQL, compile PHP using --with-mysql, or install the mysql.so
module"
From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Tue, October 12, 2010 7:52:39 PM Subject: Re: [Mediawiki-l] mediawiki installation error in ubuntu 10.04
ren yufei wrote:
Thank you. But I have already installed the php5-mysql,
$ sudo apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done php5-mysql is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you need any of configuration files?
Yufei
Does it still tell you "Could not find a suitable database driver!
- For MySQL, compile PHP using --with-mysql, or install the mysql.so
module" when trying to install?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org