...
Starting from a fresh Ubunutu 12.04 installation
...
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-cache policy php5
sudo apt-get install php5
You can check the installed versions of apache and php using apache2 -v and php -v commandsInstalling
...
sudo apt-get install unzip
sudo apt-get install curl
sudo apt-get install openssl
sudo apt-get install php5-mcrypt
sudo apt-get install php-soap
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
...
sudo a2enmod rewrite
sudo service apache2 restart
Open the default vhost config file:
...