How to Install PrestaShop on Fedora CoreOS Latest

PrestaShop is a popular open-source e-commerce platform-based application. Installing PrestaShop on Fedora CoreOS is quite easy.

Prerequisites

Before we proceed with the PrestaShop installation, make sure your Fedora CoreOS is up to date using the following command:

$ sudo rpm-ostree upgrade

Install Required Dependencies

To install PrestaShop on Fedora CoreOS, we need to install PHP, the web server (Apache or Nginx), and some other dependencies. Here are the commands to install them:

  1. Install PHP and related PHP modules:

    $ sudo dnf install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd
    
  2. Install Web Server:

    • For Apache
      $ sudo dnf install httpd
      
    • For Nginx
      $ sudo dnf install nginx
      
  3. Open firewall ports:

    • For Apache
      $ sudo firewall-cmd --permanent --add-service=http && sudo firewall-cmd --reload
      
    • For Nginx
      $ sudo firewall-cmd --permanent --add-service=https && sudo firewall-cmd --reload
      

Install PrestaShop

Follow the below steps to install PrestaShop.

  1. Download PrestaShop from their official website:
    $ sudo wget https://www.prestashop.com/download/old/prestashop_1.7.7.2.zip
    
  2. Extract PrestaShop archive
    $ sudo unzip prestashop_1.7.7.2.zip -d /var/www/
    
  3. Change Permission
    $ sudo chown -R apache.apache /var/www/prestashop/
    
  4. Configure Database
    $ sudo mysql
    
    CREATE DATABASE prestashop;
    CREATE USER prestashopuser@localhost IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON  prestashop.* TO prestashopuser@localhost;
    FLUSH PRIVILEGES;
    EXIT;
    
  5. Open the url http://localhost/prestashop and do the installation steps.

That’s it! We have completed the installation process for PrestaShop on Fedora CoreOS.

Now you can access your PrestaShop web interface by typing the URL http://ip-address/prestashop on your web browser.

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!