Gallery2:Installation on Windows XP with Apache - Gallery Codex
Personal tools

Gallery2:Installation on Windows XP with Apache

From Gallery Codex

Prerequisites

A working WAMP setup,

Apache 2 - http://httpd.apache.org/download.cgi

PHP 5 - http://www.php.net/downloads.php

MySQL 5 - http://dev.mysql.com/downloads/mysql/5.0.html

Another GPL Project has all these in 1 package if you don't want to do any configuration: http://www.wampserver.com/en/

Preparing to Install

Download the Installation package from http://codex.galleryproject.org/index.php/Gallery2:Download#Packages

Choose ‘typical‘ as it contains the base application, 6 themes and a selection of popular modules which are enough to satisfy the demands of most Gallery user

Unzip the package into a folder called ‘gallery‘ in WWW(web server’s) directory

Read the Read Me, it talks about most of the issues related to installation in detail.

ImageMagick is required for creating thumbnails in Gallery.

Download ImageMagick from http://www.imagemagick.org/script/binary-releases.php. Choose package ImageMagick-6.2.9-3-Q16-windows-dll.exe and install it.

GD is another graphics package for Gallery similar to ImageMagick. The GD library is already available as an extension to PHP. So just uncomment(activate) the 'php_gd2.dll' in ‘php.ini‘.

Create a directory called ‘Gallery Data‘ for holding image files. (This should be outside webserver’s root)

Create a database ‘gallery‘.

Create a Database User ‘galleryuser‘ with password ‘yourPassword‘ with ‘ALL Privileges’ on ‘gallery‘ database.

Note:The paths and URLs in this guide are examples. Be sure to replace them with the paths and URLs specific to your installation.

Gallery 2 Installation

Open the web browser and browse to the install directory. Gallery2 will walk you through all the necessary steps. There are 12 steps (detailed in ReadMe) altogether and unless something goes wrong, there’s nothing for you to worry about.

A few thing to note are given below.

During the installation step an Administrator account will be created. Make sure you remember them. This info is written in 'config.php' in gallery directory.

While installing the modules, you may get some warnings as shown below. Mainly because some of the required components were not available in the system.

Install Other Modules

* The Archive Upload module was installed, but needs configuration to be activated
* The Ffmpeg module was installed, but needs configuration to be activated
* The NetPBM module was installed, but needs configuration to be activated
* The URL Rewrite module was installed, but needs configuration to be activated.

You will be prompted to read the 'Security related Issues' towards the end.


__MAGIC_REMOVE__12965__ This is the final screen you will see.

Securing the Installation

Now create a ‘.htaccess‘ file in the Gallery directory with the following contents. This is required for restricting unauthorized access.

<Files ~ “\.(inc|class)$”>
Deny from all
</Files>

Since windows doesn't allow to creating filenames beginning with ‘.’ , rename it using DOS ren command

G:\WWW\gallery>ren “New Text Document.txt” .htaccess

Thats all! Now, begin creating albums…