PartKeepr is a web-based inventory management system that helps to track components, manage stock and suppliers. In this tutorial, we will learn how to install PartKeepr on Ubuntu Server Latest.
Before starting, make sure you have the following:
The first step is to update Ubuntu to ensure all packages are up-to-date.
sudo apt update && sudo apt upgrade -y
PartKeepr requires some dependencies to be installed. Run the following command:
sudo apt install apache2 mariadb-server php7.4 php7.4-xml php7.4-mysql php7.4-zip php7.4-ldap zip unzip composer -y
Download PartKeepr from its official website:
wget https://github.com/partkeepr/PartKeepr/releases/download/1.4.0/partkeepr-1.4.0.zip
Extract the downloaded file:
unzip partkeepr-1.4.0.zip
You will now have a directory called partkeepr-1.4.0
where you will find PartKeepr application.
Navigate to the extracted directory and install PartKeepr using composer:
sudo composer install```
## Step 5: Setup PartKeepr's Database
Create a new database and user for PartKeepr.
```sudo mysql```
```MariaDB [(none)]> CREATE DATABASE partkeepr;
MariaDB [(none)]> CREATE USER 'partkeepr'@'localhost' IDENTIFIED BY 'PASSWORD';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepr'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;```
Replace PASSWORD with a strong password.
Import the PartKeepr database schema:
```mysql -u partkeepr -p partkeepr < sql/mysql/schema.sql```
Your database is now ready.
## Step 6: Configure PartKeepr
Create a new configuration file:
```cd config
sudo cp database.yml.sample database.yml
sudo nano parameters.yml```
In the `parameters.yml` file, specify the database credentials and other configuration options as per your system:
database: driver: pdo_mysql dbname: partkeepr user: partkeepr password: PASSWORD host: 127.0.0.1 charset: utf8mb4
Replace PASSWORD with your database password.
## Step 7: Configure Apache
Create a new VirtualHost file:
```cd /etc/apache2/sites-available
sudo nano partkeepr.conf```
Add the following configuration:
<VirtualHost *:80> ServerName YOUR_SERVER_NAME ServerAlias YOUR_SERVER_ALIAS
DocumentRoot /var/www/partkeepr-1.4.0/web/
<Directory /var/www/partkeepr-1.4.0/web/>
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/partkeepr_error.log
CustomLog ${APACHE_LOG_DIR}/partkeepr_access.log combined
```
Replace YOUR_SERVER_NAME and YOUR_SERVER_ALIAS with your preferred server names.
Enable the new VirtualHost:
sudo a2ensite partkeepr.conf
Restart Apache to apply the changes:
sudo systemctl restart apache2
You have successfully installed and configured PartKeepr. You can access it on your web browser by entering your server name or IP address.
http://YOUR_SERVER_NAME/
or http://SERVER_IP_ADDRESS/
You will be prompted to create a new admin user.
That's it! You can now start using PartKeepr to manage your components and inventory.
In this tutorial, we have learned how to install PartKeepr on Ubuntu Server latest. Feel free to explore all the features that PartKeepr has to offer.
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!