CentOS Web Panel is an excellent control panel for CentOS servers but it also has the feature that it works in its own way and that any operation performed from the command line very often interferes with the operation of the services that are set up. Before performing the various steps illustrated, make sure that you have read the whole
Symptoms
The web server rejects the request to connect to the site or shows for all domains and subdomains only the default page of the Apache server. If you access the panel, the message “WARNING! You are not running CWP Apache” with the request to press a button that aims to restore the correct pointing of the script that manages the service. It is not necessary to press it, but anyway if you adopt the described solution it should not be relevant.
Causes
Specifically the error: “WARNING! You are not running CWP Apache” is related to the fact that somehow, a different version of apache has been installed than the one expected and used by the control panel. Very often, the addition of tools via the command line may recall and have as a prerequisite the installation of standard httpd which is the source of this problem.
Solution
The solution is to remove both versions and install the correct one by reconstituting the service. This can be done through the following commands:
- killall -9 httpd
- yum remove httpd -y
- yum remove cwp-httpd -y
- yum install cwp-httpd –enablerepo=cwp -y
- systemctl daemon-reload
- service httpd start
Disclaimer
This is a solution that I used and it works for me, follow this guide only if you are sure you know what you are doing, I do not assume any responsibility because a server administrator should know what he is doing. I suggest you to make a backup and if your service provider allows you, a full snapshot.
champion
We are the champion for ever XD