PartKeepr is an open-source inventory management software. In this tutorial, we will guide you through the process of installing PartKeepr on Clear Linux Latest.
Before proceeding with the installation, you must have:
sudo swupd update
sudo swupd bundle-add php-basic
sudo swupd bundle-add php-mysql
sudo swupd bundle-add mariadb-server
sudo swupd bundle-add nginx
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo systemctl enable nginx
sudo systemctl start nginx
wget -O /var/www/PartKeepr.zip https://github.com/partkeepr/PartKeepr/releases/download/1.4.0/partkeepr-1.4.0.zip
sudo unzip -q /var/www/PartKeepr.zip -d /var/www
sudo mv /var/www/partkeepr-1.4.0 /var/www/partkeepr
sudo chown -R www-data:www-data /var/www/partkeepr
mysql -u root -p
Enter the root password when prompted.
CREATE DATABASE partkeepr;
GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepr_user'@'localhost' IDENTIFIED BY 'your_password';
FLUSH PRIVILEGES;
exit
Replace your_password
with a strong password.
sudo nano /etc/nginx/sites-available/partkeepr
Add the following content:
server {
listen 80;
server_name your_domain.com;
root /var/www/partkeepr;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Replace your_domain.com
with your domain name.
sudo ln -s /etc/nginx/sites-available/partkeepr /etc/nginx/sites-enabled/
sudo nginx -t
If there are no errors, reload nginx:
sudo systemctl reload nginx
sudo nano /var/www/partkeepr/app/config/parameters.yml
Replace the following lines:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: null
database_user: null
database_password: null
with:
database_driver: pdo_mysql
database_host: localhost
database_port: null
database_name: partkeepr
database_user: partkeepr_user
database_password: your_password
Replace your_password
with the password you created earlier.
sudo chown -R www-data:www-data /var/www/partkeepr/app/cache
sudo chown -R www-data:www-data /var/www/partkeepr/app/logs
http://your_domain.com
.Congratulations, you have successfully installed PartKeepr on Clear Linux Latest!
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!