New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Apache SSL problem.

Started by ally, March 29, 2018, 02:21:27 PM

Previous topic - Next topic

ally

Hello CWP community,

I want to enable the SSL supporting for the centos server powered by CWP pane.
From WebServers page I see that the apache is configured to work with both ports 80/443

https://www.screencast.com/t/vwHRIHyLnTzE

But in SSL Cert Manager I see message:

'Looks like your port 443 is NOT enabled in apache/httpd configuration!'
Whenewer I tried to enable SSL manually by adding
listen 443 into /usr/local/apache/conf.d/ssl.conf I got:

AH00526: Syntax error on line 4 of /usr/local/apache/conf.d/ssl.conf:
Cannot define multiple Listeners on the same IP:port

Would be glad for any help.

Igor S.

Hello.

Just install SSL certificate via CWP: Apache settings => SSL Cert Manager.



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

ally

#2
Hello,

I have tried to install the SSL via "Apache settings => SSL Cert Manager".
https://www.screencast.com/t/4RbHivPUGa

The Let's Encrypt SSL was issued but apache still working just only on the 80 port, below output of the netstat:

[root@jurist ~]# netstat -ntpl | grep http
tcp        0      0 :::80                       :::*                        LISTEN      29115/httpd

also apache reloading did not help.


Igor S.

Hi, that's weird.
Try to add
Listen 443
in /usr/local/apache/conf.d/ssl.conf

And check if you have not installed Apache from yum repo



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

ally

When I added:
Listen 443
into /usr/local/apache/conf.d/ssl.conf file I got:



/usr/local/apache/bin/httpd -S
AH00526: Syntax error on line 4 of /usr/local/apache/conf.d/ssl.conf:
Cannot define multiple Listeners on the same IP:port

The file ssl.conf looks like:


<IfModule !ssl_module>
        LoadModule ssl_module modules/mod_ssl.so
        </IfModule>
        Listen 443
        SSLProtocol All -SSLv2 -SSLv3
        SSLHonorCipherOrder on
        SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS

Regarding:
QuoteAnd check if you have not installed Apache from yum repo

yum info cwp-httpd-2.4.29-2.x86_64
Installed Packages
Name        : cwp-httpd
Arch        : x86_64
Version     : 2.4.29
Release     : 2
Size        : 26 M
Repo        : installed
From repo   : cwp
Summary     : Apache httpd server
URL         : http://centos-webpanel.com
License     : Proprietary License
Description : Apache Web Server builded for CWP


So apache was installed from cwp repo.


studio4host

try to delete this file and then from cwp install certificate, it will autocreate a new file with correct settings
rm -f /usr/local/apache/conf.d/ssl.conf

if this doesn't help do also this
rm -f /usr/local/apache/conf/httpd.conf

and then reinstall cwp-httpd to get a new config
yum reinstall cwp-httpd
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.

ally

Hello,

The problem was resolved after reinstalling cwp-httpd.
Thanks @studio4host for your help!

Best Regards
Ally L.
http://www.webhostingzone.org/