Come hang with us on Discord and chat directly with the team!Discordtop-bar-close-icon

2024-09-12

How to Install Bagisto on Fedora Server

tutorials
img

Bagisto is an open-source Laravel eCommerce platform for creating fully functional online stores. This guide will walk you through installing Bagisto on Fedora Server Latest.

Prerequisites

Ensure your Fedora Server is updated, and you have root access.

Step 1: Install Required Dependencies

Use the following command to install necessary PHP modules and dependencies:

dnf install -y httpd php php-opcache php-mysqlnd php-pdo php-gd php-mbstring php-json php-xml unzip

Step 2: Download Bagisto

Download the Bagisto package using the command:

wget https://github.com/bagisto/bagisto/archive/v1.3.9.zip -O bagisto.zip

Step 3: Extract the Package

Extract Bagisto with this command:

unzip bagisto.zip -d /var/www/html/

Step 4: Set Permissions

Set the correct permissions with:

chown -R apache:apache /var/www/html/bagisto-1.3.9/ chmod -R 755 /var/www/html/bagisto-1.3.9/

Step 5: Configure Apache

Create a new Apache configuration file:

nano /etc/httpd/conf.d/bagisto.conf

Add the following:

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/bagisto-1.3.9/public/ <Directory /var/www/html/bagisto-1.3.9/> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog /var/log/httpd/bagisto_error.log CustomLog /var/log/httpd/bagisto_access.log combined </VirtualHost>

Step 6: Start Apache and MySQL Services

Start services using:

systemctl start httpd systemctl enable httpd systemctl start mariadb systemctl enable mariadb

Step 7: Configure MySQL

Create a new database:

mysql -u root -p CREATE DATABASE bagisto; CREATE USER 'bagisto'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON bagisto.* TO 'bagisto'@'localhost'; FLUSH PRIVILEGES; EXIT;

Step 8: Install Composer

Install Composer with:

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer composer -V

Step 9: Install Bagisto Dependencies

Navigate to the Bagisto directory and run:

cd /var/www/html/bagisto-1.3.9/ composer install

Step 10: Run Bagisto Install Script

Execute the installer script:

php artisan bagisto:install

Step 11: Access Bagisto

Visit http://your_server_ip to access your Bagisto store.

Congratulations! Bagisto is now installed on your Fedora Server. Customize your store and start selling.