| Previous Overview |
Top | Next Collecting and Managing Photos |
Update: Since it makes sense to dedicate a computer—real or virtual—for this purpose, I've developed an installer to make this as easy as possible. Have a look at my Easy Foto Box project. No system administration skills required! So feel free to skip this page.

If you're upgrading from a previous version, you'll need to add some tables and records to your database to support the new features. The easiest way (after dumping and backing up your database!) is to run this script:
sh scripts/local/updateschema.sh foto
This will enable new tools and create new tables to support them. If this has already been done, running the script will do no harm, but it may generate some error messages complaining that relations and indices already exist; you can ignore these messages.
If you prefer, you can simply examine the script and carry out the steps manually.
As the system administrator, root:
www-data" or "apache"./etc/postgresql/.../pg_hba.conf (in my case, it's /etc/postgresql/7.4/main/pg_hba.conf) with these lines:
# Allow anything over localhost |
|||||
local |
all |
all |
trust |
||
host |
all |
all |
127.0.0.1 |
255.0.0.0 |
trust |
host |
all |
all |
0.0.0.0 |
0.0.0.0 |
reject |
originals, webpics, and albums under the Photo Album Manager's service root. They should be owned by the web server user (and the group of the same name) with permissions 2755 (rwxr-sr-x), for example:
drwxr-sr-x 2 www-data www-data 4096 Nov 24 20:07 albums/
As a non-root user:
scripts/local/ldef_common.sh to define your system:
| WebServerUser | Userid under which web server runs (typically "www-data" or "apache") |
| WebServerDocumentRoot | Same as in /etc/apache-ssl/httpd.conf |
| ServiceRoot | Root for production service, relative to document root (default "/foto/" but if it's the only service running on the web server, you might make it "/") |
| DumpDir | Where you want database dumps to go (default /home/dumps) |
| OriginalPhotos | Folder from which to fetch originals (default /home/public/photos) where they're originally uploaded from the camera memory |
web/local/ldef_env.php:
| $ServiceRoot | same as ServiceRoot in scripts/local/ldef_common.sh above |
| DefaultDbUser | same as WebServerUser in scripts/local/ldef_common.sh above |
| Colors | ...if my defaults aren't to your taste |
| Photo Album Manager-specific settings at the end of the file |
as explained in the comments. Don't change OriginalPhotos, since it's a symlink that the setup script will create automatically.
Tip: Leave the original settings until you are sufficiently familiar with the Photo Album Manager. |
The -h option displays a help screen and checks whether basic system requirements have been met. Once it looks ok:
This will check preconditions, create a production database, and set up the PHP code in the service root.
Using a web browser:
https://hostname/serviceroot/admin, password "I'm the BOFH" and change the password when prompted.edit" and "walbum" for regular users, reserving the admin privileges for the admin account to avoid cluttering up everyone's menu.| Previous Overview |
Top | Next Collecting and Managing Photos |