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

Script to install PartKeepr on Ubuntu Server 22.04+

blog.payperitem.com, April 7, 2025April 7, 2025

🚀 Install Script: install_partkeepr.sh

Save as install_partkeepr.sh and run with sudo bash install_partkeepr.sh.

bash#!/bin/bash

# Configurable Variables
DB_NAME="partkeepr"
DB_USER="partkeepruser"
DB_PASS="StrongPasswordHere!" # Change this!
DOMAIN_NAME="partkeepr.local" # Update this or use your IP

echo ">>> Updating system and installing dependencies..."
apt update && apt upgrade -y
apt install -y apache2 mariadb-server mariadb-client 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 unzip curl git

echo ">>> Securing MariaDB..."
mysql -u root <<EOF
CREATE DATABASE ${DB_NAME} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PASS}';
GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO '${DB_USER}'@'localhost';
FLUSH PRIVILEGES;
EOF

echo ">>> Installing Composer..."
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

echo ">>> Cloning PartKeepr from GitHub..."
cd /var/www/
git clone https://github.com/partkeepr/PartKeepr.git
chown -R www-data:www-data PartKeepr
cd PartKeepr
sudo -u www-data composer install --no-dev --optimize-autoloader

echo ">>> Setting permissions..."
chown -R www-data:www-data /var/www/PartKeepr
chmod -R 755 /var/www/PartKeepr

echo ">>> Creating Apache virtual host..."
cat <<EOL >/etc/apache2/sites-available/partkeepr.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/PartKeepr/web
ServerName ${DOMAIN_NAME}

<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>
EOL

a2ensite partkeepr.conf
a2enmod rewrite
systemctl reload apache2

echo ">>> Installation complete!"
echo "Access PartKeepr via: http://${DOMAIN_NAME} or your server IP."
echo "Run the setup wizard in the browser to finish configuration."


✅ Usage

  1. Save the script:
    nano install_partkeepr.sh
  2. Make it executable:
    chmod +x install_partkeepr.sh
  3. Run it:
    sudo ./install_partkeepr.sh

🌐 DNS or Hosts File Note

If you’re using partkeepr.local, you need to add this to your local /etc/hosts or DNS.

Example:

lua

192.168.1.100 partkeepr.local

Download ScriptDownload

support@payperitem.com, indabhar@gmail.com

Cloud OpenSource Website

Post navigation

Previous post
Next post

Related Posts

Microsoft 365 Enterprise plans 2025

April 8, 2025April 8, 2025

Office 365 (now branded as Microsoft 365) offers several Enterprise plans tailored to the needs of medium to large organizations. These plans include a mix of productivity apps, security features, compliance tools, and collaboration services. Here’s a breakdown of the main Microsoft 365 Enterprise plans as of 2025: 🔹 Microsoft…

Read More

Active Directory replication troubleshooting

April 3, 2025

🔍 Step 1: Identify the Replication Issue ⚠️ Step 2: Common Causes and Fixes 1️⃣ Network Connectivity Issues 2️⃣ DNS Misconfiguration 3️⃣ Time Sync Issues 4️⃣ USN Rollback / Tombstoned DC 5️⃣ Global Catalog (GC) & FSMO Role Issues 🔄 Step 3: Force Replication & Reset Services 🛠 Step 4:…

Read More

Configuring a JumpCloud policy for BYOD (Bring Your Own Device)

March 30, 2025April 2, 2025

Configuring a JumpCloud policy for BYOD (Bring Your Own Device) ensures security while allowing employees to use their personal devices. Below is a step-by-step guide to setting up JumpCloud policies to enforce security best practices for BYOD. 1. Define BYOD Security Requirements Before configuring JumpCloud, determine the security policies you…

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 }