Installing PartKeepr on Fedora Server Latest

PartKeepr is an open-source inventory management software that helps you keep track of your electronic components and other inventory items. In this tutorial, we will walk you through the steps to install PartKeepr on your Fedora Server Latest.

Prerequisites

Before you start, ensure that you have the following:

Step 1: Install Required Packages

First, you need to install the required packages to run PartKeepr. Execute the following command to install Apache, PHP, and MySQL:

sudo dnf install httpd mariadb mariadb-server php php-mysqlnd php-json php-gd php-xml php-mbstring -y

Once the packages are installed, start the Apache and MySQL services and enable them to start at boot-time with the following commands:

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

Step 2: Create MySQL Database for PartKeepr

Next, you need to create a database for PartKeepr. Log in to the MySQL shell with the following command:

sudo mysql -u root

Once in the MySQL shell, create a database and a user with full permissions. Replace the values “partkepr_db_name”, “partkeepr_user”, and “password” with your own preferred values:

CREATE DATABASE partkeepr_db_name;
CREATE USER 'partkeepr_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON partkeepr_db_name.* TO 'partkeepr_user'@'localhost';
FLUSH PRIVILEGES;

Exit the MySQL shell with the following command:

exit

Step 3: Download and Install PartKeepr

Change to the Apache document root directory and download the latest version of PartKeepr with the following command:

cd /var/www/html
sudo wget https://github.com/partkeepr/PartKeepr/releases/download/1.5.0/partkeepr-1.5.0.tar.gz

Extract the PartKeepr archive with the following command:

sudo tar xvf partkeepr-1.5.0.tar.gz

Move the extracted PartKeepr directory to the document root with the following command:

sudo mv partkeepr-1.5.0/* /var/www/html/

Set the correct ownership and permissions on the PartKeepr directory with the following command:

sudo chown -R apache:apache /var/www/html/
sudo chmod -R 755 /var/www/html/

Step 4: Configure PartKeepr

Rename the “app/config/parameters.yml-dist” file to “app/config/parameters.yml” with the following command:

sudo cp app/config/parameters.yml-dist app/config/parameters.yml

Edit the “app/config/parameters.yml” with a text editor to adjust the parameters as in the following example:

nano app/config/parameters.yml

database_driver: pdo_mysql
database_host: localhost
database_port: null
database_name: partkeepr_db_name
database_user: partkeepr_user
database_password: password
mailer_transport: smtp
mailer_host: localhost
mailer_user: null
mailer_password: null
locale: en
secret: YourSecretKey

Save the file and exit from the text editor.

Step 5: Enable Required PHP Modules

To run PartKeepr, you need to enable some PHP modules. Edit the “/etc/php.ini” file with the following command:

sudo nano /etc/php.ini

Uncomment the following lines by removing the semicolon (;) at the beginning of each line:

extension=gd.so
extension=mysqli.so
extension=xmlrpc.so

Save the file and exit from the text editor.

Step 6: Restart Apache

To apply the changes, restart the Apache service with the following command:

sudo systemctl restart httpd

Step 7: Start the PartKeepr Installation

Open your favorite browser, enter your server’s IP address in the address bar, and add “/app_dev.php/install” at the end of the URL. You should see the PartKeepr installation window. Follow the on-screen instructions to complete the installation.

After the PartKeepr installation completes, remove the “app/app_dev.php” file with the following command:

sudo rm /var/www/html/app/app_dev.php

Conclusion

You've successfully installed PartKeepr on your Fedora Server Latest. You can now start adding your inventory items and enjoying the benefits of this easy-to-use inventory management tool. If you face any issues or have any questions, feel free to visit the official PartKeepr website at https://www.partkeepr.org for more information.

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!