How to Install PartKeepr on macOS

PartKeepr is an inventory management software that allows you to keep track of electronic parts, suppliers, and projects. In this tutorial, you will learn how to install PartKeepr on macOS.

Prerequisites

Before we begin, make sure that you have the following:

Step 1: Download and install PHP

PartKeepr requires PHP 5.5 or higher to be installed on your system. To check if PHP is already installed on your Mac, open the terminal and enter the following command:

php -v

If PHP is not installed, use the following command to install it using Homebrew:

brew install php@7.4

Step 2: Download and install Apache

PartKeepr also requires Apache web server to be installed on your system. To check if Apache is already installed on your Mac, open the terminal and enter the following command:

apache2ctl -v

If Apache is not installed, use the following command to install it using Homebrew:

brew install httpd

After installation, start Apache by running the following command:

sudo apachectl start

Test to see if Apache is working by opening a web browser and visiting http://localhost. You should see the Apache default web page.

Step 3: Download and install PartKeepr

Next, download PartKeepr from the official website at https://www.partkeepr.org. Choose the latest version and click on the download button.

Once the download is complete, extract the files to a directory of your choice. For example, you can extract the files to /usr/local/apache2/htdocs/partkeepr.

Step 4: Configure PartKeepr

To configure PartKeepr, you need to create a configuration file. Copy the provided config_default.php file to config.php and edit it to suit your needs. You can use the following command in the Terminal to copy the file:

cp /path/to/partkeepr/config_default.php /path/to/partkeepr/config.php

Make sure to modify the following settings in the config.php file:

Step 5: Create a PartKeepr Database

Create a new database for PartKeepr in PostgreSQL using the following command, replacing partkeepr with the name of your database:

createdb partkeepr

Next, create the database schema using the following command:

php /path/to/partkeepr/app/console doctrine:schema:create

Step 6: Start PartKeepr

To start PartKeepr, open your web browser and navigate to http://localhost/partkeepr. You should see the login page.

Conclusion

In this tutorial, we have learned how to install PartKeepr on macOS. With this software, you can easily manage your electronic parts inventory and keep track of your projects.

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!