Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: Bossmanuk on August 12, 2020, 09:16:04 PM

Title: A few Issues Apache/Nginx, AutoSSL, Hostname and IP Address
Post by: Bossmanuk on August 12, 2020, 09:16:04 PM
Hi Everyone,
I am using CWP with a fresh install after activating the Apache/Nginx server setup i always get the same error with Nginx failing

Quote
Aug 12 21:40:50 server systemd: Starting Web server Apache...Aug 12 21:40:51 server apachectl: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80Aug 12 21:40:51 server apachectl: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80Aug 12 21:40:51 server apachectl: no listening sockets available, shutting downAug 12 21:40:51 server apachectl: AH00015: Unable to open logsAug 12 21:40:51 server systemd: httpd.service: control process exited, code=exited status=1Aug 12 21:40:51 server systemd: Failed to start Web server Apache.Aug 12 21:40:51 server systemd: Unit httpd.service entered failed state.Aug 12 21:40:51 server systemd: httpd.service failed.

Second Issue AutoSSL

When even i try to setup a domain with AutoSSL it sets it up but with the internal network ip and when you check the SSL Certificate it says the mail server instead of the domain name.

Hostname

How do you successfully setup the hostname with Letsencrypt i have seen a few guides but it just ended up screwing up my CWP and i had to reinstall it a few times. If someone has am easy way of setting it up so it does not interfere with the CWP setup would be much appreciated.

Thanks

Bossmanuk
Title: Re: A few Issues Apache/Nginx, AutoSSL, Hostname and IP Address
Post by: studio4host on August 12, 2020, 09:27:49 PM
kill all apache/nginx processes and then rebuild webservers.

Hostname ssl is automatically installed and configured when you do the change/or save of the hostname using cwp.admin hostname module.

for ssl you need to check ssl manager in cwp.admin
Title: Re: A few Issues Apache/Nginx, AutoSSL, Hostname and IP Address
Post by: Bossmanuk on August 13, 2020, 07:35:12 AM
Hi Studio4host,
This worked thank you

Quote
kill all apache/nginx processes and then rebuild webservers.

With regards to hostname it seem to be generating a self signed certificate only, i would like an autossl if possible?

Thanks
Title: Re: A few Issues Apache/Nginx, AutoSSL, Hostname and IP Address
Post by: Igor S. on August 16, 2020, 07:23:13 PM
Check log file /root/.acme.sh/acme.sh.log and you will see the problem.