This tut is for Laravel 4 Toddlers like me who uses Ubuntu and Xampp. I am not sure to if will work with other OS.
Here we go:
1. If you are just starting with XAMPP installation, here is a nice tutorial.
2. Install PHP cli by running command below on the terminal window. This is to run php commands in terminal.
sudo apt-get install php5-cli
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Here is the exciting part...
4. I simply just followed the "Via Download" on the Installation Page of Laravel with a bit of differences in some of the commands.
a. Download a copy of the latest stable copy of Laravel 4. Here is also another link for that if you do not want to download from laravel site directly.
b. Link xampp php to php cli. Follow instructions below. This is to make sure you are using PHP of Xampp when running php cli commands on your terminal
- Run below command on your terminal.
gedit ~/.bashrc
- the file opens and you add the following to the end of file and save:
export PATH=/opt/lampp/bin:$PATH
d. Open terminal, and go to the location of the root folder of the laravel folder.
Example command in Terminal: cd /opt/lampp/htdocs/laravel/
e. Once you are in the root folder of your laravel 4 project, run commands below:
/opt/lampp/bin/php /usr/local/bin/composer.phar install
Let it finish, it might take several minutes.
If you did not encounter any issue then,
/opt/lampp/bin/php /usr/local/bin/composer.phar update
5. Open your browser, and enter the text below to address bar:
http://localhost/<project name>/public/
e.g. http://localhost/laravel/public/
6. Once you see, the laravel splash screen below then you are good to go.
If you encounter any issue, any violent reactions. clarifications, issues you encounter or suggestions to improve this tutorial feel free to post your comments so that we can discuss for the betterment of this tut.
If you are happy, donations are most welcome! Just simply click on the on the Donate button on the right. :)