|
|
| Support FAQs, Tutorials and Contact Info |
Gallery v1.0From Support CenterGallery 1 is a widely used online photo album management system. Gallery 2 is nearing the end of its testing phase, and we have instructions on installing Gallery 2 on Globat servers, so we'd encourage you to explore that option as Gallery 2 has an easier installation process and is much easier to configure. This guide assumes a basic familiarity with the File Manager and its CHMOD command.
Locating and Downloading the PackageGallery 1 is available for download free at http://gallery.menalto.com/. You will find many useful articles and tutorials about Gallery at this site, and we encourage you to read through it for a more full understanding of the Gallery software package. At writing, the latest stable release of Gallery 1 is Gallery 1.5-pl1. This is the package that is documented for installation below. You have two options for downloading the Gallery software:
To upload with File Manager:
![]() To get the exact download URL from SourceForge, you need to click the tar.gz link on this page: http://sourceforge.net/project/showfiles.php?group_id=7130 Then, you'll need to select a mirror site. We selected the one from Arizona (AZ). Click the Download link. You'll get a message to Save the file, which is fine if you're going to FTP it to your site. (Some versions of Internet Explorer will give you a yellow security warning--ignore this warning.) We're going to click "Cancel" when asked to Save the file, and then copy and paste the exact download URL from the web page. You'll find the exact URL under the words: "Your download should begin shortly. If it does not, try:" In our example, the file was named: http://easynews.dl.sourceforge.net/sourceforge/gallery/gallery-1.5-pl1.tar.gz Paste the full download URL into the first http:// box in the Upload URL screen. ![]() Click "Confirm" to upload. Return to File Manager to verify that the tar.gz file is now in your web space in folder httpdocs. You may need to select "Items per page: 20" at the very bottom of the File Manager screen to see the file in the list. Decompressing the PackageOnce your tar.gz file is on the site (whether you FTP'ed it or Uploaded from URL), you'll need to create a .php file to decompress the file, and use CHMOD to change the .php file's permissions so that you are able to run the .php script from your web browser. Within the httpdocs folder in File Manager, click "New File." Call it decompress.php. Enter the following text in the file: <?php
exec("tar xzf gallery-1.5-pl1.tar.gz");
?>
You'll need to type the exact file name of your tar.gz file. It may vary depending on which version and revision you download. We copied and pasted our tar.gz filename from File Manager. Click "Save" and then click "Go Back." Next, you'll need to change the permissions of the file to 755 with CHMOD. Click the checkbox next to decompress.php in File Manager, and press the CHMOD button. Select User: R W X, Group R X, Other R X. (If you'd like a primer on CHMOD, click here and look for the section labeled CHMOD). Click "Confirm" once you have verified the permissions match as instructed. ![]() Now, you'll need to run the PHP script from your web browser by visiting: http://www.example.com/decompress.php ...replacing example.com with your Globat domain name. It may take up to three or four minutes to decompress: be patient. You will see a blank screen once the script has finished executing. Beginning the InstallationWithin File Manager, look for a new folder within httpdocs containing the Gallery software. Ours was called gallery. If you do not see this folder, please repeat the download and decompress steps above. If the folder has decompressed, delete decompress.php. You will now need to create two files in File Manager, and in addition, one folder to hold your uploaded photos. Within File Manager, enter httpdocs/gallery if you are not already in that folder. Click New File, and name the file .htaccess -- then, use CHMOD (as described above) to set it to mode 777 (User: R W X - Group: R W X - Other: R W X) You may need to set "Items per page: All" to view the file in the list. Leave the file blank. Click "Save" and then click "Go Back." Click New File, and name the file config.php -- then, use CHMOD (as described above) to set it to mode 777 (User: R W X - Group: R W X - Other: R W X) You may need to set "Items per page: All" to view the file in the list. Leave the file blank. Click "Save" and then click "Go Back." Now, create the folder to hold the photos you upload. Click New Folder within httpdocs/gallery and name the folder albums. Use CHMOD to set the albums folder to mode 711 (User: R W X - Group: X - Other: X) EXTRA STEPS NEEDED NOW: PLEASE DO THIS OR YOUR GALLERY WILL NOT WORK! You will need to edit one template file within Gallery that is incompatible with the Globat servers. Within File Manager, you will need to open folder httpdocs/gallery/setup (If you are already in httpdocs/gallery merely click the setup folder). If you set "Items per page: 30" you will see a file called mod_rewrite.template. Click the checkbox next to that file, then click Edit File. You will see a line with this text: Options -Indexes +FollowSymLinks Delete this line. Click "Save" and then click "Go Back." You will also see a file in httpdocs/gallery/setup called .htaccess. Open it, and you'll see this line: Options +FollowSymLinks Delete this line. Click "Save" and then click "Go Back." Now, enter the address to the folder in your web browser: http://www.example.com/gallery/ ...replacing example.com with your Globat domain name. ![]() Click the link labeled "Then start the Configuration Wizard." Basic ConfigurationYou will see a system check when you start Configuration. You should only see one red warning, for "register_globals," and it is safe to ignore this warning. You will also see several yellow warnings--do not be alarmed, this is normal. ![]() Click "Next Step." You will see several tabs with configuration information about Gallery. On the first tab, "General Settings", you will need to set these fields:
You also have the option of selecting a skin. When you have set these fields, and selected a skin (if desired) scroll to the bottom of the page and click "Next Tab." On the next tab, "Locations and URLs," you will need to make small modifications to the settings. ![]() In our example, the Album Directory defaulted to: /usr/local/psa/home/vhosts/globat-example.com/httpdocs/albums We created albums within the httpdocs/gallery folder, so we need to add gallery/ after httpdocs but before albums so the line reads: /usr/local/psa/home/vhosts/globat-example.com/httpdocs/gallery/albums ...adjust yours accordingly, by adding gallery/ as shown above. Set the Temporary Directory to /tmp. Gallery URL should have defaulted to the proper location, in our case: http://www.globat-example.com/gallery Albums URL, however, is incorrect, it needs gallery/ to be added before the word albums. It currently reads: http://www.globat-example.com/albums ...so it will be adjusted to: http://www.globat-example.com/gallery/albums ...adjust yours accordingly. The Thumbnail image setting should be fine at the default setting. Feel free to explore the other tabs. When you have finished, click "Next Step." You can explore the tabs in the Step 3 configuration if you wish, but no changes are required. Click "Next Step." In Step 4, click "Save Config." ![]() Finishing upNow, before you Enter the Gallery, return to File Manager, and use CHMOD to set .htaccess and config.php inside httpdocs/gallery to mode 644 (User: R W - Group: R - Other: R). After CHMODing the files, return to the Gallery screen, or visit this URL again: http://www.example.com/gallery/ ...replacing example.com with your Globat domain name. Click "Login" in the corner, enter admin and the admin password you set, and you can start creating albums and uploading pictures! |














