Requirements


Steps for a Fresh Installation

  1. Download and extract ThePhig to your local machine
  2. Edit config.php, filling out the information for your database (username, password, hostname, and database name)
  3. Upload the gallery files to your webserver
  4. Upload your albums to the gallery_images directory. Each album should be it's own directory (ie gallery_images/album1/image1.jpg, etc)
  5. Change the permissions of the uploaded album folders to 777 or read/write/execute
  6. Point your browser to the install.php file (ie http://www.website.com/gallery/install.php)
  7. Fill out all the details required, hit submit, and delete the install.php file
  8. You can now administrate your gallery by going to the admin.php page. From the admin page, you can add albums to the database, create the thumbnails, etc
  9. Visit index.php to view your new gallery

Steps for Upgrading to the Latest Version

  1. Backup your database and files as a precaution
  2. Download and extract ThePhig to your local machine
  3. Replace all files (or those listed in changelog) except for inc/config.php
  4. Run any upgrade scripts included. These upgrade scripts are important for updating the database.
  5. Delete install.php and upgrade-* scripts

Integrating Into A Pre-Existing Webpage

If you'd like to integrate ThePhig into a pre-existing site, you'll only need to create your own theme. In the templates/ directory, each directory is a separate theme.

Template Files

Available Template Variables

If you have any questions, make sure to check the FAQ, the forums, or submit questions to support@thephig.com