NetworkManager Problem on WHM Install

2017-12-30 23:29:44 586 (ERROR): ********************* ERROR *********************
2017-12-30 23:29:44 587 (ERROR): NetworkManager is installed and running, or
2017-12-30 23:29:44 588 (ERROR): configured to startup.
2017-12-30 23:29:44 589 (ERROR):
2017-12-30 23:29:44 590 (ERROR): cPanel does not support NetworkManager enabled
2017-12-30 23:29:44 591 (ERROR): systems. The installation cannot proceed.
2017-12-30 23:29:44 592 (ERROR):
2017-12-30 23:29:44 593 (ERROR): See for more
2017-12-30 23:29:44 594 (ERROR): information on disabling Network Manager.
2017-12-30 23:29:44 595 (ERROR): ********************* ERROR *********************
2017-12-30 23:29:44 596 (FATAL): Exiting…

– Deactivate firewall

iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service

– Deactivate NetworkManager

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service

Your system is missing the file /etc/fstab.

You may get the following warning when you try to install WHM into your server.

Your system is missing the file /etc/fstab. This is an essential system file that is part of the base system.
Please ensure the system has been properly installed.

Here are the solution.

#cat /proc/mounts > /etc/fstab
#chmod 644 /etc/fstab

SSH brute force protection

SSH Failed Login Attemps

You can see the last failed login attemps

tail -f /var/log/secure

To Change Port

Open sshd_config and change the port number.

service iptables stop

sudo vi /etc/ssh/sshd_config

service sshd restart

If you get an error about restarting sshd, please follow the steps.

yum -y install policycoreutils-python
semanage port -a -t ssh_port_t -p tcp PORT_NUMBER

PHP fopen Reading a Remote File

You need to chech that allow_url_fopen is On or Off.

if (ini_get(‘allow_url_fopen’) == ‘1’) {
echo “allow_url_fopen = On”;
} else {
echo “allow_url_fopen = Off”;

If allow_url_fopen is Off, you should open php.ini and convert allow_url_fopen = Off to allow_url_fopen = On