Top Scroll

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

Error
SSL install aborted due to error: Unable to produce a valid Apache configuration file.
Certificate verification passed
milesweb.co.uk is already configured for SSL on 199.189.248.117.
The certificate for the domain milesweb.co.uk 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.co.uk:
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.co.uk:
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 of 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.

The Author

Neha Kahnna is a professional content writer associated with MilesWeb. She curates articles on web hosting, latest SEO trends and technology topics. Her insightful content captivates the reader’s attention and deliver a higher learning ROI.

For our blog visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
BLOGFAN10
Note: Copy the coupon code and apply it on checkout.