How to set up zenphoto
From OCF Help
Contents |
What is zenphoto?
- Zenphoto is a "simpler" web-based photo organizer, according to the Official zenphoto website.
- Zenphoto can be used as a simple, beautiful, and easy-to-use way to display your photos on the web.
- Zenphoto was actually designed by a UC Berkeley student and OCF member (tharward) while still in college.
Setting up zenphoto on Your OCF Website
The following procedure will set up zenphoto 1.0.2b for you at the above address:
- First, SSH into your OCF account.
- Run the command
~tdhock/scripts/makezenphoto
- You will be guided through some questions by the script. Answer each of them by typing a response and then pressing return. It will look something like this:
conquest [1] ~tdhock/scripts/makezenphoto Pick a web address for your zenphoto ... It will be of the form www.ocf.berkeley.edu/~username/zenphoto_address Pick something like "zp" or "pics" or "zen" zp Please give your new zenphoto gallery a title ... pick something like "My College Photos" Hot Times at the OCF! Please enter your mysql password, to be saved securely in config.php ... &jRsT3KE You will log into your zenphoto gallery with the username admin and a new password that you need to enter now ... Make sure this new password is NOT the same as your mysql password! some_other_passwd_you_just_thought_of Zenphoto is now configured on your OCF webspace. Before you start using it, you have to login to the setup page: http://www.ocf.berkeley.edu/~username/zp/zen/setup.php Remember, use Login admin and Password some_other_passwd_you_just_thought_of
Customizing zenphoto For Your OCF Website
Adding Photos and Albums
There are 2 ways:
- Via the web.
- Point your web browser to your zenphoto website.
- Click the "admin" link at the bottom of the page to login.
- Click "upload" to get to the file upload page.
- Via SFTP. For each album,
- Construct a folder full of images.
- Connect to ocf.berkeley.edu via SFTP.
- Upload the entire folder to the ~/public_html/zp/albums directory.
How do I change the zenphoto web address to something else?
Assume that your zenphoto web address is "zp" as in the example above.
- Change the zenphoto directory name.
- cd ~/public_html to change to your web directory.
- mv zp some_other_name to change the web address of your zenphoto to ~username/some_other_name.
- For some reason zenphoto .htaccess also needs to be edited.
- Open up ~/public_html/some_other_name/.htaccess in your favorite text editor.
- Change the line which includes the word RewriteBase to
RewriteBase /~username/some_other_name
