Bagisto
Bagisto adalah platform e-commerce open-source berbasis Laravel yang dirancang untuk membantu pengembang dan pemilik bisnis dalam membangun toko online dengan cepat dan fleksibel. Dibuat oleh Webkul, Bagisto menawarkan solusi lengkap untuk mengelola produk, kategori, pesanan, pelanggan, serta mendukung multi-store dan multi-channel.
Bagisto memanfaatkan framework Laravel dan Vue.js, sehingga cocok untuk pengembang yang sudah familiar dengan teknologi tersebut. Selain itu, Bagisto mendukung berbagai fitur penting seperti Advanced Product Catalog, Multi-Currency, Multi-Language, dan Inventory Management. Dengan arsitektur yang modular, Bagisto sangat mudah dikustomisasi sesuai dengan kebutuhan bisnis.
1. Persyaratan Sistem
System requirements untuk menjalankan Bagisto 2.2:
- Apache atau Nginx web server
- PHP 8.3+
- Composer 2.5+
- MySQL 8.0+ atau MariaDB 10.3+
Sebelum memulai deploy, siapkan:
- VPS atau server dengan OS Ubuntu 24.04 LTS
- Akses SSH ke server
- Domain yang sudah diarahkan ke server
2. Persiapan Server
Update sistem
sudo apt update
sudo apt upgrade -y
Install Apache
sudo apt install apache2 -y
Tambah repository PPA ondrej/php
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt upgrade -y
Install PHP 8.3 dan extension yang dibutuhkan
sudo apt install php8.3 php8.3-cli php8.3-common \
php8.3-apcu php8.3-mbstring php8.3-gd php8.3-intl \
php8.3-xml php8.3-soap php8.3-bcmath php8.3-mysql php8.3-zip \
php8.3-curl php8.3-tidy php8.3-imagick php8.3-sqlite3 -y
Install Composer
sudo wget https://getcomposer.org/download/latest-stable/composer.phar -O /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
Install MariaDB
sudo apt install mariadb-server -y
3. Buat Database
Login ke MariaDB
sudo mysql
Buat database dan user
CREATE DATABASE bagisto;
CREATE USER 'bagisto'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON bagisto.* TO 'bagisto'@'localhost';
FLUSH PRIVILEGES;
exit
4. Konfigurasi Apache
Buat konfigurasi virtual host untuk contoh.com
sudo nano /etc/apache2/sites-available/contoh.com.conf
Masukkan konfigurasinya
<VirtualHost *:80>
ServerName www.contoh.com
ServerAlias contoh.com
DocumentRoot /var/www/contoh.com/public
<Directory /var/www/contoh.com/public>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/contoh.com_error.log
CustomLog /var/log/apache2/contoh.com_access.log combined
</VirtualHost>
Aktifkan modul rewrite
, virtual host, dan restart apache2
sudo a2enmod rewrite
sudo a2ensite contoh.com
sudo systemctl restart apache2
Install certbot
sudo apt install certbot python3-certbot-apache -y
Request sertifikat SSL
sudo certbot --non-interactive \
-m [email protected] \
--agree-tos \
--no-eff-email \
--apache -d contoh.com -d www.contoh.com \
--redirect
5. Install Bagisto
Buat project Bagisto via Composer
sudo composer create-project bagisto/bagisto /var/www/contoh.com
Masuk ke direktori dan install Bagisto
cd /var/www/contoh.com
sudo php artisan bagisto:install
Prompt yang ditampilkan selama proses instalasi
- Please enter the application name
- Please enter the application URL
- Please select the application timezone
- Please select the default application locale
- Please select the default currency
- Please choose the allowed locales for your channels
- Please choose the allowed currencies for your channels
- Please select the database connection
- Please enter the database host
- Please enter the database port
- Please enter the database name
- Please enter the database prefix
- Please enter your database username
- Please enter your database password
- Enter the name of the admin user
- Enter the email address of the admin user
- Configure the password for the admin user
- Please select if you want some sample products after installation
Ubah user-group direktori
sudo chown -R www-data:www-data /var/www/contoh.com
Deploy Bagisto telah selesai, siap digunakan.