How to Install phpIPAM on Debian Latest

phpIPAM is an open-source IP address management tool that allows network administrators to keep track of and manage IP addresses effectively. In this tutorial, we are going to learn how to install phpIPAM on Debian latest in a few simple steps.

Prerequisites

Before we begin, you will need to have the following:

Step 1: Update your system

Log in to your Debian system with your sudo user and update the system by running the following commands:

sudo apt update
sudo apt upgrade

This will ensure that all packages are up-to-date.

Step 2: Install Required Dependencies

We need to install some required packages for phpIPAM to function correctly. Install the required dependencies by running the following command:

sudo apt install apache2 mariadb-server php php-mysqlnd php-ldap php-gd php-curl git composer

Step 3: Configure MariaDB

phpIPAM requires a database to store IP addresses, hostnames, and other related data. We will use MariaDB for the database.

Start by logging in to MariaDB with the following command:

sudo mysql -u root -p

Once you are logged in, create a database for phpIPAM:

CREATE DATABASE phpipam;

Create a new user and grant all privileges to the phpipam database:

CREATE USER 'phpipam'@'localhost' IDENTIFIED BY '<your-password>';
GRANT ALL PRIVILEGES ON phpipam.* TO 'phpipam'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Exit from MariaDB:

exit

Step 4: Clone and Install phpIPAM

Download and clone the phpIPAM source code from the official GitHub:

sudo git clone https://github.com/phpipam/phpipam.git /var/www/html/phpipam

Change the owner of the phpIPAM directory to the Apache user, which is www-data:

sudo chown -R www-data:www-data /var/www/html/phpipam

Finally, install phpIPAM by running the following commands:

cd /var/www/html/phpipam/
sudo composer install --no-dev
sudo phpenmod pdo_mysql
sudo service apache2 restart

Step 5: phpIPAM Installation Wizard

After completing the installation, open your web browser, and navigate to:

http://your-server-ip/phpipam/

You will be redirected to the phpIPAM installation wizard page. Follow the prompts and enter your database details:

After completing the installation process, you can log in to the phpIPAM web interface by navigating to:

http://your-server-ip/phpipam/

You can now add, update, and manage your IP addresses effectively.

Conclusion

In this tutorial, we have learned how to install phpIPAM on Debian latest. You can now easily manage your IP addresses and keep track of your network more efficiently.

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!