Install Bagisto Using CloudPanel

Updated 24 July 2025

So let’s see how we can install Bagisto using CloudPanel on a Ubuntu host.

I am assuming that you have already installed CloudPanel on your cloud server (like AWS EC2) or any other cloud server running Debian.

After logging into the CloudPanel admin, click on ‘+ Add Site’. I have also attached screenshots of each step.

Here, you’ll see the option to create multiple sites. You need to click on Create a PHP Site.

Here, we will use Bagisto version 2.3.6, which is based on Laravel 11. Accordingly, add your domain name here.

And click on Create. You will see your domain listed under the site. Now click on Manage under the Action section.

When you click on Manage, you will see the site’s control view where you can apply and modify your changes.

The domain you want to use for example, in the blog I have used add-your-domain.com needs to be bound to the same CloudPanel server IP in your DNS settings.

Here, you can also manually upload your SSL certificates.

You can use SSH as well, but for that, you need to create a user and generate SSH keys using ssh-keygen, then upload the public key.

For example, I created a user named ‘cloudpanel’ and uploaded the public key generated using ssh-keygen.

To install Bagisto, we need to run some commands inside the server using the CLI. For this, we’ll need a terminal, which means we’ll need to connect via SSH.

When you SSH into the server, the user you created for your site add-your-domain.com will have the path /home/add-your-domain/htdocs/add-your-domain.com/public

which will be used as a symlink to /home/cloudpanel/htdocs/add-your-domain.com/public

Go to the path /home/cloudpanel/htdocs and remove the add-your-domain.com directory, because add-your-domain.com is the default document root set by CloudPanel.

Bagisto also has its own public directory inside its project.

So now, we will clone the Bagisto repository into this exact path and rename the cloned bagisto directory to add-your-domain.com, so that Bagisto’s own public directory will be used automatically.

Use this command to clone the repository into the same path, and then use the command below to reset the repository to a specific version like git reset –hard v2.3.6.

Now, you need to rename the Bagisto directory to the domain name you had earlier removed as shown in the screenshot. This will set up the old document root and Bagisto’s document root correctly.

Then, in the /home/cloudpanel/htdocs/add-your-domain.com path, rename the .env.example file to .env.

Now, go to CloudPanel and create a database along with a database user and password, which we will then use in the .env file.

Click on the ‘Add Database’ button to create the database and user.

And use this database name, username, and password during the installation.

Open the terminal and run the command composer install.

After that, run this command php artisan bagisto:install. It will prompt you to enter your domain name and database details fill them in accordingly.

Go to the path /home/cloudpanel/htdocs and run these permission-related commands.

Now, when you hit your URL in the browser, your site will be up and running.

Category(s) Uncategorized
author
. . .

Leave a Comment

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


Be the first to comment.

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home