How to Configure an Additional IP Address

How to Configure an Additional IP Address

Applies to: AlmaLinux 8 & 9, Rocky Linux 8 & 9

For Digitalberg VPS & Dedicated Server Clients


To configure an additional IP address on your Digitalberg server, follow the steps below carefully. This guide assumes you are using NetworkManager.

Step 1: Identify Your Main Network Interface

Run the following command:

ip a

Note the name of the main network interface. This is usually something like eth0.


Step 2: Create a New Configuration File

Each additional IP requires a separate configuration file in the /etc/sysconfig/network-scripts/ directory.

Use this format for the file name:

ifcfg-NETWORK_INTERFACE:ID

For example, for the first alias on eth0, use:

ifcfg-eth0:0

Create the file using:

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

Step 3: Add the Configuration

Paste the following lines into the new file, replacing the values with your actual interface and IP:

DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=none  # Use "static" for CentOS
IPADDR=ADDITIONAL_IP
NETMASK=255.255.255.255
BROADCAST=ADDITIONAL_IP

Save and close the file.


Step 4: Restart the Network Interface

Apply the changes with:

sudo systemctl restart NetworkManager

Troubleshooting

  • If the additional IP doesn’t respond after restarting NetworkManager, try rebooting the server.
  • You can also test the configuration by setting the IP manually:
ifconfig eth0:0 ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP up

Then try pinging the IP from an external device.


Still Not Working?

If you’re still facing issues:

  1. Ensure the IP is correctly routed and assigned to your server from the Digitalberg client panel.
  2. Confirm that your firewall or security rules aren’t blocking traffic to the new IP.
  3. If you’re unsure, feel free to open a support ticket via your Digitalberg dashboard and share the following:
  • Your OS name and version
  • Name of the interface used
  • The full content of the new config file

Step-by-Step Guide to Install IonCube Loader on Debian with PHP 8.2 in Virtualmin for WHMCS

Step 1: Update Your System

Before proceeding, ensure your system is up to date. Run the following commands:

sudo apt update && sudo apt upgrade -y

Step 2: Download the Latest IonCube Loader

Download the latest version of IonCube for Linux (64-bit):

cd /usr/local/src
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract the archive:

tar -xvzf ioncube_loaders_lin_x86-64.tar.gz

Step 3: Find the PHP Extension Directory

Determine the PHP extension directory by running:

php -i | grep extension_dir

This will return a path, such as:

extension_dir => /usr/lib/php/20220829

Make a note of this path.

Step 4: Move IonCube Loader to PHP Extensions Directory

Move the appropriate IonCube loader file to the PHP extension directory:

sudo cp ioncube/ioncube_loader_lin_8.2.so /usr/lib/php/20220829/

Step 5: Find the Correct PHP INI File

To locate the active php.ini file, use:

php -i | grep "Loaded Configuration File"

You should see an output like:

Loaded Configuration File => /etc/php/8.2/apache2/php.ini

Make a note of this path.

To find the php.ini file used by the PHP CLI, run:

php -i | grep 'php.ini'

Example output:

Configuration File (php.ini) Path => /etc/php/8.2/cli
Loaded Configuration File => /etc/php/8.2/cli/php.ini

This confirms the exact php.ini file used by the CLI.

Step 6: Edit PHP.ini to Enable IonCube

Open the php.ini file in a text editor:

sudo nano /etc/php/8.2/apache2/php.ini

Add the following line at the very top:

zend_extension = "/usr/lib/php/20220829/ioncube_loader_lin_8.2.so"

Save and exit (Press CTRL + X, then Y, then Enter).

Do the same for the CLI php.ini:

sudo nano /etc/php/8.2/cli/php.ini

Add the same zend_extension line at the top.

Step 7: Restart Apache and PHP-FPM

Restart the webserver and PHP service for changes to take effect:

sudo systemctl restart apache2
sudo systemctl restart php8.2-fpm

Step 8: Verify IonCube Installation

To confirm IonCube is installed correctly, run:

php -v

If installed correctly, you should see something like:

PHP 8.2.10 (cli) (built: Sep 7 2023 08:42:18) (NTS)
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube.com

Step 9: Enable IonCube for Virtualmin

If you are running Virtualmin with multiple PHP versions, ensure the loader is enabled for all versions. Edit the respective php.ini file inside:

/etc/php/8.2/fpm/php.ini
/etc/php/8.2/cli/php.ini
/etc/php/8.2/apache2/php.ini

Add the same zend_extension line and restart PHP and the web server.

Step 10: Test WHMCS Compatibility

Once IonCube is installed, navigate to WHMCS admin → System Health Status to confirm that IonCube is detected and running properly.

You have now successfully installed IonCube Loader for PHP 8.2 in Virtualmin for WHMCS! 🚀

How to Install Virtualmin and Webmin Control Panel – A Complete Guide

Are you seeking a powerful, free control panel to manage your dedicated server or VPS? Virtualmin and Webmin offer advanced server management with a user-friendly interface. This guide will help you install Virtualmin and Webmin step-by-step with all the necessary commands. 🚀

Why Choose Virtualmin & Webmin?

Free & Open-Source – No extra cost for a powerful control panel.
Feature-Rich – Includes DNS, database, email, and web server management.
Lightweight & Secure – Uses minimal resources with strong security.
Easy Management – Web-based interface for easy configuration.

Step 1: Update Your Server

Before installing Virtualmin, ensure your server is up-to-date.

sudo apt update && sudo apt upgrade -y

For CentOS/Rocky Linux:

yum update -y

Step 2: Download & Install Virtualmin

Run the following command to download and install Virtualmin:

wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo chmod +x install.sh
sudo ./install.sh

The script will prompt you for input—choose default settings for an optimized setup.

Step 3: Access Virtualmin & Webmin

Once the installation is complete, access the Webmin control panel in your browser:

https://your-server-ip:10000/

🔑 Login Credentials:

  • Username: root
  • Password: Your root password

Step 4: Configure Virtualmin for Your Server

  1. Set Up Hostname: hostnamectl set-hostname yourdomain.com
  2. Add a Website:
    • Go to Virtualmin > Create Virtual Server.
    • Enter your domain name and settings.
    • Click Create Server.

Step 5: Secure Your Server

🔒 Enable Firewall

sudo ufw enable
sudo ufw allow 10000/tcp

🔑 Install an SSL Certificate (Let’s Encrypt)

  • In Virtualmin, navigate to Server Configuration > SSL Certificate.
  • Click Let’s Encrypt > Request Certificate.

How DigitalBerg Installs Virtualmin for You

If you buy a dedicated server from DigitalBerg, we handle the Virtualmin & Webmin installation for you! Our process includes:

Pre-configured Virtualmin/Webmin setup
Optimized security & performance settings
Full SSL and Firewall protection enabled
24/7 expert support for server management

🚀 Get a dedicated server today and let our team configure everything for you!

Conclusion

You have successfully installed Virtualmin and Webmin on your server! 🎉 Now, you can easily manage your websites, databases, and emails.

💡 Need a powerful dedicated server? Check out DigitalBerg’s dedicated servers for high performance and security.