Knowledge Base
MilesWeb / How-Tos

What is Laravel And How To Install It?

Approx. read time : 2 min

What is Laravel ?

Laravel is a free, open source PHP web application framework, designed for the development of web applications. Laravel was listed as the most popular PHP framework according to a December 2013 developers survey on PHP frameworks popularity.

Laravel can be installed with our Linux VPS plans. With the below steps you can install Laravel on cPanel installed Linux servers.

If you wish to manage Laravel and access it, make sure shell access is enabled on your cPanel account.

[root@US01 ~]# cd /bin
[root@US01 ~]# wget

Once the installer is downloaded, make sure if the server is setup properly and compatible for Laravel installation.

[root@US01 ~]# php installer –check

If the server is compatible, it will show an output All settings correct for using Composer. Else, it will show the errors that needs to be fixed.

Now, that the server is compatible to install Laravel let’s proceed with installing it.

[root@US01 ~]# php installer

Once the installation completes, make sure to remove the installer file.

If you wish to install it for any specific domain, access the root directory for the cPanel account and execute the command below.

[root@US01 ~]# php /bin/composer.phar create-project laravel/laravel –prefer-dist

It will now download & install Laravel for you. Rename your existing public_html directory and create a symlink. Update the ownership of the laravel directory.

[root@US01 ~]# mv public_html public_html_backup
[root@US01 ~]# chown cPanel-user.cPanel-user laravel/public -R
[root@US01 ~]# ln -s laravel/public/ public_html

You can browse the website and see if it shows output as Laravel 5. If it does, the Laravel installation has been successful.

With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.
Need help? We’re always here for you.
Register Your Free Domain Name