sudo apt-get install apache2 php5 php5-apcu php5-json
sudo a2enmod rewrite
sudo service apache2 reload
In your /etc/apache2/sites-available/[site-name].conf
add the following for mod_rewrite to work:
<Directory /var/www/[site-name]/public/>
AllowOverride FileInfo
</Directory>
Reference: http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
sudo apt-get install php5-dev php5-mysql gcc git make
sudo apt-get install libpcre3-dev # Required as of Phalcon 1.3
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
echo extension=phalcon.so | sudo tee /etc/php5/mods-available/phalcon.ini
sudo php5enmod phalcon
sudo service apache2 reload
Reference: http://forum.phalconphp.com/discussion/881/compilation-failure-v1-3-0
sudo apt-get install php-pear
sudo pecl install SPL_Types
echo extension=spl_types.so | sudo tee /etc/php5/mods-available/spl_types.ini
sudo php5enmod spl_types
sudo service apache2 reload
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
The standard apt-get install php5-mcrypt
install is glitched, here's the fix:
sudo apt-get install php5-mcrypt
sudo mv /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
sudo php5enmod mcrypt
sudo service apache2 reload
Reference: http://stackoverflow.com/questions/4809611/problem-with-mcrypt-installation/20208943#20208943