Operations 5 min read

Step‑by‑Step Installation and Configuration of phpIPAM on CentOS

This guide walks you through installing phpIPAM—a web‑based IP address management tool—by preparing the server environment, configuring Apache and MariaDB, downloading the source code, setting permissions, and completing the web‑based setup, all with detailed commands and screenshots.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Step‑by‑Step Installation and Configuration of phpIPAM on CentOS

1. Introduction

For operations staff, managing IP addresses and subnets manually in spreadsheets quickly becomes unmanageable as networks grow; an automated IP address management (IPAM) system provides real‑time monitoring and reporting.

2. About phpIPAM

phpIPAM is an open‑source web IP address management application written in PHP with a MySQL/MariaDB backend, using jQuery, AJAX and HTML5/CSS3 features.

3. System Preparation

Disable SELinux and reboot

sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && reboot

Stop the firewall systemctl stop firewalld Install required packages

yum install epel-release -y
yum install wget vim net-tools httpd mariadb-server php php-cli php-gd php-common php-ldap php-pdo php-pear php-snmp php-xml php-mysql php-mbstring git -y

4. Apache Configuration

Modify /etc/httpd/conf/httpd.conf (example changes):

ServerName localhost:80
<Directory "/var/www/html">
  Options FollowSymLinks
  AllowOverride all
  Order allow,deny
  Allow from all
</Directory>

Test the configuration: httpd -t -f /etc/httpd/conf/httpd.conf Set PHP timezone in /etc/php.ini: date.timezone = Asia/Shanghai Enable and start Apache:

systemctl enable httpd
systemctl start httpd

5. MariaDB Initialization

Start and enable MariaDB:

systemctl start mariadb
systemctl enable mariadb

Secure the installation (run the interactive script):

mysql_secure_installation

6. Download and Prepare phpIPAM

Clone the repository and checkout version 1.4:

cd /var/www/html
git clone https://github.com/phpipam/phpipam.git .
git checkout 1.4

Set file ownership for Apache: chown apache:apache -R /var/www/html Copy the default configuration file and rename it:

cp /var/www/html/config.dist.php /var/www/html/config.dist.php.bak
mv /var/www/html/config.dist.php /var/www/html/config.php

Edit /var/www/html/config.php to set the base path: define('BASE', "/phpipam"); Restart Apache to apply changes:

systemctl restart httpd

7. Web Installation

Open http://<em>server‑IP</em>/phpipam in a browser, select a new installation, create the phpIPAM database, and follow the on‑screen wizard to configure the admin account and initial settings.

8. Post‑Installation Usage

After logging in, you can:

Switch the admin interface language to Chinese (requires logout and login again).

Create, edit, and delete subnets.

View subnet details and edit individual IP entries.

All steps are illustrated with screenshots in the original article.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ApacheCentOSMariaDBinstallation guideIP address managementphpIPAM
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.