- Plesk is not accessible with the following error:
502 Bad Gateway nginx
- The sw-cp-server service is down with the following error:
# service sw-cp-server status
Starting sw-cp-serverd: nginx: [emerg] BIO_new_file(“/usr/local/psa/admin/conf/httpsd.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/usr/local/psa/admin/conf/httpsd.pem’,’r’) error:2006D080:BIO routines:BIO_new_file:no such file)
Cause
/usr/local/psa/admin/conf/httpsd.pem
certificate file is missing.
Resolution
- Login to the server via SSH.
-
Recreate
certificate using following steps:
httpsd.pem
# cd /usr/local/psa/admin/conf/
# openssl req -new -nodes -x509 -out httpsd.pem -newkey rsa:2048 -keyout httpsd.pem -days 3650
-
Restart sw-cp-server:
# service sw-cp-server restart