Control Web Panel

WebPanel => Apache => Topic started by: bolado on April 27, 2018, 07:57:53 PM

Title: Cannot start apache
Post by: bolado on April 27, 2018, 07:57:53 PM
When I try to start apache it shows: Starting httpd: [FAILED]

I looked at the error_log and it shows this:

[Fri Apr 27 14:54:06.516332 2018] [ssl:emerg] [pid 24482:tid 139785491539776] AH02561: Failed to configure certificate server.bolado.cloud:443:0, check /etc/pki/tls/certs/server.bolado.cloud.cert
[Fri Apr 27 14:54:06.516432 2018] [ssl:emerg] [pid 24482:tid 139785491539776] 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?
[Fri Apr 27 14:54:06.516451 2018] [ssl:emerg] [pid 24482:tid 139785491539776] SSL Library Error: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
AH00016: Configuration Failed


can you please help me to fix that?
Title: Re: Cannot start apache
Post by: cubehost on May 23, 2018, 05:03:41 PM
You have a bad ssl certificate, or configuration, for the domain "server.bolado.cloud"

You need to fix the ssl for that domain and then start httpd.
Title: Re: Cannot start apache
Post by: Administrator on May 25, 2018, 12:30:38 PM
since this looks like hostname certificate issue you can try to fix it like this

Code: [Select]
sh /scripts/generate_hostname_ssl
if that doesn't help then you can manually edit mentioned file/files in the error.