Advance

How to Setup Laravel on Plesk

How to Setup Laravel on Plesk
0
(0)

PHP programming language is one of the best and most popular programming languages in the field of web design. This programming language has many frameworks, and Laravel is one of them. This article will teach you How to setup Laravel on Plesk. If you intend to buy a VPS server, you can check out the packages offered on the Eldernode website.

Tutorial Install Laravel on Plesk

Recommended Article: How to Install CloudLinux On Plesk

What is Laravel?

Laravel is a free and open-source PHP framework designed to make developing web apps easier and faster through built-in features. It simplifies routine tasks including authentication and routing, as well as sessions and caching that are integral to the majority of web development projects. This framework is created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern and based on Symfony.

Installing Laravel on Plesk

Firstly, you should create a new domain. To do this, open your Plesk control panel and click Add Domain. You will see the following drop-down menu. Choose Laravel Site to proceed to create a new domain:

 

Add-new-domain-on-Plesk

 

Now choose your domain name. If you don’t have a domain name for your website yet, you can use a Temporary domain name:

 

Choose-domainname-on-Plesk

 

After clicking on the temporary domain name, you will get the domain name.

Then click Add domain to simply create the website.

You will see the dashboard. Click on Install Laravel Application:

 

Install-Laravel-application-on-Plesk

 

Now you will be prompted to choose between installing a default skeleton Laravel application or pulling the application from a remote repository. We choose Installing the skeleton because it is the best way to get acquainted with the Laravel Toolkit’s capabilities for the time being:

 

Choose-install-Laravel-skeleton

 

Wait a few seconds for it to be ready.

After completion, your first Laravel application will be published on the World Wide Web as follows:

 

Laravel-application-default-page

 

Configuring Laravel on Plesk

If you give a mouse a Laravel application, it will request a database. So you need to add the database for the application. To do this, you should first click on Manage Domain in the Laravel Information dashboard:

 

Laravel-information-dashboard

 

Now navigate to the Databases > Add Database path:

 

Add-database-for-Application

 

The configuration file of the Laravel application must be updated with the necessary information to connect to the newly generated database after the database is created.

To do this, go to the Hosting dashboard and click on Manage Laravel Application.

Now you will see the Laravel card. Click on the .env file and open it:

 

Open-env-file

 

Once opened, you should add the database credentials.

Lastly, construct a database by running the following command:

artisan migrate

Also, you can launch the artisan tool directly from the Plesk user interface. To do this, switch to the Artisan tab and choose the migrate command from the preloaded list of commands:

 

Construct-database-with-artisan-migrate - setup Laravel on Plesk

 

That’s it!

Recommended Article: How to Password Protect Sites in Plesk

Conclusion

Laravel is a web application framework with expressive and elegant syntax. In this article, we introduced you to Laravel and taught you how to setup Laravel on Plesk. I hope this tutorial was useful for you and helps you to install Laravel on Plesk. If you have any questions or problems during the installation process, you can contact us in the Comments section.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

View More Posts
Marilyn Bisson
Content Writer
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day