Laravel Installation Using Composer on a Plesk Server

Stefan
In Hosting Guides

Laravel Installation Using Composer on a Plesk Server

Stefan Posted by

Nublue hosting features the dependency management comand line tool ‘Composer’ as standard. When it comes to installing Laravel it makes sense to install from the command line as that’s also where a good deal of the development features of the system are also used. It also means you’re guaranteed to get the latest version. This guide shows how to install Laravel using Composer on our VPS and Dedicated server platforms in ‘the most’ secure and efficient way.

To start enable create your domain name in your Plesk hosting panel. Then go into the domain’s dashboard and go to Web Hosting Access then in the dropdown for Access to the server over SSH select /bin/bash then click the OK button

Enable /bin/bash for the domain in Plesk Onyx

Next enable php 7.1 FPM

Enable PHP 7 in Plesk Onyx

Find out what your ip is by going to http://www.whatismyip.com and make sure it is allowed through your servers firewall by adding it to the list of exempt ips.

SSH in to your webspace as the ftp user using putty in windows or your terminal if using Mac or Linux

Clear out the httpdocs directory

Now run the following command to install the base laravel system in your httpdocs folder

Lastly set the web root for the webspace to /httpdocs/public. This makes the core system none web acessible significantly improving security of your site. To do this in Plesk go to Hosting Settings in your domains dashboard.

Change Laravel web root in Plesk Onyx

That should be it in terms of initial Laravel setup. In terms of next steps, unless you’re already familiar with Laravel, Laracasts Laravel 5.4 From Scratch free course is an excellent way to get a grounding in the fundamentals of building sites with the system. Have fun!

Nublue make award winning bespoke projects with Laravel. Find our more here

Stefan

Author Stefan

More posts by Stefan

Talk with one of our hosting experts today


Or call 0800 033 7074