Install Gallery, a free iTools gallery replacement
Oct 31, '02 09:50:18AM
Contributed by: bluehz
Gallery is a fantastic PHP-based software package that allows you to create your own online gallery, much like the iTools galleries (only better in my opinon). Gallery has a very active community with ongoing development. Rather than talk about it, visit their web site and make sure you take a look at what people are doing with Gallery software.
While this Gallery doesn't quite integrate with iPhoto in the same way as iTools does - its only a matter of time before someone figures it out. In the mean time you can export out of iPhoto and batch add to your online gallery.
Here's a brief tutorial on installing Gallery on OS X...
Install Gallery 1.3.1
- Create a directory for the downloads:
% mkdir ~/InstallGallery
% cd ~/InstallGallery
Download the following files into that directory and expand them:
Gallery 1.3.1
NetPBM OS X
EXIF extractor
- Using the Terminal, check to make sure the pre-built binary files (jhead and NetBPM) are executable:
%chmod jhead 755
% cd netpbm
% chmod 755 *
- Move the jhead and Netpbm into /usr/local/sbin:
% cd ~/InstallGallery
% mv jhead netpbm/* /usr/local/bin
- Move the Gallery directory to your webserver directory (either ~/Sites or /Libarary/Webserver/Documents.
- Using the Terminal, execute the gallery configuration script (assuming location at /Library/Webserver/Documents):
% cd /Library/WebServer/Documents/gallery
% sh configure.sh
- Use your web browser, to go to the Gallery site on your machine to complete the installation: http://localhost/gallery. You should see a page that says "Start the configuration wizard". Click that link to begin the installation.
Gallery Setup Step 1
--------------------
A new page will appear "Gallery Setup: Step 1". This is a very nice page that checks all the required components (PHP, jhead, NtePBM, etc.) to make sure everything is installed properly. If everything looks good (no serious errors), then click the "Configure Gallery" at the bottom of the page to continue.
Gallery Setup Step 2
--------------------
A new page will appear "Gallery SetupL: Step 2". Most info will be filled in with all the proper values so there is not much to bother with here. One thing to consider is their recommendation to create a new directory called "Albums" in your webserver directory. The "Albums" folder is pretty much the main directory where all your pictures will go. According to their install, you would then have your gallery install spread across two directories in your webserver directory. I prefer to locate the "Albums" directory within the actual Gallery directory. Its up to you how you want to do it. Either way, create a directory "Albums" at /Library -> WebServer -> Documents or /Library -> WebServer -> Documents -> Gallery and change the preference on the Step 2 page (the one you are currently looking at) to indicate the proper path: % mkdir /Library/WebServer/Documents/gallery/albums
% chown www:www /Library/WebServer/Documents/gallery/albums
Fill in the admin password of your choice at the top. Fill in the Temprary Directory field on this page with "/tmp". Double-check the "Gallery URL" and "Album URL" fields. The rest of the options on this page can be left at their defaults. Click the "Album Defaults" button at the bottom of the page to continue.
Congratulations Page
--------------------
You should now see a "Congratulations" page. DO NOT CLICK THE "ENTER THE GALLERY" LINK AT THE BOTTOM OF THE PAGE YET!. In the terminal, type: % cd /Library/WebServer/Documents/gallery
% sh secure.sh
NOW you are ready to go to your gallery. Click the link that says "Enter Gallery" at the bottom of the page. You will be taken to a blank gallery page.
Click the "Login" link in the upper right corner and login with the username "admin" and the password you chose earlier.
Add galleries, upload photos, change preferences as desired.
Notes- The software makes extensive use of javascript and popup windows. A lot of people have disabled popup javascript windows for obvious reasons either via proxy setting (privoxy, etc), so you may need to tweak and disable some of those feature to access features within Gallery. If you click on the "Login" and you don't get a popup window that has a field for username and password then this is your problem.
- There is an optional install called GalleryRemote that allows you to upload files and other tasks. It is written in Java and very beta at this point. I DO NOT RECOMMEND THIS INSTALL! I tried installing it and it locked my machine up twice - one during install and once when trying to use it. After the 2nd reboot I was unable to login to my user acct with my standard password. Not sure what the problem was but it was solved on a reboot again. BEWARE if you do try to use it.
- Gallery integrates nicely with several CMS (Content Management Systems) like Geeklog, PHPNuke, and my personal favorite PHPWebsite.
- Gallery can also be used to create your own online e-greeting site using software like Sendcard.
[Editor's note: If you haven't seen Gallery yet, it's definitely worth a visit! It has a great set of features and an easy to understand interface.]
Comments (21)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20021031065018309