Tutorial: How to Install Groceri.es on Fedora Server Latest

Groceri.es is an open-source, web-based grocery list manager that allows you to easily and efficiently manage your grocery list. In this tutorial, we will guide you through the process of installing Groceri.es on Fedora Server Latest.

Prerequisites

Before we start, you will need:

Step 1: Install Required Packages

To install Groceri.es, we need to install the required packages for the web server. Run the following command to install them:

sudo dnf install httpd mariadb mariadb-server php php-mysqlnd php-gd php-xml php-mbstring mod_ssl openssl

This command will install Apache web server, MariaDB database server, and PHP modules required by Groceri.es.

Step 2: Start and Enable Services

Now that you have installed the required packages, start and enable the services using the following commands:

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

This will start and enable the Apache and MariaDB services.

Step 3: Download and Install Groceri.es

Download the latest release of Groceri.es with the following command:

sudo curl -L https://github.com/sjlu/groceri.es/archive/master.zip -o groceri.es.zip

Extract the downloaded zip archive with:

sudo unzip groceri.es.zip -d /var/www/

Rename the extracted folder to groceri.es with:

sudo mv /var/www/groceri.es-master /var/www/groceri.es

Grant permissions to the Apache user with:

sudo chown -R apache: /var/www/groceri.es
sudo chmod -R 755 /var/www/groceri.es

Step 4: Create a Database and User

Now that we have installed Groceri.es, we need to create a database and a user.

Log in to MariaDB with:

sudo mysql -u root

Create a database:

CREATE DATABASE groceri_es;

Create a user:

CREATE USER 'groceri_es_user'@'localhost' IDENTIFIED BY 'yourpassword';

Grant privileges to the user:

GRANT ALL PRIVILEGES ON groceri_es.* TO 'groceri_es_user'@'localhost';
FLUSH PRIVILEGES;

Exit MySQL with:

exit

Step 5: Configure Groceri.es

Copy the configuration file template:

sudo cp /var/www/groceri.es/config/config.inc.php.example /var/www/groceri.es/config/config.inc.php

Edit the configuration file:

sudo nano /var/www/groceri.es/config/config.inc.php

Replace the following lines:

define('DB_SERVER', '');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
define('DB_SCHEMA', '');

With:

define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'groceri_es_user');
define('DB_PASSWORD', 'yourpassword');
define('DB_SCHEMA', 'groceri_es');

Save and close the file.

Step 6: Configure Firewall

If you have a firewall enabled, run the following commands to allow HTTP and HTTPS traffic:

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

Step 7: Access Groceri.es

Open your web browser and navigate to:

http://your_server_IP/groceri.es

You will be redirected to the setup page where you can create an admin account and configure your settings.

Congratulations! You have successfully installed Groceri.es on your Fedora Server Latest. Enjoy your new grocery list manager!

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!