Symptoms
NGINX fails to start, and the log shows an error similar to the following.
CONFIG_TEXT: Jun 15 18:47:54 host.domain.tld nginx[9957]: nginx: [emerg] cannot load certificate "/var/cpanel/ssl/cpanel/mycpanel.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/cpanel/ssl/cpanel/mycpanel.pem','r') error:2>
Cause
The error occurs due to a configuration conflict in NGINX. Rebuilding the configuration will normally resolve the cause.
Resolution
- Access the server's command line as the
rootuser via SSH or the WHM Terminal. -
Rebuild the configuration for ea-nginx.
# /usr/local/cpanel/scripts/ea-nginx config --all
Comments
0 comments
Article is closed for comments.