India’s #1 Web Hosting Company Since 2012

SSL install aborted due to error: Unable to produce a valid Apache configuration file.

Posted by
Updated onApril 5, 2018

Not happy with your web hosting service provider?

Approx. read time : 2 min

Error
SSL install aborted due to error: Unable to produce a valid Apache configuration file.
Certificate verification passed
milesweb.com is already configured for SSL on 199.189.248.117.
The certificate for the domain milesweb.com could not be installed. Apache produced the following errors:
Syntax error on line 41201 of /usr/local/apache/conf/httpd.conf.installssl.1341504497.261732239.984084-milesweb.com:
ServerName takes one argument, The hostname and port of the server
Apache produced the following errors:
Syntax error on line 41201 of /usr/local/apache/conf/httpd.conf.installssl.1341504497.261732239.984084-milesweb.com:
ServerName takes one argument, The hostname and port of the server

When installing SSL from WHM, you might receive this error & SSL won’t be installed further. If you check the error properly, it is because incorrect entry for ServerName in one of the VirtualHost of apache configuration file.

To fix this, login to the server via SSH & access /usr/local/apache/conf/httpd.conf. Look at the line number in error code. You will find that there are multiple domains in ServerName which is incorrect. You should have just one domain name and others should be added just below ServerName as ServerAlias. Make the changes accordingly and restart apache.

Now, try installing SSL, you will be able to install it properly.

 

Avatar

My name is Neha Khanna, I work for MilesWeb.com. I am interested in posting content on various topics. I aim at posting informative articles that provide value to people.

Download this article and read it offline
Next to read
Error SSL install aborted due to error: Unable to produce a valid Apache configuration file. Certificate verification passed milesweb.com is already configured for SSL on 199.189.248.117. The certificate for the domain milesweb.com could not be installed. Apache produced the following errors: Syntax error on line......
Register Your Free Domain Name
OFFER EXPIRES IN
04
min
59
sec