How to Install phpIPAM on OpenSUSE Latest

phpIPAM is a popular open-source web-based IP address management tool that allows network administrators to organize and manage their IP addresses, subnets, VLANs, and other network components efficiently. In this step-by-step tutorial, we will show you how to install phpIPAM on OpenSUSE latest version.

Prerequisites

Before starting with the installation of phpIPAM, please make sure that you have the following prerequisites:

  1. A freshly installed OpenSUSE latest system.
  2. Apache web server installed and running.
  3. PHP version 7.0 or higher installed on your system.
  4. MySQL or MariaDB database server installed on your system.

Step 1 - Install Required Packages

Before installing phpIPAM, make sure that your system is up to date by running the following command:

sudo zypper update

Next, install the required packages for phpIPAM by running the following command:

sudo zypper install git apache2 php7 php7-ctype php7-posix php7-curl php7-gd php7-json php7-mbstring php7-mysql php7-pdo php7-pdo_mysql php7-sockets php7-xml php7-xmlreader php7-zip mariadb mariadb-client mariadb-server

Step 2 - Configure the Database

Before installing phpIPAM, we need to create a new database and add a user for it. To do so, follow these steps:

  1. Log in to MySQL/MariaDB with root privileges:

    sudo mysql -u root
    
  2. Create a new database by running the following command:

    CREATE DATABASE phpipam;
    
  3. Create a new user and assign a password to it:

    GRANT ALL PRIVILEGES ON phpipam.* TO 'phpipamuser'@'localhost' IDENTIFIED BY 'your_password_here';
    
  4. Flush the privileges and exit:

    FLUSH PRIVILEGES;
    exit;
    

Step 3 - Clone the phpIPAM Repository

Clone the phpIPAM repository from Github using the following command:

sudo git clone --recursive https://github.com/phpipam/phpipam.git /var/www/html/phpipam

Step 4 - Configure Apache

Next, we need to configure Apache for phpIPAM. To do so, follow these steps:

  1. Open the Apache configuration file:

    sudo nano /etc/apache2/httpd.conf
    
  2. Add the following lines at the end of the file:

    <Directory "/var/www/html/phpipam">
        AllowOverride All
        Require all granted
    </Directory>
    
  3. Restart the Apache service to apply the changes:

    sudo systemctl restart apache2.service
    

Step 5 - Configure phpIPAM

Now, we need to configure phpIPAM by editing the configuration file located in the config.php file. To do so, follow these steps:

  1. Change the directory to the phpipam directory:

    cd /var/www/html/phpipam
    
  2. Make a copy of the example configuration file:

    sudo cp config.dist.php config.php
    
  3. Open the config.php file with your favorite text editor:

    sudo nano config.php
    
  4. Change the following parameters as per your requirements:

    $db['host'] = 'localhost';
    $db['user'] = 'phpipamuser';
    $db['pass'] = 'your_password_here';
    $db['name'] = 'phpipam';
    

Step 6 - Access phpIPAM

Open your favorite web browser and navigate to the server's IP address or hostname followed by /phpipam. You will see the phpIPAM login page.

Use the default username and password to log in to the system:

Username: admin
Password: ipamadmin

Conclusion

That's it! You have successfully installed phpIPAM on your OpenSUSE latest system. You can now start managing your IP addresses and network components easily with phpIPAM.

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!