Installazione Laravel

Installazione Composer:

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Installazione Laravel:

composer global require "laravel/installer=~1.1"
sudo ln -s /home/tua_home/.composer/vendor/bin/laravel /usr/local/bin/laravel

Creazione di un nuovo progetto Laravel:

laravel new nome_progetto

Esempio di virtual host per apache:

<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	ServerName helloworld.laravel
 
	DocumentRoot "/home/david/laravel/helloworld/public"
	<Directory "/home/david/laravel/helloworld/public">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride all
		Require all granted
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>

Abilitare modulo php mcrypt

sudo apt-get install php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart