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

Migrating from Google Workspace to Office 365

April 7, 2025

Migrating from G Suite (now known as Google Workspace) to Microsoft Office 365 (O365) can be a significant undertaking. Below is a comprehensive step-by-step guide to help ensure a smooth transition. Step 1: Planning the Migration Step 2: Prepare Google Workspace Step 3: Setup Office 365 Step 4: Migrate Data…

Read More

Identity and Access Management on AWS

April 16, 2025April 18, 2025

Identity and Access Management (IAM) on AWS is a fundamental service that helps you securely manage access to AWS services and resources. It enables you to control who is authenticated (signed in) and authorized (has permissions) to use AWS resources. Here’s a breakdown of the core components and best practices:…

Read More

Outlook keeps prompting you for your Gmail password during SMTP setup

April 24, 2025

1. Enable IMAP/SMTP in Gmail Settings 2. Use App Password (if 2-Step Verification is enabled) If you use 2-Step Verification in Gmail: Without this, Gmail will reject access attempts even if the password is correct. 3. SMTP & IMAP Settings for Gmail Make sure these settings are correct in Outlook:…

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 }