[vox-tech] Apache/MySQL/PHP working together for mediawiki

timriley at appahost.com timriley at appahost.com
Mon Jul 5 15:35:11 PDT 2010


Dear LUGOD,

My Linux installation came with Apache, MySQL, and PHP working; however,
only Apache and PHP are working together. From Apache I can execute PHP;
however, PHP doesn't connect to MySQL, which is running.

I'm trying to install mediawiki which requires all three to work
together. The mediawiki installation process has me executing:
http://localhost/mediawiki/config/index.php

However, the resulting HTML page contains this error:
# PHP 5.2.4-2ubuntu5.10 installed
Could not find a suitable database driver!

    * For MySQL, compile PHP using --with-mysql, or install the mysql.so
module

This seems to require for me to reinstall PHP from source or to install
a dynamically linked object module. I'm going through the steps to
install PHP from source, but it seems to want me to install Apache
first:
http://us.php.net/manual/en/install.unix.apache2.php

Look for the snippet that says:
cd ../php-NN
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install

I don't have apxs. "locate apxs" returns nothing. So googling it sends
me here:
http://httpd.apache.org/docs/2.2/programs/apxs.html

This is too far from where I want to be. Any hints? Thank you.

--
Tim Riley



More information about the vox-tech mailing list