Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Installing PartKeepr on an Ubuntu Server

blog.payperitem.com, April 7, 2025

✅ Step-by-Step Installation of PartKeepr on Ubuntu Server

1. System Preparation

bash

sudo apt update && sudo apt upgrade -y
sudo apt install unzip curl git -y

2. Install Apache, PHP, and MariaDB

bash

sudo apt install apache2 mariadb-server mariadb-client -y

Install PHP and required extensions:

bash

sudo apt install php php-mysql php-gd php-intl php-curl php-xml php-mbstring php-zip php-bcmath php-cli php-common php-soap php-imagick libapache2-mod-php -y

Ensure you’re using PHP 7.4 or newer (as required by PartKeepr):

bash

php -v

3. Configure MariaDB

Run secure installation:

bash

sudo mysql_secure_installation

Then log in and create the database and user:

bash

sudo mysql -u root -p
sqlCREATE DATABASE partkeepr CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'partkeepruser'@'localhost' IDENTIFIED BY 'StrongPasswordHere!';
GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepruser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

4. Install Composer

bash

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

5. Install PartKeepr

Clone PartKeepr:

bash
cd /var/www/
sudo git clone https://github.com/partkeepr/PartKeepr.git
sudo chown -R www-data:www-data PartKeepr
cd PartKeepr

Install dependencies:

bash

sudo -u www-data composer install --no-dev --optimize-autoloader

6. Set Permissions

bash

sudo chown -R www-data:www-data /var/www/PartKeepr
sudo chmod -R 755 /var/www/PartKeepr

7. Configure Apache

Create a config file:

bash

sudo nano /etc/apache2/sites-available/partkeepr.conf

Paste:

apache<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/PartKeepr/web
ServerName partkeepr.local

<Directory /var/www/PartKeepr/web>
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/partkeepr_error.log
CustomLog ${APACHE_LOG_DIR}/partkeepr_access.log combined
</VirtualHost>

Enable the site:

bash

sudo a2ensite partkeepr.conf
sudo a2enmod rewrite
sudo systemctl reload apache2

8. Run the Setup Wizard

Navigate to:

cpp

http://<your-server-ip>/

Follow the setup wizard to configure database access, admin account, and finalize the installation.


9. Post-Install Tips

  • Backups: Regularly back up the DB and /var/www/PartKeepr.
  • Security: Consider setting up HTTPS using Let’s Encrypt (certbot).
  • Performance: Install and configure PHP OPcache for better performance.

Cloud OpenSource Website

Post navigation

Previous post
Next post

Related Posts

Customize Snipe-IT to add more field entries

April 3, 2025April 3, 2025

1. Using Custom Fields (No Code) This is the easiest way to add fields without modifying the code. 2. Database Modification (Advanced) If you need persistent changes beyond custom fields: 3. Extending Snipe-IT API for Custom Fields 4. Customizing the Frontend If the UI needs additional inputs:

Read More

List of open-source Multi-Factor Authentication (MFA) solutions

April 7, 2025

🔐 Open Source MFA Solutions (Self-Hosted or Integratable) 1. Authelia 2. privacyIDEA 3. Keycloak 4. FreeIPA 5. OpenIAM 📲 TOTP Apps (Open Source Clients) To complement your server:

Read More

RADIUS server on Active Directory

April 7, 2025April 7, 2025

To configure a RADIUS server on Active Directory, you typically use Network Policy Server (NPS), which is Microsoft’s implementation of a RADIUS server and proxy. It integrates tightly with Active Directory to authenticate, authorize, and account (AAA) for network access requests (e.g., VPN, Wi-Fi, 802.1X switch ports, etc.). Here’s a…

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }