How to Install Bagisto eCommerce on Fedora 39 Server or Workstation edition


If you’re to set up your own store on a Fedora system, Bagisto eCommerce is a fantastic option to consider. With its robust features user-friendly interface, Bagisto eCommerce makes it easy for you to create and manage your online business. In this article, we will walk you through the process of installing Bagisto eCommerce on Fedora, ensuring that you have all the necessary steps to get your store up and running smoothly.


Before we dive into the installation process, let’s go over the prerequisites you’ll need to have in place:

1) Fedora operating system installed on your machine.
2) LAMP stack (Apache, MySQL, PHP) set up and running.
3) Composer installed on your system.
4) Basic knowledge of the command line interface.

If you have these prerequisites in order, let’s move on to the installation steps.

Step 1: Download Bagisto

The first step in installing Bagisto eCommerce on Fedora is to download the package. You can do this by visiting the official Bagisto website and navigating to the downloads section. Choose the latest stable version of Bagisto and download the ZIP or TAR file to your local machine.

Step 2: Extract the Package

Once the download is complete, navigate to the directory where the package was saved and extract its contents. You can do this by right-clicking on the file and selecting the “Extract” option. This will create a new directory with the extracted files.

Step 3: Move the Files to Web Directory

Next, we need to move the extracted files to the web directory on your Fedora system. This directory is usually located at “/var/www/html”. Open a terminal window and navigate to the extracted Bagisto directory. Use the following command to move the files:
sudo mv * /var/www/html/

Step 4: Install Dependencies

Bagisto requires certain dependencies to function properly. In this step, we will use Composer to install these dependencies. If you haven’t installed Composer yet, you can download it from the official Composer website and follow the installation instructions. Once Composer is installed, open a terminal window and navigate to the “/var/www/html” directory. Run the following command to install the dependencies:
composer install
This will take a few moments as Composer downloads and installs the necessary packages.

Step 5: Configure the Database

To store and manage your store’s data, Bagisto requires a MySQL database. Open your preferred web browser and enter “localhost/phpmyadmin” in the address bar. This will take you to the phpMyAdmin interface. Create a new database by clicking on the “Databases” tab and entering a name for your database in the “Create database” field. Click on the “Create” button to finalize the creation of the database.

Step 6: Configure Bagisto

With the dependencies installed and the database ready, we can now configure Bagisto. Navigate to the “/var/www/html” directory in a terminal window and run the following command to generate the .env file:
cp .env.example .env
Next, open the .env file in a text editor and update the following fields with your database details:
Save the changes and exit the text editor.

Step 7: Generate Application Key

Bagisto uses an application key to ensure secure communication between the application and users. To generate the application key, run the following command in the terminal:
php artisan key:generate
You should see a success message indicating that the application key has been generated.

Step 8: Run Migration and Seed the Database

In this step, we will migrate the necessary tables and seed the database with initial data. Run the following command in the terminal:
php artisan migrate --seed
This will create the required tables and populate them with default data.

Step 9: Set Permissions

To ensure proper functioning of Bagisto, we need to set the correct permissions for certain directories. Run the following commands in the terminal:
sudo chmod -R 777 storage bootstrap/cache
This will grant read, write, and execute permissions to the specified directories.

Step 10: Start the Web Server

Finally, we are ready to start the web server and access our Bagisto store. Run the following command in the terminal:
php artisan serve
Now, open your preferred web browser and enter “localhost:8000” in the address bar. You should see the Bagisto installation page, indicating that the setup was successful.


Congratulations! You have successfully installed Bagisto eCommerce on your Fedora system. With Bagisto’s powerful features and user-friendly interface, you are now ready to create and manage your online store with ease. Start exploring the various customization options and unleash the full potential of Bagisto to make your online business thrive. Happy selling!

Scroll to Top