This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing OpenPhoto on Ubuntu and Apache | |
# Run this from the command line as root. | |
# As always, view any script before running it ;). | |
curl https://raw.github.com/openphoto/frontend/master/documentation/guides/InstallationUbuntuApache.sh | /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source secrets.sh | |
for i in $(ls /path/to/directory/*.JPG) ; do | |
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST; | |
done |