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

Gallery1:Installation on a Unix/Linux Server with Shell Access

From Gallery Codex

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

  • Change your current working directory to the directory where you want to install Gallery, and download the Gallery tarball there (downloadable from Gallery Download Page)

cd /var/www

  • Untar Gallery

tar -xvzf gallery-1.5.tar.gz

  • Change to your fresh gallery directory

cd gallery

  • Create two blank files, .htaccess and config.php, and Chmod them 0666

touch .htaccess
touch config.php
chmod 0666 .htaccess config.php

  • Make a blank directory for Gallery to store your albums and images in. Chmod it 0777

mkdir albums
chmod 0777 albums
(Some filesystems, such as FAT32, do not support permissions, so you'll have to add umask=0000 to that partition's FSTAB entry and remount it).