Why Choose Kloudbean for Your Laravel Application?
- Deploy your Laravel application with ease, getting your app online in just a few clicks.
- Kloudbean ensures multi-layered security for your Laravel application, including application isolation, encryption, and firewall configurations.
- Easily set up custom domains for your Laravel application, with Kloudbean providing free SSL certificates to ensure secure connections for your users.
- Kloudbean optimizes servers, ensuring your application runs with maximum efficiency. With Nginx as the web server, optimized PHP-FPM configurations, and Apache support, your app is fully optimized to handle production traffic.
- Take full advantage of Nginx FastCGI caching to serve cached content with blazing speed, reducing the load on your PHP backend and improving response times for end users.
- Leverage highly optimized PHP-FPM configurations that provide fast and efficient processing of PHP requests, ensuring minimal resource usage and lightning-fast performance under heavy traffic.
- Kloudbean supports both Nginx and Apache, giving you the flexibility to choose the right web server for your Laravel app, and ensuring seamless performance with robust caching and load balancing support.
- Kloudbean offers one-click deployment for your Laravel application, ensuring you spend less time managing infrastructure and more time building features.
Deploying and Running Your PHP Laravel Application
Now that you understand the advantages of hosting your Laravel application on Kloudbean, let’s dive into how you can deploy and run your PHP Laravel application on the platform. Kloudbean’s user-friendly interface makes it easy to get started, ensuring that your application is production-ready with minimal setup. Follow these simple steps to deploy your Laravel application on Kloudbean.
Step 1: Creating new Laravel application on new server
This step involves;
- Choosing Cloud Provider
- Choosing Application
- Choosing Datacenter with nearest location
- Adding Application Name
- Adding Server Name
- Selecting Server size depending on needs.

Once application installation process is completed. Go to Apps tab and Click on the application that just has been created. It will take you to the Application Administration section.

From the Application Administration section you are going to see following important fields that will be require in further app deployment process.
Application access URL
: This is the default access url provided by kloudbean.Database Name
: This is the database that has been automatically created for this app.Database Username
: This is the database user, created automatically.Database Password
: This is the password for the above user to access database.Launch Database Manager
: This button will take you to phpmyadmin where you can access your database using these same credentials and perform any query.

Step 2: Deploying Application with Git.
In order to deploy your code through Git, Follow these steps:
- Go to
Deploy Code
section, Click onGENERATE SSH KEY
, if not already generated. If your repo is private, then you can get SSH key by clicking onSHOW SSH KEY
. - Once SSH keys are added in your private repo (not required for public repo), Copy Git Address from your Github and paste it to
Git Branch Address
field. - Select your branch that you wants to deploy from
Branch
field. - Once above steps are done, Click on
Clone Now
Button to clone your repo.
Additionally you can see your code using kloudbean File Manager feature, by clicking on LAUNCH FILE MANAGER
button.

For demo purpose we are going to deploy open-source application BookStack from Github repository.
If you to learn more how to clone Git repo, Read this

Step 3: Updating .env file
Once Git repo is cloned successfully. Next step is to update env file with the database credentials and other required configurations. In order to do that, we need to follow these steps;
- Access File Manager by clicking on
LAUNCH FILE MANAGER
button from Code Deploy section. - Scroll down to file names
.env.example
and remain it to.env
by clicking on pen icon from top menu. - Double click on
.env
file, this will open the file in Edit mode to update it.

Step 4: Adding Database Credentials
Once .env file is created and ready to update. Update following fields in the file.
DB_HOST
: we don't need to update it, as database is running on same server so localhost value is fine.DB_DATABASE
: Copy database name from Application Administration section as mentioned above and paste it here.DB_USERNAME
: Copy database username as well and paste it here.DB_PASSWORD
: Update password as well.
Additional APP_URL is going to be the URL of application, in this case we will update this field as well and replace it with the kloudbean's provided default url.

Step 5: SSH into server to execute php commands
In order to ssh into server. You can get Server IP Address, Username and password from Server Access section.
- Go to Server Access section.
- Copy access credentials and add this into your terminal
ssh <admin-user>@<ip-address>
. - Followed by password. and hit Enter.
- Go to application app-html directory where code has been cloned already by using command
cd /home/admin/hosted-sites/<app-system-user>/app-html

If you to learn more about how to ssh server Read this
Step 6: Executing php commands
Once you are in the app-html directory, run following compose command in order to install your project's required dependencies.
composer install --no-dev
As a result of this command all dependencies should be installed.

Once dependencies are installed, Next step is to generate key using following php command;
php artisan key:generate
After this execute one last command to create required tables on database.
php artisan migrate
As a result of above commands, your application should be fully ready to access it.

Optionally Accessing Database
Kloudbean provide phpmyadmin with each server, in order to access application database. By just clicking on LAUNCH DATABASE MANAGER
from Application Administration section and followed by adding database credentials, you can access database and perform any query by selecting the require database.

Accessing the Application
By now your application is fully deployed and ready to serve traffic. You can access your application by clicking on Launch icon of your application in kloudbean Apps section, or from Application Administration section.
BookStack Application is successfully accessible.

With Kloudbean’s powerful features, deploying your PHP Laravel application has never been easier. The platform manages your server configuration, scaling, security, and performance optimization, so you can focus on building and growing your application.
Read how to enable auto deployment using CI/CD.