Created
October 25, 2013 16:01
-
-
Save rotespferd/7157063 to your computer and use it in GitHub Desktop.
Installs the PHP framework Phalcon on Ubuntu.
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 | |
# install script for PHP framework Phalcon | |
# for more info see http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris-mac | |
echo "-------------------" | |
echo "Install Phalcon PHP" | |
echo "-------------------" | |
# installation prerequirements | |
echo "Install required packages" | |
sudo apt-get install git-core gcc autoconf | |
sudo apt-get install php5-dev php5-mysql | |
# clone git repository | |
echo "Clone git repository" | |
mkdir ~/.tmp | |
cd ~/.tmp | |
git clone git://github.com/phalcon/cphalcon.git | |
cd cphalcon/build | |
# install phalcon | |
echo "Build Phalcon" | |
sudo ./install | |
# add phalcon to php.ini | |
echo "Add extension to php.ini" | |
echo "extension=phalcon.so" >> /etc/php5/fpm/php.ini | |
# restart server and php-fpm | |
echo "Restart server and php-fpm" | |
/etc/init.d/nginx restart | |
/etc/init.d/php5-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment