Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

Thumbnail Server

fulldecent edited this page Aug 4, 2012 · 1 revision

Offload thumbnailing tasks

You can set up an additional server to handle your thumbnailing. Your main webserver will be free to server out your site. [edit]Prerequesites

Both servers have access to the same database and filesystem. Both servers can access the photos using the same name (this is negotiable) [edit]Process

Install CameraLife on your webserver and configure it Copy your source code directory to the thumbnailing server Edit your files so the thumbnailing server can access the database

[edit]Negotiation

If your two server need to access the filesystem using a different name, you'll need a little hack. Do this hack on your thumbnail server: Open modules/photostore/local/module.inc (or the photostore you are using) Edit the lines near: $this->PhotoDir = rtrim(realpath($this->GetPref('photo_dir')), '/'); Hard code in the FULL PATH for PhotoDir, CacheDir and DeletedDir Visit http://camera.phor.net/admin/thumbnails.php on your thumbnail server [edit]Additional Information

If you want MULTPILE thumbnail servers, you can do that, just ask me. If you want the thumbnail server to run continuously: Edit admin/thumbnails.php Delete the line $cameralife->Security->authorize('admin_file', 1); Set up a cron job

Clone this wiki locally