Globat.com - Web Hosting Made Easy
Log In to your web hosting Account Log In Web Hosting CEO Blog for Globat.com - Find out what the CEO of a top hosting company is up to, and get a close perspective on his business and the Globat culture. CEO's Blog Chat live with a customer service or technical support technician to help you with all your web hosting issues. Live Chat Customer Service support, Sales, and technical service from web hosting company Globat.com

         
 
Support FAQs, Tutorials and Contact Info

Gallery v1.0

From Support Center

Gallery 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.

Table of contents

Locating and Downloading the Package

Gallery 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:

  1. Download the software your computer with FTP, and then upload it to the httpdocs folder of your web space.
  2. Use Upload from URL within GCC's File Manager -- this method is much faster, and is described below.

To upload with File Manager:

  1. Log in to the GCC (https://login.globat.com/)
  2. Click the Site Content Button. Then, click the "File Manager" link.
  3. You will see a listing of the folders and files on your web site. Click the link for httpdocs.
  4. You will see a button called Upload. Click it.
  5. You will see radio buttons at the top of the screen, one for "From URL." Click that link, and then press the Upload button to the immediate left of the radio buttons. You should now see blank listings for http://
Screenshot of From URL (blank)

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.

Screenshot of From URL (filled in)

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 Package

Once 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.

Example of CHMOD 755

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 Installation

Within 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.

Start Configuration Screenshot

Click the link labeled "Then start the Configuration Wizard."

Basic Configuration

You 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.

Next Step Screenshot

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:

  • Gallery Title
  • Admin Password

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.

Locations and URLs Screenshot

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."

Configuration Saved Screenshot

Finishing up

Now, 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!

Globat.com web hosting made easy. Easy to create a photo gallery, easy to store mp3s, easy set-up!
Web 2.0, Ajax, web hosting, technology, and great service! Web Hosting   |   Affiliates   |   Web Hosting Products   |   FAQs   |   Defying Gravity   |   Contact   |   Site Map  
Customer Satisfaction

© 2001-2007 Globat, LLC. All rights reserved. Usage of this site constitutes acceptance of our
Privacy Policy, Terms & Conditions.

BBB Online Reliability Program