Installing Grocy on Fedora Server

Grocy is an open source web-based application that helps you track your groceries, household items, and household chores. In this tutorial, we will guide you through the installation of Grocy on Fedora Server.

Prerequisites

Before we proceed with the installation, you need to make sure that the following prerequisites are met:

Step 1 - Download Grocy

To download Grocy, open a terminal on your server and run the following command:

wget https://releases.grocy.info/latest

The above command will download the latest stable version of Grocy from their official website.

Step 2 - Extract the Archive

Once the download is complete, extract the archive using the following command:

tar -xvf latest

This will extract the contents of the Grocy archive to the current directory. You can move the extracted folder to your web server's document root directory by running the following command:

mv grocy /var/www/html/

Step 3 - Create a Database

Create a MariaDB/MySQL database for Grocy using the following command:

mysql -u root -p

Type your database password when prompted. Then enter the following commands one by one:

CREATE DATABASE grocydb;
CREATE USER 'grocy'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON grocydb.* TO 'grocy'@'localhost';
FLUSH PRIVILEGES;
exit

Step 4 - Configure Grocy

Navigate to the Grocy folder in your web server's document root directory and rename the config-dist.php file to config.php.

cd /var/www/html/grocy/
mv config-dist.php config.php

Open the config.php file in a text editor and update the following database details:

'database' => [
    'host' => 'localhost',
    'user' => 'grocy',
    'pass' => 'your_password_here',
    'name' => 'grocydb'
],

Step 5 - Open Grocy on Web Browser

Now you can access Grocy by browsing to your server's IP address or hostname followed by /grocy. For example, if your server IP is 192.168.1.100, you can access Grocy by browsing to:

http://192.168.1.100/grocy

The first time you access Grocy, you will be asked to create a new user and set up some basic settings.

Congratulations! You have successfully installed Grocy on Fedora Server. You can now start tracking your groceries, household items, and household chores.

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!