Installing on a Unix/Linux Server with Shell Access
Prev | Chapter 1. Gallery 1.x Installation Guide | Next

## Installing on a Unix/Linux Server with Shell Access

### Note

This guide is for a new installation of Gallery. If you are upgrading from an old version, please see the Upgrading Guide.

### Note

Gallery 1.x requires certain programs to be installed before it can work correctly. For information on how to install these programs, see the installing required programs guide.

Before you can start doing anything, you must first download Gallery. Gallery is available for download from the SourceForge Download Page. Once you have downloaded Gallery, you're ready to start installing it.

1. You now need to untar Gallery. Move the Gallery tarball (named gallery-1.x.x.tar.gz to somewhere in your web directory [accessible to the web]). Next type the following command:

            tar -xvzf gallery-1.x.x.tar.gz

   You will see a long list of files. You are now ready for the next step.

2. Create two blank files, `.htaccess` and `config.php`. The easiest way is to use the touch command.

            cd gallery (cd to where you are installing Gallery)
            touch config.php .htaccess

   Now, you need to chmod both of these files 0777.

            chmod 0777 config.php .htaccess

   You also need to chmod the `setup/` directory 0755.

            chmod 0755 setup

3. You now need to create a directory to hold Gallery's albums. You can create the directory anywhere in your web space (accessible via the web). It is easiest to just create another directory in your gallery/ directory.

            mkdir albums

   This directory must be chmodded 0777

            chmod 0777 albums

   If you didn't create the albums directory in your Gallery directory, make sure you remember where you did create it. You'll need to tell Gallery where you put it later.

4. Run the configuration wizard, as described in this guide.

5. Enjoy your new Gallery!

Prev | Up | Next
Installing on a Unix/Linux Server with FTP | Home | Installing on a Windows Server (Apache)