Difference between revisions of "Instalasi Ushahidi"

From OnnoWiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
  sudo su
 
  sudo su
  apt-get install lamp-server^ mcrypt php5-mcrypt libpcre3 spl-core spl-webspl spl-xml
+
  apt-get install lamp-server^ mcrypt libpcre3 spl-core spl-webspl spl-xml \
 +
php5-curl php5-mcrypt php5-mysql
 +
/etc/init.d/apache2 restart
 +
 
  
 
Siapkan [[database]] untuk [[ushahidi]], disini akan digunakan
 
Siapkan [[database]] untuk [[ushahidi]], disini akan digunakan
Line 15: Line 18:
 
Jika password Root [[MySQL]] [[database]] sudah di set maka  
 
Jika password Root [[MySQL]] [[database]] sudah di set maka  
 
kita dapat langsung mengkonfigurasi [[MySQL]] menggunakan perintah
 
kita dapat langsung mengkonfigurasi [[MySQL]] menggunakan perintah
 
+
http://localhost/installer/basic_summary.php
 
  mysql -u root -p
 
  mysql -u root -p
 
  Enter password:
 
  Enter password:
 
  create database ushahidi;
 
  create database ushahidi;
 
  grant INSERT,SELECT on root.* to ushahidi@localhost;
 
  grant INSERT,SELECT on root.* to ushahidi@localhost;
  grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi@localhost identified by 'ushahidipass';
+
  grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi@localhost identified by 'ushahidipass';http://localhost/installer/basic_summary.php
 
  grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi identified by 'ushahidipass';
 
  grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi identified by 'ushahidipass';
 
  exit
 
  exit
Line 44: Line 47:
  
 
  sudo su
 
  sudo su
 +
rm /var/www/index.html
 
  cp Ushahidi_Web_2.1_Tunis_Offical.zip /var/www
 
  cp Ushahidi_Web_2.1_Tunis_Offical.zip /var/www
 
  cd /var/www
 
  cd /var/www
 
  unzip Ushahidi_Web_2.1_Tunis_Offical.zip
 
  unzip Ushahidi_Web_2.1_Tunis_Offical.zip
 
  mv Ushahidi_Web ushahidi
 
  mv Ushahidi_Web ushahidi
  chown -Rf www-data.www-data /var/www/ushahidi
+
# mv /var/www/ushahidi/* /var/www
 +
# mv /var/www/ushahidi/.htaccess /var/www/
 +
chmod 777 /var/www/ushahidi/.htaccess
 +
  chown -Rf www-data.www-data /var/www/
 +
 
 +
==Instalasi Melalui Web Basic==
 +
 
 +
Akses ke
 +
 
 +
http://localhost/ushahidi/installer/
 +
 
 +
Lakukan
 +
 
 +
* akses ke http://localhost/ushahidi/installer/basic_summary.php
 +
* isi
 +
 
 +
Database Name ushahidi
 +
User Name    ushahidi
 +
Password      ushahidi
 +
 
 +
* isi
 +
 
 +
Site Name
 +
Site Tagline
 +
Site Email Address
 +
 
 +
==Instalasi Melalui Web Advance==
 +
 
 +
Akses ke
 +
 
 +
http://localhost/installer/advanced_summary.php
 +
 
 +
Lakukan
 +
 
 +
* akses ke http://localhost/installer/advanced_summary.php
 +
* isi
 +
 
 +
Database Name ushahidi
 +
User Name    ushahidi
 +
Password      ushahidi
 +
 
 +
* isi
 +
 
 +
Site Name
 +
Site Tagline
 +
Site Email Address
 +
 
 +
* isi
 +
 
 +
Site Alert Email Address
 +
Mail Server Username
 +
Mail Server Password
 +
Mail Server Port
 +
Mail Server Host
 +
Mail Server Type
 +
 
 +
Kita perlu instalasi Google API untuk versi Advanced ... agak repot kalau hanya untuk experimen.
 +
 
 +
==Instalasi Manual==
  
 
Konfigurasi Ushahidi
 
Konfigurasi Ushahidi
  
 
  cp /var/www/ushahidi/application/config/database.template.php /var/www/ushahidi/application/config/database.php
 
  cp /var/www/ushahidi/application/config/database.template.php /var/www/ushahidi/application/config/database.php
  chown -Rf www-data.www-data /var/www/ushahidi/
+
  chown -Rf www-data.www-data /var/www/ushahidi
 
  vi /var/www/ushahidi/application/config/database.php
 
  vi /var/www/ushahidi/application/config/database.php
  
