PartKeepr is a free and open-source web-based inventory management system that helps businesses to keep track of their equipment, tools, and other materials. In this tutorial, you'll learn how to install PartKeepr on Fedora CoreOS Latest.
Before you proceed with the installation of PartKeepr, make sure that you have the following prerequisites:
To avoid any possible conflicts or issues, it's always a good practice to update your system before installing any new application. You can update your Fedora CoreOS Latest by running the following command:
sudo rpm-ostree update
Wait for the command to finish updating your system.
PartKeepr requires several software packages to run. To install these packages, run the following:
sudo dnf install mariadb mariadb-server httpd php php-mysqlnd php-xml php-mbstring php-gd php-intl php-apcu php-json composer redis php-redis
The packages might take a while to install.
PartKeepr requires a database. MariaDB is an open-source database management system, which you just installed in the previous step. To set up MariaDB, follow these steps:
Log in to the MariaDB database with the following command:
sudo mysql
Create a new database by running the following SQL command:
CREATE DATABASE partkeepr;
Create a new user by running the following SQL command:
CREATE USER 'partkeepruser'@'localhost' IDENTIFIED BY 'your-password';
Grant the necessary privileges to the user for the new database by running the following SQL command:
GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepruser'@'localhost' WITH GRANT OPTION;
Flush the privileges to implement the changes with the following command:
FLUSH PRIVILEGES;
Create a configuration file for PartKeepr with the following command:
sudo nano /etc/my.cnf.d/partkeepr.cnf
Add the following configuration to the file:
innodb_file_per_table=1
innodb_large_prefix=on
innodb_file_format=barracuda
max_allowed_packet=268435456
Save the file and close the editor.
Restart MariaDB with the following command:
sudo systemctl restart mariadb
Now you are ready to install PartKeepr. Follow these steps to install PartKeepr:
Clone the PartKeepr repository from GitHub to the /var/www/html directory:
sudo git clone https://github.com/partkeepr/PartKeepr.git /var/www/html/partkeepr
Navigate to the /var/www/html/partkeepr directory and run the following command to install the required dependencies:
sudo composer install
Create a configuration file for PartKeepr with the following command:
sudo nano /var/www/html/partkeepr/app/config/parameters.yml
Change the database configuration detail and write like this
parameters:
database_driver: pdo_mysql
database_host:localhost
database_port: 3306
database_name: partkeepr
database_user: partkeepruser
database_password: your-password
Save the file and close the editor.
Create the necessary tables in the database by running the following command:
php bin/console doctrine:schema:create
Populate the database with the required data by running the following command:
php bin/console doctrine:fixtures:load
Now that you have completed the installation of PartKeepr, you need to start the application. To start PartKeepr, follow these steps:
Enable the Apache webserver with the following command:
sudo systemctl enable httpd
Start the Apache webserver with the following command:
sudo systemctl start httpd
To access PartKeepr, open your web browser and navigate to your server's IP address or FQDN. You should see the PartKeepr login page.
Log in with the default credentials:
admin
admin
After you log in, you should see the PartKeepr dashboard, which means that you have successfully installed PartKeepr on Fedora CoreOS Latest.
In this tutorial, you have learned how to install PartKeepr on Fedora CoreOS Latest. You have also learned how to configure MariaDB, install PartKeepr, and start the application.
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!