Raspbian: Instalasi Mediawiki

From OnnoWiki
Revision as of 06:02, 10 January 2015 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Instalasi paket pendukung

sudo apt-get install apache2 php5 php5-xmlrpc php5-mysql php5-gd \
php5-cli php5-curl mysql-client mysql-server libphp-adodb \
libgd2-xpm-dev php5-curl php-pear

Setup database (asumsi root password 123456)

mysql -u root -p123456
create database mediawiki;
grant ALL on root.* to mediawiki@localhost;
grant ALL on mediawiki.* to mediawiki@localhost identified by 'mediawiki';
grant ALL on mediawiki.* to mediawiki identified by 'mediawiki';
exit

Copy source code mediawiki

cp mediawiki-1.24.1.tar.gz /var/www/
cd /var/www
tar zxvf mediawiki-1.24.1.tar.gz
mv mediawiki-1.24.1 wiki
cp -Rf /var/www/wiki/mw-config/ /var/www/wiki/config
chmod a+w wiki/mw-config
chmod a+w wiki/config