News tagged with guide:

Migrate phpipam to new server

Here is a short guide on howto migrate phpipam to new server. Before migrating please make sure both (old and new) servers have the same phpipam code (version).

For this example we will use following assumptions, please adjust accordingly:

  • phpipam code will be in /var/www/phpipam directory
  • phpipam database name will be phpipam
  • MySQL username and password for phpipam will be phpipam / phpipampassword

... Read more

Written by MihaP on 2017/01/10 guide

Reset phpipam admin password

If you forgot or lost password for your admin account there are 2 ways you can restore it:

1.) With reset password script

Phpipam comes with php script that helps you reset your admin password in case you have forgotten it. Script is located in functions/scripts directory, script name is reset-admin-password.php. Just run it and follow instructions:

... Read more

Written by MihaP on 2017/01/10 guide

phpIPAM installation on CentOS 7

Here is a full guide on how to install phpIPAM on CentOS 7. This should work on all RHEL based distributuons. For this guide I used competely fresh install of CentOS 7, we will do step by step guide for all applications neede for phpIPAM to run.

I used the following assumptions:

  • No software is installed on server (Apache, MySQL, php)
  • Database and apache server will run on same machine
  • phpipam will run in server root directory (will be accessible via http://ip_address/), no vhosts
  • Prettified links will be used
  • Only bare minimum configuration will be done

... Read more

Written by MihaP on 2017/01/05 guide

Example API calls using CURL

Here is a short guide on how to create API calls using CURL for a reference. Result will be presented as json and in debug mode.

Enable API and create new API key

Go to settings in phpipam GUI and enable API module, than go to settings > API and create new API App, set all APP params as desired for you APP.


First we need to authenticate to API server by providing username/password from some valid phpipam account to receive token: ... Read more

Written by MihaP on 2017/01/02 guide api

phpIPAM API clients

To simplify API calls etc. I created a separate GitHub repository to have a collection of phpipam API clients for different languages etc. If you created a client and want to share it head over to and share yours !

To start I created a php class to work as API client, now available in repo in php-client folder: ... Read more

Written by MihaP on 2016/07/22 guide news api

SElinux policy for icmp checks

Many issues reported with scanning subnets and updating host statuses are related to SElinux being enabled. So far the solution was to completely disable SElinux, but this was more workaround than anything else. Robert was kind enough to share SElinux policy that should be used with phpipam if SElinux is enabled on your server.

Basically it permits the opening of raw IP sockets for non-root users, that are required for executing ping command.

1) Create the file and add the following to it: ... Read more

Written by MihaP on 2015/03/23 guide

Using custom fields in phpipam

phpipam has support for creating custom fields to be used in address, subnets, vlans, devices and users tables. This is useful when you need to add some custom data to your tables. You can set your custom fields under Administration > Custom fields.

It supports following types of data and it representations: ... Read more

Written by MihaP on 2015/02/24 guide

phpipam MySQL database optimizations

Having large amount of subnets (and other tables) on unoptimised MySQL database server can significantly increase page loads. To see which parameters need to be change I usually use mysqltuner perl script, which connects to database, analyses data and proposes which parameters need to be changed that are not optimally set based on current load. ... Read more

Written by MihaP on 2015/01/12 guide

Automatic host availability and discovery check

From version 0.9 on there is a option to automatically check statuses of configured hosts for selected subnets, and discovery of new hosts. I received some related questions about it, so here is a short description and guide for it.

Firstly, pcntl support for php cli is advised so phpipam can do parallel icmp checks, this greatly reduces time required for checking status. You can check if your installation is ok with following command: ... Read more

Written by MihaP on 2013/12/28 guide

phpIPAM installation on Debian 6.0.6

I have received a request for help on manual installation of phpIPAM on debian linux, so I decided to write a small how-to if anyone else has problems or is not so familiar with linux distributions and environment. I have used fresh default debian 6.0 as distribution because it is widely used, I believe on ubuntu linux procedure should be very similar, except maybe for locations of some config files.

I have used the following settings for installation:

  • Fresh debian installation
  • MySQL server not yet installed and no root pass configured
  • Apache not installed and configured
  • phpipam will be installed in default directory (no vhosts) under /phpipam/ folder

If you already have MySQL/apache set you can skip point 3.

Installation procedure: ... Read more

Written by MihaP on 2013/01/17 guide

phpIPAM in freeBSD ports

I recently noticed that phpIPAM is available also through FreeBSD ports (Thanks to Jake Smith):
cd /usr/ports/net-mgmt/phpipam && make install clean

Check your package managers, if it is available on some other unix distros post it here for reference...


Written by MihaP on 2013/01/02 guide