Step 1:
Requirements of Laravel framework installation in Linux
i) xampp or wampp
ii) Composer
iii) mcrypt
Step 2:
First you have to complete the xampp installation and then start the server using following command
sudo /opt/lampp/lampp restart
Step 3:
Install the required softwares for laravel framework
sudo apt-get install curl php5-cli git
sudo apt-get install openssl
Step 4:
Install the composer using getcomposer.org
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Step 5:
Now you need to get important dependencies of laravel - mcrypt
sudo apt-get install php5-mcrypt php5-json
And now run,
sudo php5enmod mcrypt
To make sure it is running,
php -i | grep mcrypt
Step 6:
Let us now move to directory of public_html
cd /opt/lampp/htdocs
And then make directory like a laravel-projects
mkdir laravel-projects
Now you have to execute the command for new projects
sudo composer create-project laravel/laravel --prefer-dist
It’s gonna take its time. Just wait for it to finish. Once it is done, execute
sudo chmod -R 775 laravel
Step 7:
Now move to the directory into laravel, then execute artisan-serve
sudo php artisan serve
Finally visit the http://localhost:8000
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Step 5:
Now you need to get important dependencies of laravel - mcrypt
sudo apt-get install php5-mcrypt php5-json
And now run,
sudo php5enmod mcrypt
To make sure it is running,
php -i | grep mcrypt
Step 6:
Let us now move to directory of public_html
cd /opt/lampp/htdocs
And then make directory like a laravel-projects
mkdir laravel-projects
Now you have to execute the command for new projects
sudo composer create-project laravel/laravel --prefer-dist
It’s gonna take its time. Just wait for it to finish. Once it is done, execute
sudo chmod -R 775 laravel
Step 7:
Now move to the directory into laravel, then execute artisan-serve
sudo php artisan serve
Finally visit the http://localhost:8000
No comments:
Post a Comment