can't start Webpanel

Started by direktor, April 29, 2019, 05:38:57 PM

Previous topic - Next topic

direktor

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

Igor S.

Hello, have you tried to restart the server and/or CWP? Try to do that if no ;)



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

direktor

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.

Quote from: Igor S. on April 30, 2019, 08:51:53 AM
Hello, have you tried to restart the server and/or CWP? Try to do that if no ;)

Netino

Post the result of the following command:

# netstat -tupln | grep -P ":2[0-3][0-9]+"


Regards,
Netino

direktor

Nothing happens. No output. What I'm doing wrong?

Quote from: Netino on May 01, 2019, 04:01:08 AM
Post the result of the following command:

# netstat -tupln | grep -P ":2[0-3][0-9]+"


Regards,
Netino

direktor

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?

cu-olly

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.

Igor S.

Hello.

Quote from: direktor on May 02, 2019, 05:39:16 PM
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



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Everdata technologies

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

Igor S.

CWP can be restarted by the command: /scripts/restart_cwpsrv



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

studio4host

you need to use port 2031 and you need to check that cwpsrv is running

sh /scripts/restart_cwpsrv
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

pixelpadre

Why is anyone trying to troubleshoot centos 6?

Igor S.

it seems like the trouble with one-two servers and not a CWP trouble.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services