Control Web Panel
WebPanel => Installation => Topic started by: direktor on April 29, 2019, 05:38:57 PM
-
Hello,
I installed new Web panel on CentOS 6. But how to run it? The IP_ADDRESS:2030 does not work. Says connection refused. I can't open in on localhost either. I turned off the firewall, still the same problem. I added 2030 port, still nothing. Apache is running. What could be wrong? Can someone help me with this?
Regards, Bogomil
-
Hello, have you tried to restart the server and/or CWP? Try to do that if no ;)
-
Hello,
Yes I restarted the server, still the same. How do I restart the CWP? It wasn't even started. But if server restarts some service connected to CWP should also restart. Or how do I reinstall it? If that would solve the problem.
Hello, have you tried to restart the server and/or CWP? Try to do that if no ;)
-
Post the result of the following command:
# netstat -tupln | grep -P ":2[0-3][0-9]+"
Regards,
Netino
-
Nothing happens. No output. What I'm doing wrong?
Post the result of the following command:
# netstat -tupln | grep -P ":2[0-3][0-9]+"
Regards,
Netino
-
CWPSRV can't start because of missing certificate
can not load certificates "etc/pki/tls/certs/hostname.crt" BIO_new_file()
this is the problem. what now?
-
Any reason you're using CentOS 6?
Obviously something went majorly wrong during the installation and you likely have more errors to come. I'd recommend reloading the OS with CentOS 7 and then installing CWP.
-
Hello.
CWPSRV can't start because of missing certificate
can not load certificates "etc/pki/tls/certs/hostname.crt" BIO_new_file()
this is the problem. what now?
Try the command below:
/scripts/generate_hostname_ssl
-
Steps to resolve the issue:-
==========
1. After CWP installation, First of all, Make sure 2030, 2031, 2086, 2087 Ports are opened on the server firewall.
2. To open ports in CSF, you will want to edit these lines in this file OR /etc/csf/csf.conf file.:-
run below command:-
$ vi /etc/csf/csf.conf
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,26,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,2030,2031,2086,2087"
# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,26,37,43,53,80,110,113,443,465,873,2087,2089,2703"
# Allow incoming UDP ports
UDP_IN = "20,21,53,465,6277,24441"
# Allow outgoing UDP ports
3. Save and exit the file via below command:-
$ Esc + :wq!
4. Restart the Firewall.
$ csf -r
Now check your CWP panel status.
5.If you're getting SSL certificate error so please follow the below steps:-
A. Make sure your server hostname resolving to your server IP address. And Check PTR records and make sure IP resolving to your server hostname.
B. If both are resolving then run below command on your CWP server.
$ /scripts/generate_hostname_ssl
C. Hostname add to /usr/local/apache/conf.d/hostname-ssl.conf.
D. Go to private key directory.
$ cd /etc/pki/tls/private
$ cat $hostname.key
E. Go to Certificate directory.
$ cd /etc/pki/tls/certs
$ cat $hostname.crt
$ cat $hostname.bundle
F. make sure the certificate and the private key are matching.
# refer below URL:-
https://www.sslshopper.com/certificate-key-matcher.html
and paste you crt and key and verify the same.
G. Edit the hostname virtualhost file.
$ vi /usr/local/apache/conf.d/hostname-ssl.conf
You will see SSL file path looks like this:-
SSLEngine on
SSLCipherSuite ALL:!ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
SSLProtocol All -SSLv2 -SSLv3
SSLCertificateFile /etc/pki/tls/certs/hostname.cert
SSLCertificateKeyFile /etc/pki/tls/private/hostname.key
SSLCertificateChainFile /etc/pki/tls/certs/hostname.bundle
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
Please be ensure the path is correct of SSL files.
H. Check the Apache Syntax via run below command:-
$ /usr/local/apache/bin/apachectl -t
I. If the Sytax are Ok then restart httpd service.
$ service httpd restart
6. Restart the CWP, dovecot and postfix service.
$ service cwp restart
$ service dovecot restart
$ service postfix restart
7. Now check your CWP, It will works without any error.
+==================================+
Thank You
Shubhi
-
CWP can be restarted by the command: /scripts/restart_cwpsrv
-
you need to use port 2031 and you need to check that cwpsrv is running
sh /scripts/restart_cwpsrv
-
Why is anyone trying to troubleshoot centos 6?
-
it seems like the trouble with one-two servers and not a CWP trouble.