Install the {php}IPAM project on Ubuntu 18.04

Install Apache2 webserver + PHP prerequisites:

  1. Run the following command (The “-y” is to confirm all the prompts that might pop):
sudo apt-get install apache2 php libapache2-mod-php php-cli php-pdo php-mbstring php-gmp php-ldap php-simplexml php7.2-xml php-json php-net-socket php7.2-common openssl php-curl php7.2-gd php7.2-mysql php-pear -y
sudo mkdir /var/www/public_html
sudo mkdir /var/www/public_html/phpipam
sudo chown -R $USER:$USER /var/www/public_html/phpipam
sudo chmod -R 755 /var/www/public_html/phpipam
<VirtualHost *:80>
ServerAdmin your.name@yourcomapny.com
DocumentRoot "/var/www/public_html/phpipam"
ServerName phpipam.yourcompany.com
<Directory "/var/www/public_html/phpipam">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog "/var/log/phpipam-error_log"
CustomLog "/var/log/phpipam-access_log" combined
</VirtualHost>

Install MySQL DB:

  1. Run the following to install MySQL:
sudo apt install mysql-server -y
sudo mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'very_strong_password';mysql> FLUSH PRIVILEGES;
mysql -u root -p
create database phpipam;
CREATE USER 'phpipam'@'%' IDENTIFIED BY 'StrongPass123!';
GRANT ALL PRIVILEGES ON *.* TO 'phpipam'@'%' WITH GRANT OPTION;

Install and configure the project:

  1. Clone the git to the directory created earlier:
sudo git clone --recursive https://github.com/phpipam/phpipam.git /var/www/public_html/phpipam
sudo cp /var/www/public_html/phpipam/config.dist.php /var/www/public_html/phpipam/config.php
sudo nano /var/www/public_html/phpipam/config.php
v$db['host'] = "localhost";
$db['user'] = "phpipam";
$db['pass'] = "StrongPass123!";
$db['name'] = "phpipam";
mysql -u root -p phpipam < db/SCHEMA.sql
sudo ln -s /etc/apache2/sites-available/phpipam.conf /etc/apache2/sites-enabled/phpipam.conf
sudo a2enmod rewrite
sudo service apache2 restart

What’s next:

  1. Customize the dashboard, maybe upload your company’s logo
  2. Set SMTP server
  3. Set LDAP authentication
  4. Change the listening interface from HTTP to HTTPS

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Design Decisions — Rick Flag

How to cache your Personal Access Token (PAT) in Linux environment

Head First Java Edition II Article.

Day 12 — Reverse Number (Overflow Handled)

CRUD Actions

Mobie Monday — Vol 46

Golang Fantasy Hunting App, 1: Deploying a Golang App to Lambda on AWS

Request to join as a Content Creator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nadav Svirsky

Nadav Svirsky

More from Medium

Creating a VHOST on an Ubuntu Server

Changes made to password.conf file

Install and configure Elastic Stack — II

Linux Administration ( part 1): creating users in Linux

hackpeas

Install Fragments 2.0 on Ubuntu / Rocky Linux & Fedora