MilesWeb
Leading Web Hosting Provider in India Since 2012.
Award-winning Web Hosting Company
Everything that you need to build, host and manage a website is available at just 99/mo

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

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0

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.

Premium Website Hosting

Neha Khanna

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.

Leave a Reply

Your email address will not be published. Required fields are marked *