Installation of GALLERY2



Step (1) ----------------------------------------------------------

yum install php php-pear php-common php-mysql php-cli php-pdo php-gd

Install PHP componet for Gallery2,

vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.html index.html.var index.php

Add "index.php" into config "DirectoryIndex" in httpd.conf

/etc/init.d/httpd restart

If your server is ready running PHP, skip this step



Step (2) ----------------------------------------------------------

yum install mysql mysql-devel mysql-server
chkconfig mysqld on
/etc/init.d/mysqld start

Install mysql, if your server is ready running mysql, skip this Step

mysqaladmin -uroot password 123456

Set DB root password for first initial



Step (3) ----------------------------------------------------------

Download the newest Gallery2 tar file
http://gallery.menalto.com/

wget http://downloads.sourceforge.net/gallery/gallery-2.2.3-full.tar.gz
tar -zxvf gallery-2.2.3-full.tar.gz
mv gallery2/ /var/www/html/



Step (4) ----------------------------------------------------------

Open website browser for installation
http://127.0.0.1/gallery2/install/
http://192.168.1.xxx/gallery2/install/

In authenticate section, copy the string,
and paste in login.txt in the gallery2 directory

In systemcheck section, ensure php setting is satisfied to Gallery2

vi /etc/php.ini
/etc/init.d/httpd restart

In storage section, according the instruction to define and setup the storage path, beware the permission

chmod 755 /var/www/html/gallery2

In database section, according the instruction to define and setup the mysql authenication and database, but first create the database gallery2 in mysql first

mysql -uroot -p
create database gallery2;

In admin user setup section, set the admin user id and password and email

In create config file section, according the instruction to finish the step

touch config.php chmod 666 config.php

In Install Gallery Core section, according the instruction to finish the step

In Install plugin section, according the instruction to finish the step

In check security section, according the instruction to finish the step

chmod 755 /var/www/html/gallery2
chmod 644 /var/www/html/gallery2/config.php



Step (5) ----------------------------------------------------------

http://127.0.0.1/gallery2/main.php
Installation is finished, try it!


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.