Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# download openphoto
git clone https://github.com/photo/frontend.git openphoto
cd openphoto
# create the userdata folder
mkdir -p src/userdata
# make the assets folder writable by the apache user
setfacl -R -m u:apache:rwx src/html/assets
# create a temporary directory to install the PECL extensions
mkdir ~/pecl_install
cd ~/pecl_install
# create the actual pecl installation folder and the companion php.ini
makedir -p ~/openphoto/pecl/
echo "extension_dir = $HOME/openphoto/pecl/" >> ~/openphoto/src/html/php.ini
# install OAuth
wget http://pecl.php.net/get/oauth-1.2.3.tgz
tar -xzf oauth-1.2.3.tar.gz
cd oauth-1.2.3
/usr/local/bin/phpize54
./configure --with-php-config=/usr/local/bin/php54-config
make
cp modules/oauth.so ~/openphoto/pecl/
echo "extension = oauth.so" >> ~/openphoto/src/html/php.ini
# install imagemagick
cd ~/pecl_install
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar -xzf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
/usr/local/bin/phpize54
./configure --with-php-config=/usr/local/bin/php54-config
make
cp modules/imagick.so ~/openphoto/pecl/
echo "extension = imagick.so" >> ~/openphoto/src/html/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment