In our family, most of our relatives live far away. Consequently, the only way that they can get to our digital picture collection is over the Internet. We could upload our pictures to flickr, picasa or some other digital photo hosting service. However with many family thousands of family photos in our digital collection and only a handful of people would really be interested in, I chose to go another route. I chose to use the Linux Photo Archive (LinPHA) to host my own picture archive.
With LinPHA you put all your pictures under the
For me, LinPHA is a great solution because I wanted flexibility and virtually unlimited storage. I also wanted to avoid duplicating storage. So instead of copying all the files to a separate directory for LinPHA, I instead used the beauty of the read-only loopback mount option of The Zone Manager to read-only mount my Pictures directory from my backup zone into the
Lets say that from the global zone perspective, the backup data of my backup zone is stored in /zones/mybackup/root/backup. Further, lets say that my picture archive are stored in /zones/mybackup/root/backup/Pictures. The following invocation of The Zone Manager creates a LinPHA zone, configures the networking, installs all the requisite software, read-only mounts my Pictures directory into the LinPHA zone, and installs the LinPHA software via the linpha.sh script.
# zonemgr -a add -n LinPHA -z /zones -P pw -s lock \Now that the LinPHA zone is up and running, I can finish the setup of my LinPHA photo archive by entering http://192.168.0.10/install/install.php . Below is what you see on the initial install screen. Here you select your preferred language and click on "Continue"
-I "192.168.0.10|bfe0|24|linpha" -C /linpha.sh -X /linpha.sh \
-G apache2 -G mysql5 -G ap2_modphp5 -G php5_mysql -G php5_gd \
-G imagemagick -G pm_libxmlperl -G pm_xmlparser \
-r "/zones/mybackup/root/backup/Pictures|/opt/csw/apache2/share/htdocs/albums/Pictures" \
-C /etc/resolv.conf -C /etc/nsswitch.conf
Next if all of the requisite checking completed successfully, you can just click on "Continue".
On this screen, you select your preferred database. I chose MySQL.
On this page you fill in the database authentication, set up a LinPHA administrative user, and select a few preferences. After making your selections, scroll down to the bottom of the page and click on the "Continue" button which in this picture got cut off the page.
That concludes the basic setup for LinPHA. There are lots of features and plugins that you should explore by logging in as the administrative user specified on the previous page. Clicking on the "Continue" button takes you to the home page of your new LinPHA photo archive.
Here is the main page.
To make things fun, I clicked on the "Pictures" folder to show you the contents of this sample site. Here you see the folder browse view.
Clicking on the myfam.jpg thumbnail picture, you see the larger view.
That is about it for the basic setup. You can get a copy of the script here: /linpha.sh script.
I hope you enjoy setting up your own personal Linux Photo Archive with Solaris Zones via The Zone Manager.