CentOS Web Panel interface allows you to change the root password of your server, which is also the admin CWP password.
To change the root password (CWP admin password):
Access your CWP installation
Go to Server Settings->Change Root Password
Enter the new password; confirm the new password.
Click the Change Root Password button.
You will see the confirmation message: Changing password for user root.
passwd: all authentication tokens updated successfully.
Tip: Use the passwd command to change the password from command line.
CentOS Web Panel offers the possibility to reboot your server from its interface. You can reboot the server immediately or after a period of time.
To reboot the server on which you installed CWP:
As usually, access the CWProot account.
Go to CWP Settings->Reboot Server
To immediately reboot the server click the Reboot Server Now button.
To reboot the server after some time, enter the time in minutes and click the Reboot in button.
Wait for a few minutes and refresh the page. Or close the window and connect again to CWP.
To reboot the CentOS/Red Hat etc server from command line, use the shutdown command. For example to reboot the server in 10 minutes, use:
[root@cwp1 ~]# shutdown -r +10 "Reboot in 10 minutes. Save your work!"
Shutdown scheduled for Fri 2018-03-30 12:47:10 EDT, use 'shutdown -c' to cancel.
[root@cwp1 ~]#
Broadcast message from root@cwp1 (Fri 2018-03-30 12:37:10 EDT):
Reboot in 10 minutes. Save your work!
The system is going down for reboot at Fri 2018-03-30 12:47:10 EDT!
CentOS WebPanel doesn’t set an admin email at the installation time. So you will need set the admin/root email after the installation is complete. When logging in CWP you will see a warning message: WARNING! Your root Email address for notifications isn’t set..
To set up/modify the admin/root email:
Go to yourdomain.com:2087 and log in as root
Navigate to CWP Settings->Edit Settings
Look for the Admin Email field and enter the desired email address. It’s also a good idea to check the option Forward server system emails.
Click the Save Changes button.
You will see a notification message: Data Updated. Also, if you enabled the forwarning option, another message will be: root forwarder file detected, all root emails are forwarded to: email@domain.com
If you prefer, you can set/edit the root email address by editing the file /usr/local/apache/conf/sharedip.conf
CSF (ConfigServer Security & Firewall) is the default firewall that comes with CentOS Web Panel. As of writing this article, CSF is installed but it’s not enabled.
Message id [8dfeb6386ed1dfa9aee22f447e45e544]: === SECURITY WARNING === CSF/LFD Firewall is NOT enabled on your server, click here to enable it!
To enable the firewall on CWP, follow the steps:
Go to your CWP installation and log in as root
Navigate to Security->Firewall Manager
Click the EnableFirewall button. You will see a log like:
....
Mar 26 12:20:13 cwp1 systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Mar 26 12:20:14 cwp1 systemd[1]: PID file /var/run/lfd.pid not readable (yet?) after start.
Mar 26 12:20:14 cwp1 systemd[1]: Started ConfigServer Firewall & Security - lfd.
csf and lfd have been enabled
Now csf and lfd (Login Failure Daemon) have been enabled. (you can now close the warning message from the CWP Dashboard)
You can also enable CSF via the command line. Use csf -e command: