Bagisto is an opensource eCommerce platform based on Laravel. It is widely used by developers and merchants to set up online stores as well as manage their inventory, orders, customers, and more.
Here, we will discuss the installation of Bugisto on Ubuntu Server Latest in a few simple steps.
Make sure you have the following prerequisites installed on your Ubuntu server:
You can install these packages by executing the following command:
sudo apt-get update
sudo apt-get install apache2 mysql-server php7.2 libapache2-mod-php7.2 php7.2-mysql php-common php7.2-cli php7.2-common php-zip php7.2-json php7.2-curl php7.2-gd phponf php7.2-mbstring php7.2-xml php7.2-fpm composer
Note: This command will install all the required packages on your Ubuntu server.
Follow the steps below to install Bagisto:
Firstly, clone the Bagisto repository from GitHub. You can execute the following command:
git clone https://github.com/bagisto/bagisto.git
Navigate to the Bagisto directory by typing the following command:
cd bagisto
Then, install the required packages by running the following command.
composer install
Next, rename the .env.example
file to .env
and then set up your environment variables.
cp .env.example .env
nano .env
Replace the following environment variables:
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
Save and close the file.
Now, migrate the database by executing the following commands.
php artisan migrate
php artisan db:seed
php artisan vendor:publish --all
php artisan storage:link
php artisan passport:install
Set the right file permissions for the storage/
and bootstrap/cache/
directories by executing the following command.
sudo chmod -R 777 storage/ bootstrap/cache/
Finally, start the server by running the following command:
php artisan serve
This will start the server on http://localhost:8000
.
Bagisto is an easy-to-use eCommerce platform that can be set up quickly on your Ubuntu server. Make sure you follow all the steps mentioned above to get started with your online store.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!