Difference between revisions of "Raspbian: Instalasi Mediawiki"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
  grant ALL on mediawiki.* to mediawiki identified by 'mediawiki';
 
  grant ALL on mediawiki.* to mediawiki identified by 'mediawiki';
 
  exit
 
  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
 +
 +
Web ke
 +
 +
http://ip-raspberrypi/wiki/
 +
http://192.168.0.3/wiki
 +
 +
Copy LocalSettings.php
 +
 +
cd /home/pi/
 +
mv LocalSettings.php /var/www/wiki/
 +
chmod 600 /var/www/wiki/LocalSettings.php
 +
 +
Tambahkan
 +
 +
vi /var/www/wiki/LocalSettings.php
 +
 +
Masukan
 +
 +
$wgDBadminuser      = mediawiki;
 +
$wgDBadminpassword  = mediawiki;
 +
?>

Latest revision as of 06:21, 10 January 2015

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

Web ke

http://ip-raspberrypi/wiki/
http://192.168.0.3/wiki

Copy LocalSettings.php

cd /home/pi/
mv LocalSettings.php /var/www/wiki/
chmod 600 /var/www/wiki/LocalSettings.php

Tambahkan

vi /var/www/wiki/LocalSettings.php

Masukan

$wgDBadminuser      = mediawiki;
$wgDBadminpassword  = mediawiki;
?>