In this article, we will learn how to install Laravel, the popular PHP framework. In order for Laravel to work correctly, you must make sure your server or cPanel account is configured for PHP version 8.1.
How to Install Laravel with Softaculous
There are many different ways to install Laravel. Installation methods will vary based on your needs and experience level. We’ve chosen to represent the Softaculous installation here because it is straightforward to accomplish, only requires a few clicks, and is available to hosting packages at all levels.
- Log into cPanel
Under Software choose Softaculous Apps Installer
Under Frameworks select Laravel
Click Install Now
Make sure to deselect the default directory selection “laravel” by erasing it if you want to install Laravel on your primary domain
Click Install
Now, visiting your primary domain, you will see a message indicating that Laravel has been installed, and you will be redirected to the /public subdirectory. All of the live content will be placed in this directory. For security reasons, you will want to redirect to this “public” directory as the document root of your site.