At least PHP 5.4 is required to install laravel 4.
Uninstall old php versions php 5.3 <=
- yum remove php*
Install php 5.4:
- rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
- yum install php54w
Install php mcrypt extension:
- yum install php54w-mcrypt
Install PHP Data Objects (PDO) extension :
- yum install php54w-pdo
Install composer (Composer is a dependency manager for PHP.Something like Maven in Java.):
- cd /usr/local/bin/
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar composer
- composer self-update
Run the following command to create your first laravel helloworld project:
- composer create-project laravel/laravel hello-laravel-4 --prefer-dist
This command will download and install a fresh copy of Laravel in a new
hello-laravel-4
folder within your current directory.Next run the composer install command in the root of your manually created project directory.
- cd hello-laravel-4
- composer install
Now give execute access to PROJECT_ROOT/app/ dir:
- chmod -R 777 app/
Now run the following command to run your first helloworld app:
- php artisan serve
Now browse to http://localhost:8000/ to see the output.You should see a screen saying
"You have arrived." :)
No comments:
Post a Comment