How to Install phpIPAM on Arch Linux

phpIPAM is an open-source IP address management (IPAM) tool that lets you easily manage and maintain your IP address space. In this tutorial, we will guide you through the process of installing phpIPAM on Arch Linux.

Prerequisites

Before you proceed with the installation of phpIPAM, you need to make sure that you have the following prerequisites installed on your system:

You can install these prerequisites using the following commands:

sudo pacman -S php mariadb

Installation

Now that you have the prerequisites installed on your system, you can proceed with the installation of phpIPAM.

  1. First, you need to download the latest stable release of phpIPAM from the official website using the following command:

    wget https://github.com/phpipam/phpipam/archive/master.zip
    
  2. Once the download is complete, extract the zip file using the following command:

    unzip master.zip
    
  3. Move the extracted folder to your webserver root directory. In this tutorial, we will use the default Apache webserver on Arch Linux, and the root directory is located at /srv/http/. You can move the extracted folder using the following command:

    sudo mv phpipam-master /srv/http/phpipam
    
  4. Now, you need to create a new database for phpIPAM. You can do this using the following commands:

    sudo mysql -u root -p
    

    This will open the MySQL prompt. Enter your MySQL root password when prompted.

    MariaDB [(none)]> CREATE DATABASE phpipam;
    MariaDB [(none)]> CREATE USER 'phpipam'@'localhost' IDENTIFIED BY 'your_password';
    MariaDB [(none)]> GRANT ALL PRIVILEGES ON phpipam.* TO 'phpipam'@'localhost';
    MariaDB [(none)]> FLUSH PRIVILEGES;
    
  5. Next, you need to configure the database settings in phpIPAM. Open the file /srv/http/phpipam/config.php using your favorite text editor:

    sudo nano /srv/http/phpipam/config.php
    

    Find the following lines in the file and update them with your database details:

    $db['host'] = "localhost";
    $db['user'] = "phpipam";
    $db['pass'] = "your_password";
    $db['name'] = "phpipam";
    
  6. Finally, you need to set the correct permissions for the uploads folder. You can do this using the following command:

    sudo chmod -R 777 /srv/http/phpipam/uploads/
    

    This will allow phpIPAM to create and store files in the uploads folder.

Accessing phpIPAM

You can now access phpIPAM by opening a web browser and navigating to http://localhost/phpipam/. If you installed phpIPAM on a remote server, replace localhost with the IP address or hostname of your server.

You will be prompted to log in with the default username and password:

Username: admin
Password: ipamadmin

After logging in, you should change the default password to something more secure.

Congratulations! You have successfully installed phpIPAM on Arch Linux. Feel free to explore the tool and start managing your IP address space.

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!