Gallery1:Installation on a Unix/Linux Server with FTP - Gallery Codex
Personal tools

Gallery1:Installation on a Unix/Linux Server with FTP

From Gallery Codex

Revision as of 13:09, 22 April 2011 by Ckdake (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Click on any image for more detail

  • Decompress Gallery by using WinZip (on Windows) or tar (command line *nix). When it's finished, you should have one main gallery/ directory under which all Gallery files are contained.


  • Create two blank files in your favorite editor (e.g. Notepad, vi, emacs, nano, etc...) Call one .htaccess and the other config.php. Place these inside the base Gallery directory.

In Notepad, be sure to select "All Files (*.*)" when saving the file, so the file does not have a .txt suffix. .htaccess and config.php will not work if they have a .txt extension

UnixFTP-02.jpg UnixFTP-03.jpg

  • Upload the Gallery directory (which should now include config.php and .htaccess) to your server using an FTP program (like WS_FTP, CuteFTP or Fetch. The documentation uses FlashFXP). Upload all files in BINARY mode. Also be sure to keep the directory tree and the case of filenames intact.


  • Create a directory on your webspace called albums. Gallery will use this directory to store the albums you create and the images you upload to those albums. For ease, put the directory inside your Gallery directory.


  • Gallery requires some files and directories to be set writable by the web server.


  • Chmod as follows:

UnixFTP-07.jpg chmod 777 albums

UnixFTP-08.jpg chmod 777 .htaccess

UnixFTP-09.jpg chmod 777 config.php

UnixFTP-10.jpg chmod 755 setup