Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laravel – Installation ( VPS HRPanel )
#1
Prerequisites:
Need to install PHP Multiple Version.
Set the PHP version as 5.6 on the particular User
Step 1:
Go to the needed folder which folder you want to install laravel
Step 2:
Run the below command for install the composer

curl -sS https://getcomposer.org/installer | /usr/local/php56/bin/php


Step 3:
Download the laravel File and upload a larevel file via FTP. Could you please download the laravel version 4.2.11
https://github.com/laravel/laravel/archive/v4.2.11.zip
Step 4:
We will need to change php into /usr/local/php56/bin/php in composer.json file. Like below
{
“name”: “laravel/laravel”,
“description”: “The Laravel Framework.”,
“keywords”: ["framework", "laravel"],
“license”: “MIT”,
“type”: “project”,
“require”: {
“laravel/framework”: “4.2.*”
},
“autoload”: {
“classmap”: [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
“scripts”: {
“post-install-cmd”: [
"/usr/local/php56/bin/php artisan clear-compiled",
"/usr/local/php56/bin/php artisan optimize"
],
“post-update-cmd”: [
"/usr/local/php56/bin/php artisan clear-compiled",
"/usr/local/php56/bin/php artisan optimize"
],
“post-create-project-cmd”: [
"/usr/local/php56/bin/php artisan key:generate"
]
},
“config”: {
“preferred-install”: “dist”
},
“minimum-stability”: “stable”
}

Step 5:
Run the below command for install the laravel with dependencies
Quote:/usr/local/php56/bin/php composer.phar install
Reply



Forum Jump:


Users browsing this thread: 1 Guest(s)