Difference between revisions of "Gallery: instalasi"

From OnnoWiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
SUPPORTED CONFIGURATION:
+
==Download==
- Platform: Linux / Unix.
 
- Web server: Apache 2.2 and newer.
 
- PHP 5.2.3 and newer (PHP's safe_mode must be disabled and simplexml,
 
  filter, and json must be installed).
 
- Database: MySQL 5 and newer.
 
  
For complete system requirements, please refer to:
+
Download [[source code]] dari
  http://codex.gallery2.org/Gallery3:Requirements
 
  
 +
http://sourceforge.net/projects/gallery/files/
 +
http://sourceforge.net/projects/gallery/files/gallery3/
 +
http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/
  
INSTALLING AND UPGRADING INSTRUCTIONS:
+
==Instalasi Software Pendukung==
For comprehensive instructions, The online User Guide is your best resource:
 
  http://codex.gallery2.org/Gallery3:User_guide
 
  
There are also simple instructions below. NOTE: You can upgrade from
+
  apt-get install apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd \
beta 1 and beyond, but not from alpha releases.
+
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
  
INSTALLATION VIA THE WEB:
+
a2enmod rewrite
- Point your web browser at gallery3/installer/ and follow the
 
  instructions.
 
  
 +
Restart Web Server
  
INSTALLATION FROM THE COMMAND LINE:
+
/etc/init.d/apache2 restart
- php installer/index.php [-h host] [-u user] [-p pass] [-d dbname]
+
 
 +
==Konfigurasi PHP==
 +
Edit
 +
 
 +
vi /etc/php5/apache2/php.ini
 +
 
 +
pastikan
 +
 
 +
upload_max_filesize: 1024M
 +
post_max_size: 1024M
 +
memory_limit: 512M
 +
 
 +
Edit
 +
 
 +
vi /etc/php5/cli/php.ini
 +
 
 +
pastikan
 +
 
 +
upload_max_filesize: 1024M
 +
post_max_size: 1024M
 +
memory_limit: 512M
 +
 
 +
Restart
 +
 
 +
/etc/init.d/apache2 restart
 +
 
 +
 
 +
==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==
 +
Download Gallery dari
 +
 
 +
http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/
 +
 
 +
Copy dan extract
 +
 
 +
mkdir /var/www/
 +
cp gallery-3.0.2.zip /var/www/
 +
cd /var/www/
 +
unzip gallery-3.0.2.zip
 +
chown -Rf www-data.www-data /var/www/
 +
chown -Rf www-data.www-data /var/www/gallery3
 +
 
 +
===Instalasi Melalui Command Line===
 +
 
 +
Perintah yang digunakan
 +
 
 +
php installer/index.php [-h host] [-u user] [-p pass] [-d dbname]
  
 
  Command line parameters:
 
  Command line parameters:
Line 33: Line 94:
 
  -x    Table prefix          (default: )
 
  -x    Table prefix          (default: )
  
 +
Untuk pemula / latihan dapat menggunakan perintah
  
 +
cd /var/www/gallery3
 +
php installer/index.php -h localhost -u gallery3 -p gallery3 -d gallery3
  
 +
Jika berhasil akan keluar seperti
  
 +
Your Gallery has been successfully installed!
 +
We've created an account for you to use:
 +
  username: admin
 +
  password: a17b61
  
$ cd $HOME
+
Catat baik-baik password admin
$ mkdir g2data
 
$ chgrp apache g2data
 
$ chmod 770 g2data
 
 
 
 
 
$ mysqladmin -uroot create gallery2
 
$ mysql gallery2 -uroot -e"GRANT ALL ON gallery2.* TO username@localhost IDENTIFIED BY 'password'"
 
 
 
1. Upload - Copy the Gallery 2 files to a directory on your webserver. There are several alternatives for this step:
 
  
    Fastest way: Upload the gallery package to your web server archive via FTP or another method, then unpack it using an interactive shell session (eg. ssh or telnet). Example unpacking commands (choose the appropriate one):
+
===Instalasi Melalui Web===
  
For .tar.gz archives
+
Kita dapat menginstalasi melalui Web
  
$ tar xzf gallery2.tar.gz
+
http://localhost/gallery3/installer
  
For zip archives
+
ikuti petunjuk
  
$ unzip gallery2.zip
+
==Akses Web==
  
 +
http://localhost/gallery3
  
 
==Referensi==
 
==Referensi==
  
 +
* http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/
 +
* http://codex.gallery2.org/Gallery3:Requirements
 
* http://codex.gallery2.org/Gallery3:User_guide
 
* http://codex.gallery2.org/Gallery3:User_guide
  
Line 67: Line 130:
 
* [[gallery]]
 
* [[gallery]]
 
* [[Multimedia di Linux]]
 
* [[Multimedia di Linux]]
 +
* [[Instalasi Adobe Flash Player]]

Latest revision as of 14:59, 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

Restart Web Server

/etc/init.d/apache2 restart

Konfigurasi PHP

Edit

vi /etc/php5/apache2/php.ini

pastikan

upload_max_filesize: 1024M
post_max_size: 1024M
memory_limit: 512M

Edit

vi /etc/php5/cli/php.ini

pastikan

upload_max_filesize: 1024M
post_max_size: 1024M
memory_limit: 512M

Restart

/etc/init.d/apache2 restart


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

Download Gallery dari

http://sourceforge.net/projects/gallery/files/gallery3/3.0.2/

Copy dan extract

mkdir /var/www/
cp gallery-3.0.2.zip /var/www/
cd /var/www/
unzip gallery-3.0.2.zip
chown -Rf www-data.www-data /var/www/
chown -Rf www-data.www-data /var/www/gallery3

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/gallery3
php installer/index.php -h localhost -u gallery3 -p gallery3 -d gallery3

Jika berhasil akan keluar seperti

Your Gallery has been successfully installed!
We've created an account for you to use:
  username: admin
  password: a17b61

Catat baik-baik password admin

Instalasi Melalui Web

Kita dapat menginstalasi melalui Web

http://localhost/gallery3/installer

ikuti petunjuk

Akses Web

http://localhost/gallery3

Referensi

Pranala Menarik