SSL Installation error -directive missing closing '>'

While installing the SSL on domain from WHM >> SSL/TLS >> Install an SSL Certificate on a Domain, the below error occured -

The “/usr/sbin/httpd” command (process 80677) reported error number 1 when it ended.
httpd_ls_bak: Syntax error on line 49909 of [Test Configuration File]: 
</VirtualHost>rdata/ssl/2_4/cPanel_username/domain_name/*.conf"> directive missing closing '>'

Solution -
This error was due </VirtualHost> was not closed in /etc/httpd/conf/httpd.conf file. I've corrected the entry and rebuild the httpd.conf file using below commands -
/scripts/rebuildhttpdconf

The previous code was as below -
</VirtualHost>rdata/ssl/2_4/cPanel_username/domain_name/*.conf">
</VirtualHost>

I've corrected the code as below -
</VirtualHost>
<VirtualHost> --------------------------------> added the opening for <VirtualHost>
rdata/ssl/2_4/cPanel_username/domain_name/*.conf">
</VirtualHost>

It fixed my issue! 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution