Bagisto is an open-source Laravel eCommerce platform that allows you to create a fully functional eCommerce store. In this tutorial, we will guide you through the process of installing Bagisto on Fedora Server Latest.
Before we begin, ensure that your Fedora Server Latest is updated, and you have root access to the server.
First, we need to install some required PHP modules and dependencies in our system. To do so, run the following command in your terminal:
dnf install -y httpd php php-opcache php-mysqlnd php-pdo php-gd php-mbstring php-json php-xml unzip
This command will install Apache, PHP, and all the other required PHP modules and dependencies.
Next, we need to download the Bagisto package from the official website. You can use the following command to download the latest stable version of Bagisto:
wget https://github.com/bagisto/bagisto/archive/v1.3.9.zip -O bagisto.zip
This command will download the Bagisto package and save it as bagisto.zip in the current directory.
Once the Bagisto package is downloaded, extract it using the following command:
unzip bagisto.zip -d /var/www/html/
This command will extract the package into the /var/www/html/ directory.
After extracting the package, we need to set the proper permissions for the Bagisto files and directories. To do this, use the following command:
chown -R apache:apache /var/www/html/bagisto-1.3.9/
chmod -R 755 /var/www/html/bagisto-1.3.9/
This command will set proper ownership and file permissions for the Bagisto files.
Next, we need to create a new Apache configuration file for Bagisto. To do this, use the following command:
nano /etc/httpd/conf.d/bagisto.conf
Then, paste the following content in the file:
<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>
Save and close the file.
After configuring Apache, we need to start the Apache and MySQL services using the following command:
systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb
This command will start the Apache and MySQL services and enable them to start automatically at system boot.
We need to create a new MySQL database for Bagisto. To do this, log in to the MySQL console using the following command:
mysql -u root -p
Then, create a new database and user by running the following command:
CREATE DATABASE bagisto;
CREATE USER 'bagisto'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON bagisto.* TO 'bagisto'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Replace 'password' with a strong password of your choice.
Next, we need to install Composer, a PHP package manager, by issuing the following command:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
After installation, verify that Composer is installed by running the command:
composer -V
After installing Composer, navigate to the Bagisto directory and run the following command to install Bagisto dependencies.
cd /var/www/html/bagisto-1.3.9/
composer install
This command will download and install all required Bagisto dependencies.
Finally, execute the Bagisto installer script with the following command:
php artisan bagisto:install
This command will ask for your database credentials and create the required database tables. Follow the on-screen instructions to complete the configuration.
Once the installation is complete, you can access your Bagisto store by navigating to http://your_server_ip in your web browser.
Conclusion
Congratulations! You have successfully installed Bagisto on Fedora Server Latest. You can now customize your store and start selling products.
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!