Install phpIPAM 1.0 on Ubuntu Server 13.10

phpIPAM is probably the best open source IP address management tool out there. I think it’s created by just one guy, but it feels like a fully featured commercial product.

Let’s get started with the installation!

Install Ubuntu Server 13.10 amd64
Update system with apt-get update/upgrade

Install the rest of LAMP (Linux, Apache, MySQL, PHP)

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5
sudo apt-get install php5-mysql
sudo apt-get install php5-gmp
sudo apt-get install php-pear
sudo apt-get install php5-ldap
sudo apt-get install php5-json
sudo a2enmod rewrite

Set your date.timezone in:


Enable pcntl in /etc/php5/cli/php.ini by removing the following from disable_functions:


Enable .htaccess for /var/www/phpipam by adding the following to /etc/apache2/sites-enabled/000-default.conf

<Directory /var/www/phpipam>
Options FollowSymLinks
AllowOverride all
Require all granted

Restart Apache

Download phpIPAM from and untar to /var/www/

Create the mysql database for phpipam:

mysql -u root -p
create database phpipam;

Import database SCHEME.sql file:

mysql -u root -p phpipam < /var/www/phpipam/db/SCHEMA.sql

Create user for database interaction from website and grant permissions to ipam tables. Replace “username” and “password” with the actual credentials you want to use.

mysql -u root -p
grant ALL on phpipam.* to username@localhost identified by “password”;

Edit /var/www/phpipam/config.php

$db[‘host’] = “localhost”;
$db[‘user’] = “username”;
$db[‘pass’] = “password”;
$db[‘name’] = “phpipam”;

define(‘BASE’, “/phpipam/”);

Edit /var/www/phpipam/.htaccess
RewriteBase /phpipam/

Optional – Check if hosts are alive every 15 minutes by adding adding the following to /etc/crontab:

*/15 * * * *    root    /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php

Point your browser to http://yourip/phpipam and login with Admin/ipamadmin


One thought on “Install phpIPAM 1.0 on Ubuntu Server 13.10”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s