Difference between revisions of "Gallery: instalasi"

From OnnoWiki
Jump to navigation Jump to search
(New page: SUPPORTED CONFIGURATION: - 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...)
 
Line 33: Line 33:
 
  -x    Table prefix          (default: )
 
  -x    Table prefix          (default: )
  
 +
 +
 +
 +
 +
$ cd $HOME
 +
$ 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):
 +
 +
For .tar.gz archives
 +
 +
$ tar xzf gallery2.tar.gz
 +
 +
For zip archives
 +
 +
$ unzip gallery2.zip
  
  

Revision as of 05:32, 28 August 2011

SUPPORTED CONFIGURATION:

- 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:

 http://codex.gallery2.org/Gallery3:Requirements


INSTALLING AND UPGRADING INSTRUCTIONS: 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 beta 1 and beyond, but not from alpha releases.


INSTALLATION VIA THE WEB: - Point your web browser at gallery3/installer/ and follow the

 instructions.


INSTALLATION FROM THE COMMAND LINE: - 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: )



$ cd $HOME
$ 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): 

For .tar.gz archives

$ tar xzf gallery2.tar.gz

For zip archives

$ unzip gallery2.zip


Referensi

Pranala Menarik