Installing Mediawiki using SQLite Database in GNU/Debian
NOTE: These article commands have been tested in GNU/Debian Sid. They should also work in Ubuntu flavours.
First we need to install php, apache and SQLite if they are not installed. This command will do the trick:
#apt-get install php5-sqlite
Following mediawiki recommendation we add some extensions to php for SQLite to work:
Edit /etc/php5/apache2/php.ini
Add these two lines in that file:
extension=php_pdo_sqlite.so extension=php_pdo.so
To solve servername warning when launching apache daemon:
#echo "ServerName localhost" >> /etc/apache2/httpd.confWe start apache web server:
#apache2ctl startDOWNLOAD MEDIAWIKI SOURCE CODE
#cd /var/wwwWe get latest mediawiki source code tarball (current one when writting this article is 1.15.1):
#wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.1.tar.gzUncompress it:
#tar xvfz mediawiki-1.15.1.tar.gz#cd mediawiki-1.15.1#ln -s mediawiki-1.15.1 mediawikiWe set writting permissions to config directory so we will be able to configure our wiki:
#chmod a+w config