I altered my hostname and after a restart CWP will not load.
I am getting
systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
running systemctl status httpd.service gives me
Sep 19 18:53:43 mydomain.com systemd[1]: Starting Web server Apache...
Sep 19 18:53:44 mydomain.com apachectl[5881]: AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf.d/ssl.conf:9
Sep 19 18:53:44 mydomain.com apachectl[5881]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using mydomain.com. Set the 'ServerName' directive globally to suppress this message
Sep 19 18:53:45 mydomain.com systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 19 18:53:45 mydomain.com systemd[1]: Failed to start Web server Apache.
Sep 19 18:53:45 mydomain.com systemd[1]: Unit httpd.service entered failed state.
Sep 19 18:53:45 mydomain.com systemd[1]: httpd.service failed.
Whilst journalctl -xe provides
Sep 19 18:58:41 mydomain.com cwpsrv[6321]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
Sep 19 18:58:41 mydomain.com systemd[1]: cwpsrv.service: control process exited, code=exited status=1
Sep 19 18:58:41 mydomain.com systemd[1]: Failed to start CentOS Web Panel service (daemon).
-- Subject: Unit cwpsrv.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwpsrv.service has failed.
--
-- The result is failed.
Sep 19 18:58:41 mydomain.com systemd[1]: Unit cwpsrv.service entered failed state.
Sep 19 18:58:41 mydomain.com systemd[1]: cwpsrv.service failed.
Sep 19 18:58:42 mydomain.com postfix/smtp[6207]: connect to mx4.hotmail.com[65.55.37.120]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6208]: connect to mx2.hotmail.com[104.44.194.231]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6210]: connect to mta5.am0.yahoodns.net[98.136.216.25]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6212]: connect to ff-ip4-mx-vip1.prodigy.net[144.160.159.21]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6214]: connect to mailin-01.mx.aol.com[152.163.0.99]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6215]: connect to msn-com.olc.protection.outlook.com[104.47.36.33]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6216]: connect to mx3.hotmail.com[207.46.8.199]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6217]: connect to mailin-02.mx.aol.com[64.12.88.163]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6218]: connect to mta7.am0.yahoodns.net[98.138.112.32]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6219]: connect to mailin-01.mx.aol.com[152.163.0.68]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6221]: connect to mx1.hotmail.com[65.55.92.168]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6222]: connect to mailin-01.mx.aol.com[152.163.0.99]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6227]: connect to mx4.hotmail.com[104.44.194.233]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6228]: connect to mailin-01.mx.aol.com[64.12.88.132]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6229]: connect to mta6.am0.yahoodns.net[63.250.192.46]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6230]: connect to mta5.am0.yahoodns.net[98.136.216.25]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6231]: connect to mta5.am0.yahoodns.net[98.138.112.37]:25: Connection timed out
Sep 19 18:58:43 mydomain.com postfix/smtp[6232]: connect to mailin-02.mx.aol.com[152.163.0.68]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6233]: connect to al-ip4-mx-vip1.prodigy.net[144.160.235.143]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6234]: connect to mailin-01.mx.aol.com[152.163.0.67]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6235]: connect to msn-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6236]: connect to mailin-03.mx.aol.com[64.12.91.196]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6237]: connect to mailin-02.mx.aol.com[64.12.88.163]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6238]: connect to mailin-03.mx.aol.com[64.12.88.164]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6239]: connect to ff-ip4-mx-vip2.prodigy.net[144.160.159.22]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6240]: connect to ff-ip4-mx-vip1.prodigy.net[144.160.159.21]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6241]: connect to mailin-01.mx.aol.com[64.12.91.195]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6242]: connect to msn-com.olc.protection.outlook.com[104.47.40.33]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6244]: connect to msn-com.olc.protection.outlook.com[104.47.36.33]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6245]: connect to ff-ip4-mx-vip2.prodigy.net[144.160.159.22]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6243]: connect to alt1.gmail-smtp-in.l.google.com[74.125.205.26]:25: Connection timed out
Sep 19 18:58:44 mydomain.com postfix/smtp[6243]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c02::1b]:25: Network is unreachable
Sep 19 18:58:45 mydomain.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=de:19:5c:26:90:05:ee:ca:8f:db:ce:36:08:00 SRC=222.186.51.138 DST=10.3.134.139 LEN=40 TOS=0x00 PREC=0x00 TTL=100 ID=256 PROTO=TCP SPT=6000 DPT=3306 WINDOW
Sep 19 18:58:46 mydomain.com systemd[1]: cwpsrv.service holdoff time over, scheduling restart.
Sep 19 18:58:46 mydomain.com systemd[1]: Starting CentOS Web Panel service (daemon)...
-- Subject: Unit cwpsrv.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwpsrv.service has begun starting up.
Sep 19 18:58:46 mydomain.com cwpsrv[6327]: cwpsrv: [emerg] EM_read_bio_X509_AUX("/etc/pki/tls/certs/hostname.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)
Sep 19 18:58:46 mydomain.com cwpsrv[6327]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
Sep 19 18:58:46 mydomain.com systemd[1]: cwpsrv.service: control process exited, code=exited status=1
Sep 19 18:58:46 mydomain.com systemd[1]: Failed to start CentOS Web Panel service (daemon).
-- Subject: Unit cwpsrv.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwpsrv.service has failed.
--
-- The result is failed.
Sep 19 18:58:46 mydomain.com systemd[1]: Unit cwpsrv.service entered failed state.
Sep 19 18:58:46 mydomain.com systemd[1]: cwpsrv.service failed.
My logs are showing a whole bunch of this >
[Tue Sep 19 18:53:45.001826 2017] [ssl:emerg] [pid 5883:tid 139787373369216] AH02561: Failed to configure certificate mydomain.com:443:0, check /etc/pki/tls/certs/mydomain.com.cert
[Tue Sep 19 18:53:45.001974 2017] [ssl:emerg] [pid 5883:tid 139787373369216] SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Tue Sep 19 18:53:45.002021 2017] [ssl:emerg] [pid 5883:tid 139787373369216] SSL Library Error: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
AH00016: Configuration Failed
I have found this issue mentioned elsewhere on the forum and it would seem I have messed up my ssl cert by changing my hostname?
http://forum.centos-webpanel.com/apache/cwp7-apache-won%27t-start-after-changing-hostname/It's suggested to disable ssl but I have no idea how...
Any ideas?