Joseph Matino
  • Servers
  • Web Dev
  • Gaming
    • PC Gaming
  • Guides
  • Security
Font ResizerAa
Joseph MatinoJoseph Matino
Font ResizerAa
Search
  • Servers
  • Web Dev
  • Gaming
    • PC Gaming
  • Guides
  • Security
How To Forward Calls And Messages On Safaricom Effectively

How to forward Calls and Messages On Safaricom Effectively

Joseph Matino Joseph Matino 9 months ago
FacebookLike
InstagramFollow
YoutubeSubscribe
TiktokFollow
Follow US
  • Terms & Conditions
  • Privacy Policy
  • Contact
© Joseph Matino. All Rights Reserved.

Home – Blog – Troubleshooting

AlmaLinux Server Unreachable After cPanel install and Reboot

Joseph Matino
Last updated: August 26, 2024 10:47 am
By Joseph Matino
Almalinux Server Unreachable After Cpanel Install And Reboot

Setting up a cPanel server on AlmaLinux is usually a smooth process, but it can sometimes come with unexpected challenges, particularly with network configuration. During a recent project on AlmaLinux 8, I encountered a frustrating issue: after successfully installing cPanel, the server became unreachable following a reboot. Despite several attempts, including reinstalling the server, the problem persisted.

This issue, which has been noted particularly with AlmaLinux 8, often occurs because cPanel turns off the default NetworkManager service and switches to a traditional network service during installation. This change can cause problems, especially if custom network settings are already in place.

Article Content
Common Network Issues After cPanel Installation on AlmaLinuxTroubleshooting Network Issues After cPanel Installation on AlmaLinuxStep 1: Locate the Network Configuration FileStep 2: Check and Correct Network SettingsStep 3: Ensure NetworkManager is Installed and RunningStep 4: Restart the Network ServiceStep 5: Configure the FirewallStep 6: Verify Network ConnectivityWhen to Consider Professional Assistance

I eventually resolved the issue by accessing the Proxmox console and turning NetworkManager back on, which immediately restored the server’s connectivity. This experience showed me the importance of managing network settings carefully when working with AlmaLinux, particularly when custom setups are involved.

For those managing multiple IPs on their server, understanding how to configure the network is even more important. You may find it useful to manually configure multiple IPs in AlmaLinux to ensure everything runs smoothly, which can help prevent similar network issues from happening.

If you are dealing with similar issues on AlmaLinux, whether using version 8 or another version, this guide may provide the solution you need. The steps and tips offered here aim to help you avoid or resolve the network issues that can arise after a cPanel installation.

Common Network Issues After cPanel Installation on AlmaLinux

When you install cPanel on AlmaLinux, various network-related issues can arise. These problems often result from changes made during the installation process, particularly when the default NetworkManager service is disabled. Here are some of the common issues you might encounter:

  1. IP Address Not Binding: After installing cPanel, your server might fail to bind its IP address correctly, leading to a loss of network connectivity and making the server unreachable. This often occurs because of conflicting network settings introduced during the installation.
  2. Firewall Blocks: The firewall may block essential ports needed for services such as SSH, HTTP, and DNS after or during cPanel installation. This can prevent access to cPanel and other critical services due to alterations in firewall settings or conflicts with existing rules.
  3. Incorrect DNS Settings: Misconfigured DNS settings can cause domain resolution issues, making your server and its hosted sites inaccessible. This typically happens if DNS settings are not correctly applied or are overwritten during the cPanel installation, especially when NetworkManager is disabled.
  4. Network Interface Configuration Errors: Misconfigurations in the network interface can result in the server becoming unreachable. This issue frequently arises if the network service does not correctly manage the interface settings after cPanel installation, particularly when NetworkManager is replaced.
  5. cPanel/WHM Ignoring the Ethernet Interface: In some cases, cPanel or WHM might not recognize the ethernet interface, leading to connectivity issues. This usually occurs due to improper setup in the network configuration files or if the network service fails to identify the interface after installation.

Troubleshooting Network Issues After cPanel Installation on AlmaLinux

Now that you are familiar with the common network issues that can arise after installing cPanel on AlmaLinux, it is time to move on to troubleshooting. If you are new to managing IP addresses or need some additional context, you might find it useful to check out this guide on preparing your IP information. It covers the basics that will help you understand the steps ahead.

If your server is not binding its IP address after installing cPanel, resulting in a loss of network connectivity, here’s what you can do:

Step 1: Locate the Network Configuration File

The first thing you need to do is find the file that controls your network settings. This file is usually located in the /etc/sysconfig/network-scripts/ directory. The file name will likely be something like ifcfg-eth0, depending on your network interface.

Open the file using a text editor. I assume by now you are either using nano or a similar text editor, so the command to open the file would be:

nano /etc/sysconfig/network-scripts/ifcfg-eth0

Step 2: Check and Correct Network Settings

Inside the configuration file, you will find the settings for your IP address, subnet mask, gateway, and DNS servers. These settings are essential for your server to connect to the network. If you are unsure about the correct values, you should consult your hosting provider or refer to the IP configuration guide mentioned earlier.

After verifying that the settings are correct, save the file. In nano, you can save your changes by pressing Ctrl + O, and then exit by pressing Ctrl + X.

