# ------- Phase 1: Basic steps
# Installing php, mysql servers
# Installing IDE : netbeans, mysql workbench
# Installing composer
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
# Installing Laravel
# Create a Laravel PHP-based project (namely for example 'quickstart')
composer global require "laravel/installer=~1.1"
laravel new quickstart
# Installing php5 mcrypt
sudo updatedb
locate mcrypt.ini
sudo php5enmod mcrypt
sudo service apache2 restart
# Link here
# Deploying the project
cd quickstart # change directory to quickstart (project folder) where the input file 'artisan' is located
php artisan serve --port=8080
# ------- Phase 2: Advanced steps
# configure .env (a hidden file located at the project root folder)
# We need a database. Set one up for yourself in a DB of your choice then copy.env.example to .env and update accordingly:
DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
Finally if you’re not using MySQL open /config/database.php and change the default line:
Remember to add your environment files to your .gitignore by adding a .env line if it is not there!
1
'default' => 'mysql',