Monthly Archives: March 2018

Change root password in CentOS Web Panel

CentOS Web Panel interface allows you to change the root password of your server, which is also the admin CWP password.

cwp root password

To change the root password (CWP admin password):

  1. Access your CWP installation
  2. Go to Server Settings->Change Root Password
  3. Enter the new password; confirm the new password.
  4. 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.

The short video tutorial for this article:

Share this post:

How to reboot the server via CWP

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.

cwp server reboot

To reboot the server on which you installed CWP:

  1. As usually, access the CWP root account.
  2. Go to CWP Settings->Reboot Server
  3. 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.
  4. 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!

To reboot the server immediately, use:

[root@cwp1 ~]# shutdown -r now

The short video tutorial for this article:

Share this post:

Add/Modify the admin email address in CWP

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:

  1. Go to yourdomain.com:2087 and log in as root
  2. Navigate to CWP Settings->Edit Settings
  3. 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.
  4. Click the Save Changes button.
  5. 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 

cwp admin password

 

If you prefer, you can set/edit the root email address by editing the file /usr/local/apache/conf/sharedip.conf

The short video tutorial for this article:

Share this post:

CWP Terminal Utility

CentOs Web Panel (aka CWP) provides an easy to use terminal utility. 

cwp terminal

To access the CWP command line utility: 

  1. Go to your CWP installation – domain.com:2087 – and log in as root
  2. At the top of the control panel, look for the Terminal button and click on it.
  3. The Terminal utility will open in a new web browser window. Enter the commands you want here.
  4. When done, close the Terminal window.
Of course, you can access the server via an SSH utility like PuTTY, KiTTY, mRemoteNG, MobaXterm etc.

The movie tutorial for this KB article:

Share this post:

CWP Firewall Manager

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.

For more information about CSF please visit the official web page.

When logging in to CWP you will see a warning:

cwp firewall warning message

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:

  1.  Go to your CWP installation and log in as root
  2. Navigate to Security->Firewall Manager
  3. Click the Enable Firewall 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
    
  4. Now csf and lfd (Login Failure Daemon) have been enabled. (you can now close the warning message from the CWP Dashboard)

cwp firewall

You can also enable CSF via the command line. Use csf -e command:

[root@cwp1 ~]# csf -e
By default, the open ports are:
TCP
IN: 20, 21, 22, 25, 53, 80, 110, 143, 443, 465, 587, 993, 995, 2030, 2031, 2082, 2083, 2086, 2087, 2095, 2096
OUT: 20, 21, 22, 25, 53, 80, 110, 113, 443, 2030, 2031, 2082, 2083, 2086, 2087, 2095, 2096, 587, 993, 995
UDP
IN: 20, 21, 53
OUT: 20, 21, 53, 113, 123

The movie tutorial for this KB article:

 
Share this post:
Page 1 of 3
1 2 3