Difference between revisions of "Gallery: instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 20: | Line 20: | ||
==Konfigurasi Database== | ==Konfigurasi Database== | ||
− | mysqladmin -p create | + | mysqladmin -p create gallery3 |
mysql -u root -p | mysql -u root -p | ||
− | CREATE USER | + | CREATE USER gallery3@localhost IDENTIFIED BY 'gallery3'; |
− | GRANT ALL PRIVILEGES ON | + | GRANT ALL PRIVILEGES ON gallery3.* TO gallery3; |
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
exit | exit | ||
Line 30: | Line 30: | ||
Jika sedang belajar dengan password mysql 123456 dapat menggunakan perintah | Jika sedang belajar dengan password mysql 123456 dapat menggunakan perintah | ||
− | mysqladmin -p123456 create | + | mysqladmin -p123456 create gallery3 |
mysql -u root -p123456 | mysql -u root -p123456 | ||
− | CREATE USER | + | CREATE USER gallery3@localhost IDENTIFIED BY 'gallery3'; |
− | GRANT ALL PRIVILEGES ON | + | GRANT ALL PRIVILEGES ON gallery3.* TO gallery3; |
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
exit | exit | ||
Line 72: | Line 72: | ||
cd /var/www/gallery | cd /var/www/gallery | ||
− | php installer/index.php -h localhost -u | + | php installer/index.php -h localhost -u gallery3 -p gallery3 -d gallery3 |
===Instalasi Melalui Web=== | ===Instalasi Melalui Web=== |
Revision as of 14:31, 28 August 2011
Download
Download source code dari
http://sourceforge.net/projects/gallery/files/ http://sourceforge.net/projects/gallery/files/gallery3/ http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/
Instalasi Software Pendukung
apt-get install apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd \ php5-xsl php5-curl mysql-server mplayer mencoder ffmpeg flvtool2 lamp-server^ \ gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \ dcraw jhead unzip zip
Enable beberapa fitur
a2enmod rewrite
Konfigurasi Database
mysqladmin -p create gallery3
mysql -u root -p CREATE USER gallery3@localhost IDENTIFIED BY 'gallery3'; GRANT ALL PRIVILEGES ON gallery3.* TO gallery3; FLUSH PRIVILEGES; exit
Jika sedang belajar dengan password mysql 123456 dapat menggunakan perintah
mysqladmin -p123456 create gallery3 mysql -u root -p123456 CREATE USER gallery3@localhost IDENTIFIED BY 'gallery3'; GRANT ALL PRIVILEGES ON gallery3.* TO gallery3; FLUSH PRIVILEGES; exit
Install
mkdir /var/www/gallery cp
$ cd $HOME $ mkdir g2data $ chgrp apache g2data $ chmod 770 g2data
$ tar xzf gallery2.tar.gz
For zip archives
$ unzip gallery2.zip
Instalasi Melalui Command Line
Perintah yang digunakan
php installer/index.php [-h host] [-u user] [-p pass] [-d dbname]
Command line parameters: -h Database host (default: localhost) -u Database user (default: root) -p Database user password (default: ) -d Database name (default: gallery3) -x Table prefix (default: )
Untuk pemula / latihan dapat menggunakan perintah
cd /var/www/gallery php installer/index.php -h localhost -u gallery3 -p gallery3 -d gallery3
Instalasi Melalui Web
Kita dapat menginstalasi melalui Web
http://localhost/gallery/installer
ikuti petunjuk
Referensi
- http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/
- http://codex.gallery2.org/Gallery3:Requirements
- http://codex.gallery2.org/Gallery3:User_guide