Difference between revisions of "Instalasi Mahara"
Onnowpurbo (talk | contribs)  | 
				Onnowpurbo (talk | contribs)   | 
				||
| (26 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | Siapkan   | + | ==Siapkan Aplikasi Pendukung==  | 
| − | + | Siapkan aplikasi pendukung  | |
| + | |||
| + |   apt-get install libsyncml0 libsyncml-dev libsyncml-utils \  | ||
  opensync-plugin-syncml php-pear php5-gd php5-imap php5-odbc \  |   opensync-plugin-syncml php-pear php5-gd php5-imap php5-odbc \  | ||
  php5-pgsql apache2 mysql-server libmysqlclient15-dev libphp-adodb \  |   php5-pgsql apache2 mysql-server libmysqlclient15-dev libphp-adodb \  | ||
| Line 7: | Line 9: | ||
  php5-xmlrpc libnet-ssleay-perl  |   php5-xmlrpc libnet-ssleay-perl  | ||
| − | Ambil [[  | + | Enable mod_rewrite di [[apache]]  | 
| + | |||
| + |  sudo a2enmod rewrite  | ||
| + | |||
| + | Alternatif lain  | ||
| + | |||
| + |  vi /etc/apache2/sites-enabled/000-default  | ||
| + | |||
| + |  DocumentRoot /var/www  | ||
| + |  <Directory />  | ||
| + |       Options FollowSymLinks  | ||
| + |       AllowOverride '''all'''  | ||
| + |  </Directory>  | ||
| + |  <Directory /var/www/>  | ||
| + |       Options Indexes FollowSymLinks MultiViews  | ||
| + |       AllowOverride '''all'''  | ||
| + |       Order allow,deny  | ||
| + |       allow from all  | ||
| + |  </Directory>  | ||
| + | |||
| + | Restart [[Apache]]  | ||
| + | |||
| + |  service apache2 restart  | ||
| + | atau  | ||
| + |  /etc/init.d/apache2 restart  | ||
| + | |||
| + | ==Instalasi Source Code Mahara==  | ||
| + | |||
| + | Ambil [[source code]] mahara di  | ||
  http://mahara.org/  |   http://mahara.org/  | ||
  http://eduforge.org/frs/?group_id=176  |   http://eduforge.org/frs/?group_id=176  | ||
| + |  https://launchpad.net/mahara/1.4  | ||
| + |  https://launchpad.net/mahara/1.4/1.4.2/+download/mahara-1.4.2.tar.bz2  | ||
| + |  https://launchpad.net/mahara/1.4/1.4.2/+download/mahara-1.4.2.tar.gz  | ||
Install mahara  | Install mahara  | ||
| − |   cp mahara-1.  | + |   cp mahara-1.4.2.tar.bz2 /var/www/  | 
  cd /var/www  |   cd /var/www  | ||
| − |   tar jxvf mahara-1.  | + |   tar jxvf mahara-1.4.2.tar.bz2    | 
| − |   mv /var/www/mahara-1.  | + |   mv /var/www/mahara-1.4.2 /var/www/mahara  | 
  mkdir /var/www/maharadata  |   mkdir /var/www/maharadata  | ||
  chmod -Rf 777 /var/www/maharadata  |   chmod -Rf 777 /var/www/maharadata  | ||
  chown -Rf www-data.www-data /var/www/maharadata  |   chown -Rf www-data.www-data /var/www/maharadata  | ||
  chown -Rf www-data.www-data /var/www/mahara  |   chown -Rf www-data.www-data /var/www/mahara  | ||
| + |  chown -Rf www-data.www-data /var/www/  | ||
Edit konfigurasi  | Edit konfigurasi  | ||
| Line 29: | Line 63: | ||
  vi /var/www/mahara/htdocs/config.php    |   vi /var/www/mahara/htdocs/config.php    | ||
| − | + |  // database connection details  | |
| − | + |  // valid values for dbtype are 'postgres8' and 'mysql5'  | |
| − | + |  $cfg->dbtype   = 'mysql5';  | |
| − | + |  $cfg->dbhost   = 'localhost';  | |
| − | + |  $cfg->dbport   = null;  | |
| − | + |  $cfg->dbname   = 'mahara';  | |
| − | + |  $cfg->dbuser   = 'mahara';  | |
| − | + |  $cfg->dbpass   = 'mahara';  | |
| + |  $cfg->dbprefix = 'mh_';  | ||
| + |  $cfg->wwwroot = 'http://192.168.0.62/mahara/htdocs/';  | ||
| + |  $cfg->dataroot = '/var/www/maharadata';  | ||
Buat [[database]] mahara pada [[MySQL]], siapkan user [[database]] untuk mengakses [[database]] mahara melalui perintah  | Buat [[database]] mahara pada [[MySQL]], siapkan user [[database]] untuk mengakses [[database]] mahara melalui perintah  | ||
| Line 49: | Line 86: | ||
Bagi mereka yang sedang experimen / mencoba dapat menggunakan yang lebih sederhana  | Bagi mereka yang sedang experimen / mencoba dapat menggunakan yang lebih sederhana  | ||
| − |   # mysql -u root -  | + |   # mysql -u root -p123456  | 
| − | + | ||
  create database mahara character set UTF8;  |   create database mahara character set UTF8;  | ||
  grant ALL on mahara.* to mahara@localhost identified by 'mahara';  |   grant ALL on mahara.* to mahara@localhost identified by 'mahara';  | ||
| Line 56: | Line 93: | ||
  exit  |   exit  | ||
| + | Edit php.ini  | ||
| + | |||
| + |  vi /etc/php5/apache2/php.ini  | ||
| + | |||
| + | pastikan  | ||
| + | |||
| + |  register_globals off  | ||
| + |  magic_quotes_runtime off  | ||
| + |  magic_quotes_sybase off  | ||
| + |  magic_quotes_gpc off  | ||
| + |  log_errors on  | ||
| + |  allow_call_time_pass_reference off  | ||
| + | |||
| + | Edit supaya  | ||
| + | |||
| + |  upload_max_filesize 50M  | ||
| + |  post_max_size 50M  | ||
| + | |||
| + | Misalnya [[Server]] berada di [[IP Address]] 192.168.0.62  | ||
| + | Edit konfigurasi Apache2 jika kita berada di shared host  | ||
| − | + |  vi /etc/apache2/sites-enabled/mahara-httpd.conf  | |
| − | + |   <VirtualHost *:80>  | |
| − | + |      ServerName 192.168.0.62  | |
| + |      DocumentRoot /var/www/mahara/htdocs  | ||
| + | |||
| + |      ErrorLog /var/log/apache2/mahara.error.log  | ||
| + |      CustomLog /var/log/apache2/mahara.access.log combined  | ||
| − | + |      <Directory /var/www/mahara/htdocs>  | |
| − | + |           AllowOverride All  | |
| − | + |      </Directory>  | |
| + |  </VirtualHost>  | ||
| + | |||
| + | Alternatif lain  | ||
| − | + |  <VirtualHost *:80>  | |
| − | + |      ServerName 192.168.0.62  | |
| + |      DocumentRoot /var/www/mahara/htdocs  | ||
| + |      <Directory />  | ||
| + |          Options FollowSymLinks  | ||
| + |          AllowOverride None  | ||
| + |      </Directory>  | ||
| + |      <Directory /var/www/mahara/htdocs/>  | ||
| + |          Options Indexes FollowSymLinks MultiViews  | ||
| + |          AllowOverride None  | ||
| + |          Order allow,deny  | ||
| + |          allow from all  | ||
| + |      </Directory>  | ||
| + |      ErrorLog /var/log/apache2/error.log  | ||
| + |      CustomLog /var/log/apache2/access.log combined  | ||
| + |  </VirtualHost>  | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | Reload Apache  | |
| − | + | ||
| + |   /etc/init.d/apache2 restart  | ||
| + | |||
| + | ==Selesaikan Proses Instalasi Melalui Web==  | ||
Akses ke [[web]]  | Akses ke [[web]]  | ||
| + |  http://192.168.0.62/mahara/htdocs  | ||
| + | atau  | ||
| + |  http://ip-address-server/mahara/htdocs  | ||
| + | atau  | ||
  http://localhost/mahara/htdocs  |   http://localhost/mahara/htdocs  | ||
| + | |||
| + | |||
Username "admin" password "mahara"  | Username "admin" password "mahara"  | ||
| Line 98: | Line 181: | ||
| − | ==Sedikit Bug   | + | ==ERROR==  | 
| + | |||
| + | ===ERROR: The requested URL /admin/ was not found on this server===  | ||
| + | |||
| + | Pada saat pertama kali akses keluar  | ||
| + | |||
| + |  The requested URL /admin/ was not found on this server.  | ||
| + | |||
| + | '''Solusi:'''  | ||
| + | |||
| + | Edit file  | ||
| + | |||
| + |  vi /var/www/mahara/htdocs/config.php   | ||
| + | |||
| + | Tambahkan  | ||
| + | |||
| + |  $cfg->wwwroot = 'http://192.168.0.62/mahara/htdocs/';  | ||
| + | atau  | ||
| + |  $cfg->wwwroot = 'http://ip-address/mahara/htdocs/';  | ||
| + | |||
| + | ===ERROR: Pada versi Mahara lama ada Sedikit Bug===  | ||
| + | |||
| + | Untuk versi Mahara yang baru tampaknya cara ini tidak di perlukan lagi.  | ||
| + | |||
| + | '''Solusi:'''  | ||
Edit file  | Edit file  | ||
| Line 108: | Line 215: | ||
  // ensure_sanity();  |   // ensure_sanity();  | ||
| + | ==Referensi==  | ||
| − | + | * https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Installing_Mahara  | |
==Pranala Menarik==  | ==Pranala Menarik==  | ||
| − | * [[  | + | * [[Mahara]]  | 
| + | * [[Instalasi Mahara]] Social Networking  | ||
| + | * [[Instalasi OpenPNE]] Social Networking  | ||
| + | * [[jcow]]  | ||
| + | * [[oxwall]]  | ||
| + | * [[elgg]]  | ||
Latest revision as of 09:05, 1 April 2012
Siapkan Aplikasi Pendukung
Siapkan aplikasi pendukung
apt-get install libsyncml0 libsyncml-dev libsyncml-utils \ opensync-plugin-syncml php-pear php5-gd php5-imap php5-odbc \ php5-pgsql apache2 mysql-server libmysqlclient15-dev libphp-adodb \ libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear \ php5-xmlrpc libnet-ssleay-perl
Enable mod_rewrite di apache
sudo a2enmod rewrite
Alternatif lain
vi /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www
<Directory />
     Options FollowSymLinks
     AllowOverride all
</Directory>
<Directory /var/www/>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride all
     Order allow,deny
     allow from all
</Directory>
Restart Apache
service apache2 restart
atau
/etc/init.d/apache2 restart
Instalasi Source Code Mahara
Ambil source code mahara di
http://mahara.org/ http://eduforge.org/frs/?group_id=176 https://launchpad.net/mahara/1.4 https://launchpad.net/mahara/1.4/1.4.2/+download/mahara-1.4.2.tar.bz2 https://launchpad.net/mahara/1.4/1.4.2/+download/mahara-1.4.2.tar.gz
Install mahara
cp mahara-1.4.2.tar.bz2 /var/www/ cd /var/www tar jxvf mahara-1.4.2.tar.bz2 mv /var/www/mahara-1.4.2 /var/www/mahara mkdir /var/www/maharadata chmod -Rf 777 /var/www/maharadata chown -Rf www-data.www-data /var/www/maharadata chown -Rf www-data.www-data /var/www/mahara chown -Rf www-data.www-data /var/www/
Edit konfigurasi
cd /var/www/mahara/htdocs/ cp /var/www/mahara/htdocs/config-dist.php /var/www/mahara/htdocs/config.php vi /var/www/mahara/htdocs/config.php
// database connection details // valid values for dbtype are 'postgres8' and 'mysql5' $cfg->dbtype = 'mysql5'; $cfg->dbhost = 'localhost'; $cfg->dbport = null; $cfg->dbname = 'mahara'; $cfg->dbuser = 'mahara'; $cfg->dbpass = 'mahara'; $cfg->dbprefix = 'mh_'; $cfg->wwwroot = 'http://192.168.0.62/mahara/htdocs/'; $cfg->dataroot = '/var/www/maharadata';
Buat database mahara pada MySQL, siapkan user database untuk mengakses database mahara melalui perintah
# mysql -u root -p Enter password: (isi password root untuk MySQL) mysql> create database maharadb character set UTF8; mysql> grant ALL on maharadb.* to mahara@localhost identified by 'maharapass'; mysql> grant ALL on maharadb.* to mahara identified by 'maharapass'; mysql> exit
Bagi mereka yang sedang experimen / mencoba dapat menggunakan yang lebih sederhana
# mysql -u root -p123456
create database mahara character set UTF8; grant ALL on mahara.* to mahara@localhost identified by 'mahara'; grant ALL on mahara.* to mahara identified by 'mahara'; exit
Edit php.ini
vi /etc/php5/apache2/php.ini
pastikan
register_globals off magic_quotes_runtime off magic_quotes_sybase off magic_quotes_gpc off log_errors on allow_call_time_pass_reference off
Edit supaya
upload_max_filesize 50M post_max_size 50M
Misalnya Server berada di IP Address 192.168.0.62 Edit konfigurasi Apache2 jika kita berada di shared host
vi /etc/apache2/sites-enabled/mahara-httpd.conf
<VirtualHost *:80>
    ServerName 192.168.0.62
    DocumentRoot /var/www/mahara/htdocs
     
    ErrorLog /var/log/apache2/mahara.error.log
    CustomLog /var/log/apache2/mahara.access.log combined
    <Directory /var/www/mahara/htdocs>
         AllowOverride All
    </Directory>
</VirtualHost>
Alternatif lain
<VirtualHost *:80>
    ServerName 192.168.0.62
    DocumentRoot /var/www/mahara/htdocs
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/mahara/htdocs/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>
    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Reload Apache
/etc/init.d/apache2 restart
Selesaikan Proses Instalasi Melalui Web
Akses ke web
http://192.168.0.62/mahara/htdocs
atau
http://ip-address-server/mahara/htdocs
atau
http://localhost/mahara/htdocs
Username "admin" password "mahara"
ERROR
ERROR: The requested URL /admin/ was not found on this server
Pada saat pertama kali akses keluar
The requested URL /admin/ was not found on this server.
Solusi:
Edit file
vi /var/www/mahara/htdocs/config.php
Tambahkan
$cfg->wwwroot = 'http://192.168.0.62/mahara/htdocs/';
atau
$cfg->wwwroot = 'http://ip-address/mahara/htdocs/';
ERROR: Pada versi Mahara lama ada Sedikit Bug
Untuk versi Mahara yang baru tampaknya cara ini tidak di perlukan lagi.
Solusi:
Edit file
vi /var/www/mahara/htdocs/init.php
Edit line 79 & beri tanda // (remarks)
// ensure_sanity();
Referensi
Pranala Menarik
- Mahara
 - Instalasi Mahara Social Networking
 - Instalasi OpenPNE Social Networking
 - jcow
 - oxwall
 - elgg