Step 3: Ensure NetworkManager is Installed and Running

NetworkManager is responsible for managing your server’s network interfaces, making it easier to handle network configurations, especially in environments with multiple interfaces or complex setups. If NetworkManager is not installed, you can install it using:

yum install NetworkManager -y

Once installed, ensure that NetworkManager is active and set to start automatically when your server boots:

systemctl start NetworkManager
systemctl enable NetworkManager

Step 4: Restart the Network Service

After ensuring that NetworkManager is managing your network configurations, you need to restart the network service to apply the changes. Restarting the network service ensures that any new settings are correctly applied:

systemctl restart network

Step 5: Configure the Firewall

Your firewall is essential for security, but it can also block important ports if not configured correctly. After cPanel installation, firewall rules might inadvertently block necessary ports like SSH, HTTP, and HTTPS, leading to connectivity issues.

If you are using UFW (Uncomplicated Firewall), you can check the status of your firewall and see which ports are currently allowed:

sudo ufw status

To open necessary ports, such as those for SSH (port 22), HTTP (port 80), and HTTPS (port 443), you can use the following commands:

sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload

For iptables users, you can view the current firewall rules with:

sudo iptables -L

If you find that important ports are blocked, you can add rules to allow them:

sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
sudo iptables-save

If you encounter issues, you might temporarily disable the firewall to troubleshoot, but remember to re-enable it after resolving the issue:

sudo ufw disable  # UFW
sudo iptables -F  # iptables

Step 6: Verify Network Connectivity

Finally, ensure that your server is now able to connect to the network. You can test this by pinging an external server, such as Google’s DNS:

ping -c 4 8.8.8.8
 Almalinux Server Unreachable After Cpanel Install And Reboot
Successful Network Connectivity Test: After troubleshooting, I confirmed that the server is properly connected to the network by running a ping test, as shown in the results.

If you see responses, it means your server is successfully connected.

Just remember, disabling the firewall should only be a temporary measure to prevent setup issues. Once you have everything running smoothly, it is important to re-enable your firewall and configure it so that only the necessary ports are open. Maintaining server security is vital, but it is equally important to ensure that your server functions correctly.

When to Consider Professional Assistance

Even after following all the steps meticulously, you might find that your AlmaLinux server is still not behaving as expected. This is not uncommon, and it is perfectly normal to encounter challenges along the way.

If you have reviewed everything and your server is still not working as it should, it might be time to seek professional assistance. An experienced professional can offer a fresh perspective and may identify solutions that are not immediately obvious.

Finally, if this guide has been helpful or if you are still experiencing difficulties, I encourage you to share your thoughts in the comments below. Your feedback not only helps refine this guide but also provides support to others who may be facing similar challenges.

Share This Article
Facebook Twitter Whatsapp Whatsapp Reddit Copy Link
Joseph Matino
By Joseph Matino
Follow:
I'm a full-stack web developer from Nairobi, Kenya, with over six years of experience. My expertise lies in WordPress development, server management, and web security, with a focus on optimizing WordPress site performance and transforming them into apps. I also write about tech topics in web development, server management, and PC gaming. Outside of work, you’ll find me immersed in gaming.
Leave a comment Leave a comment
Subscribe
Notify of
guest
guest
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

What's New

How To Secure CyberPanel From Recent Cyber Attacks

Security Servers 6 months ago

AlmaLinux Server Unreachable After cPanel install and Reboot

Troubleshooting Servers 9 months ago

How To Set Up Shared FC-SAN With Proxmox: All Steps

Servers 8 months ago

You Might also Like

Top 5 Ssh Client Managers For Windows

Best SSH Client Managers For Windows To Try Out

In my work with servers, jumping between different SSH connections is part of the daily…

Joseph Matino 1 year ago
How To Customize Linux Motd Screen On Popular Distributions

How to Customize Linux MOTD on AlmaLinux, Ubuntu, Debian

When setting up a server, I always customize the Message of the Day (MOTD), which…

Joseph Matino 9 months ago
How To Increase Disk Space For Lxc Container Proxmox

Manage Disk Space for LXC Containers and VMs in Proxmox VE

Most of the time when using Proxmox, we encounter situations where LXC containers or virtual…

Joseph Matino 8 months ago
Assigning Multiple Ips In Almalinux 8 Manual Fix

Fix: How To Manually Configure Multiple IPs in AlmaLinux

Setting up a server with multiple IP addresses is a common task, often handled by…

Joseph Matino 9 months ago
joseph matino logo

As a passionate full-stack developer, I bring my A++ game to WordPress, server management, web optimization, and converting websites to apps, ensuring your sites are secure and shine online. Outside of work, I enjoy gaming, where every level beaten is a new skill learned.

Quicklinks

  • Terms & Conditions
  • Privacy Policy
  • Cookie Policy
  • Contact
  • About
Hire Me

Connect

Follow Me
wpDiscuz
Joseph Matino
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Joseph Matino
Manage your privacy

I use cookies and similar technologies to enhance your experience on this site. By consenting, you allow me to process data like your browsing behavior and unique IDs. If you choose not to consent or later withdraw your consent, some features of the site may not function properly.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}