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.

Authentication

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 https://github.com/phpipam/phpipam-api-clients and share yours !

To start I created a php class to work as API client, now available in repo in php-client folder:
https://github.com/phpipam/phpipam-api-clients/tree/master/php-client ... Read more

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

phpipam v1.2 released

Dear all, I am happy to announce new release of phpipam IP address management – version 1.2.

For this release backend code was completely rewritten, for database connections now pdo has replaced mysqli. It also fixes lots of bugs, parametized SQL queries and brings lots of new features. ... Read more

Written by MihaP on 2016/01/29 news release

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 http_ping.tt 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