Line 86: Line 148:
 
Akses Ushahidi menggunakan
 
Akses Ushahidi menggunakan
  
  URL:        http://localhost/ushahidi
+
  URL:        http://localhost/ushahidi/
 
  Admin Area: http://localhost/ushahidi/admin
 
  Admin Area: http://localhost/ushahidi/admin
 
  User:      admin
 
  User:      admin
 
  Password:  admin
 
  Password:  admin
 +
 +
==Beberapa URL penting==
 +
 +
* http://localhost/ushahidi/admin/reports/edit - upload report
 +
* http://localhost/ushahidi/admin/settings - konfigurasi map
 +
* http://localhost/ushahidi/admin/settings/sms - setup SMS server
  
  

Latest revision as of 11:03, 12 October 2011

Siapkan aplikasi pendukung

sudo su
apt-get install lamp-server^ mcrypt libpcre3 spl-core spl-webspl spl-xml \
php5-curl php5-mcrypt php5-mysql
/etc/init.d/apache2 restart


Siapkan database untuk ushahidi, disini akan digunakan database dengan nama ushahidi, user database dengan nama ushahidi dan password untuk akses database adalah ushahidi. Sedang password root MySQL di set sebagai password. Perintah yang digunakan untuk mengkonfigurasi adalah

mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');

Jika password Root MySQL database sudah di set maka kita dapat langsung mengkonfigurasi MySQL menggunakan perintah http://localhost/installer/basic_summary.php

mysql -u root -p
Enter password:
create database ushahidi;
grant INSERT,SELECT on root.* to ushahidi@localhost;
grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi@localhost identified by 'ushahidipass';http://localhost/installer/basic_summary.php
grant CREATE, INSERT, SELECT, DELETE, UPDATE, DROP, INDEX on ushahidi.* to ushahidi identified by 'ushahidipass';
exit

Bagi anda yang masih belajar. Asumsi root password 123456. Anda dapat juga menggunakan di bawah ini, tapi jangan digunakan di server yang operasional di Internet


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

Ambil source code dari

Lakukan

sudo su
rm /var/www/index.html
cp Ushahidi_Web_2.1_Tunis_Offical.zip /var/www
cd /var/www
unzip Ushahidi_Web_2.1_Tunis_Offical.zip
mv Ushahidi_Web ushahidi
# mv /var/www/ushahidi/* /var/www
# mv /var/www/ushahidi/.htaccess /var/www/
chmod 777 /var/www/ushahidi/.htaccess 
chown -Rf www-data.www-data /var/www/

Instalasi Melalui Web Basic

Akses ke

http://localhost/ushahidi/installer/

Lakukan

Database Name ushahidi
User Name     ushahidi
Password      ushahidi
  • isi
Site Name
Site Tagline
Site Email Address

Instalasi Melalui Web Advance

Akses ke

http://localhost/installer/advanced_summary.php

Lakukan

Database Name ushahidi
User Name     ushahidi
Password      ushahidi
  • isi
Site Name
Site Tagline
Site Email Address
  • isi
Site Alert Email Address
Mail Server Username
Mail Server Password
Mail Server Port
Mail Server Host
Mail Server Type

Kita perlu instalasi Google API untuk versi Advanced ... agak repot kalau hanya untuk experimen.

Instalasi Manual

Konfigurasi Ushahidi

cp /var/www/ushahidi/application/config/database.template.php /var/www/ushahidi/application/config/database.php
chown -Rf www-data.www-data /var/www/ushahidi
vi /var/www/ushahidi/application/config/database.php

pastikan

$config['default'] = array
(
        'benchmark'     => TRUE,
        'persistent'    => FALSE,
        'connection'    => array
        (
                'type'     => 'mysql',
                'user'     => 'ushahidi',
                'pass'     => 'ushahidi',
                'host'     => 'localhost',
                'port'     => FALSE,
                'socket'   => FALSE,
                'database' => 'ushahidi'
        ),
        'character_set' => 'utf8',
        'table_prefix'  => ,
        'object'        => TRUE,
        'cache'         => FALSE,
        'escape'        => TRUE
);

Lakukan

mysql -u ushahidi -pushahidi ushahidi < /var/www/ushahidi/sql/ushahidi.sql 


Akses Ushahidi menggunakan

URL:        http://localhost/ushahidi/
Admin Area: http://localhost/ushahidi/admin
User:       admin
Password:   admin

Beberapa URL penting



Referensi

Pranala Menarik