Gallery
which is a project on SourceForge.net is an excellent choice for online photo
galleries. First you need to create an ibay in which Gallery should be installed. This can
be done by use of the server-manager. The default ibay
is "gallery", but any ibay can be used.
This new updated script allows you to install Gallery in multiple ibays
specified on the command line. If you do not specify anything, the script
assumes the default ibay which is "gallery".
Information bay name | gallery |
Description | Networked Picture Gallery |
Group | Admin |
User access | Write=group, Read=everyone |
Public access | As you like it |
Execution of dynamic content | enabled |
Now
you're ready to install Gallery itself. Download and run the script from
my web site.
[root@e-smith
]# wget http://sme.swerts-knudsen.dk/downloads/Gallery/gallery_install.sh
Add the ibay as parameter to this command line (this example "gallery")
[root@e-smith
]# sh gallery_install.sh gallery
There are numerous places (marked with red) where
you have to remember to change the ibay name according to your install ibay.
[root@e-smith
]# chmod -R 777 /home/e-smith/files/ibays/gallery/html/albums
[root@e-smith
]# chmod -R 777 /home/e-smith/files/ibays/gallery/html/temp
Now
you're just about ready to install and configure Gallery.
Now
point your favorite web browser to
http://yourhost.yourdomain/gallery/setup.
Go ahead and click the "Configure Gallery"
button at the bottom of this page.
On
the next page, there are a few items you'll need to enter. First is the
admin password; you may set this to anything you like. Other things that
need setting:
PNM to JPEG converter | ppmtojpeg |
Album directory: | /home/e-smith/files/ibays/gallery/html/albums |
Albums URL: | http://yourhost.yourdomain/gallery/albums |
Temporary directory: | /home/e-smith/files/ibays/gallery/html/temp |
The
rest of the defaults should be fine. Click on the "Album Defaults
" button to proceed to the next screen when you can either configure or
press “Save Settings”. At
this screen, if there are any errors, they will appear in red text. If
there's no red, scroll down to the bottom of the page and click on "Save
Config". At this point, your configuration is complete. Return
to the console (or telnet/ssh app) and do
[root@e-smith
html]# sh secure.sh
You're
done! Point your browser to http://yourhost.yourdomain/gallery, log in as
"admin" with the admin password you chose previously, and create some
galleries. Upload some pictures. Enjoy!
ไม่มีความคิดเห็น:
แสดงความคิดเห็น