
Solution WARNING! You are not running CWP Apache
CentOS Web Panel / Control Web Panel is an excellent control panel for CentOS, and other red hat derivatives. As is often the case with control panels of this type, any operations performed from the command line may interfere with the operation of the services that are set up. Before performing the various steps illustrated, make sure you have read the entirety.
Symptoms
The web server either rejects the request to connect to the site or shows for all domains and subdomains only the default page of the Apache server. If the panel is accessed, the message ‘WARNING! You are not running CWP Apache’ appears with a request to press a button that is intended to restore the correct pointing of the script that manages the service. It is not necessary to press it, but in any case, if the solution described is adopted, it should not be relevant.
Causes
Specifically, the error: ‘WARNING! You are not running CWP Apache’ relates to the fact that somehow, a different version of apache was installed than the one expected and used by the control panel. Very often, the addition of tools via the command line may call up and have as a prerequisite precisely the installation of standard httpd, which is the cause of this problem.
Solution
The solution is to remove both versions and install the correct one by reconstituting the service. This can be done via 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 I used and it works for me, follow this guide only if you are sure you know what you are doing, I take no responsibility because a server administrator should know what he is doing. I recommend making a backup and if your service provider allows it, a full snapshot.