phpIPAM is an open-source IP address management (IPAM) tool written in PHP programming language. It is designed to manage large IP address networks and to track IP addresses, subnets, VLANs, and much more. This guide will walk you through the steps required to install phpIPAM on the latest version of Fedora Server.
Before we begin with the installation process, make sure that your Fedora Server system meets the following prerequisites:
The first step is to install the necessary dependencies that phpIPAM requires to run. Use the following command to install the required packages:
sudo dnf install epel-release httpd mariadb-server php php-mysqlnd php-ldap php-gd php-xml php-mbstring php-json php-pecl-zip -y
Once installed, start and enable Apache and MariaDB services:
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
You can download the latest phpIPAM release directly from the official website or via the command line using the following command:
sudo wget https://github.com/phpipam/phpipam/releases/download/1.5.2/phpipam-1.5.2.tar
Once you have downloaded the phpIPAM tarball file, extract it to the Apache web root directory /var/www/html/
using the following command:
sudo tar -xf phpipam-1.5.2.tar -C /var/www/html/
Change the ownership of the extracted files to the apache
user:
sudo chown -R apache:apache /var/www/html/phpipam
Next, update the Apache configuration file /etc/httpd/conf/httpd.conf
and add the following lines at the bottom of the file:
<Directory "/var/www/html/phpipam">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Save and close the file, and then restart the Apache service:
sudo systemctl restart httpd.service
Next, create a new MySQL/MariaDB database and user for phpIPAM. Use the following command to open the MariaDB shell:
sudo mysql -u root -p
Once you are logged in, create a new database and user for phpIPAM using the following commands:
CREATE DATABASE phpipam;
CREATE USER 'phpipam'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON phpipam.* TO 'phpipam'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Replace password
with your desired password for the phpIPAM user.
Open your web browser and navigate to http://<server-ip>/phpipam/install/
to start the phpIPAM installation process. Follow the on-screen instructions to complete the installation. When prompted, enter the database connection details that you created in the previous step.
Once the installation is complete, update the file permissions of the config.php
file inside the phpIPAM installation directory.
sudo chmod 440 /var/www/html/phpipam/config.php
phpIPAM is now installed and ready to use. Navigate to http://<server-ip>/phpipam/
in your web browser to access the phpIPAM web interface.
You can log in using the default username admin
and password ipamadmin
. We recommend that you change the password immediately after logging in.
This concludes our tutorial on how to install phpIPAM on the latest version of Fedora Server. Happy IP address management!
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!