Skip to content

Instantly share code, notes, and snippets.

photo /
Created Nov 14, 2011
Command line installation of OpenPhoto in under 5 minutes
# Installing OpenPhoto on Ubuntu and Apache
# Run this from the command line as root.
# As always, view any script before running it ;).
curl | /bin/bash
photo /
Created Oct 18, 2011
Upgrading OpenPhoto to version 1.2 (AWS EC2 AMI)
# if you don't have php-apc, install it
sudo apt-get install php-apc
# if you don't have the oauth library installed, install it
sudo pecl install oauth
# restart apache
sudo /etc/init.d/apache/restart
# change to the openphoto directory
photo /
Created Oct 9, 2011
Upload all photos from a directory using command line (openphoto-php -
for i in $(ls /path/to/directory/*.JPG) ; do
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST;
You can’t perform that action at this time.