I was setting up a new domain as a domain directed to another domain on my main website. The idea was to use it for Prestashop multistore for a small shop for my mother. When I went to renew the SSL (in order to include these new domains) an error occurred and the service was shut down. I provided to restart the VPS from the server web but it didn’t start. It seems that Apache is down and I can’t start it:
This truncated line, if expanded, will give you the clue about which configuration file is preventing apache from starting. You will have to edit this file and, I suspect, remove the SSL entries for the new domain which you have created.
Looks like it. However, I have edited the file to remove the references to the new websites and it still won’t start. What should I do? Delete the certificate? How should I do it?
SSLCertificateFile: file ‘/home/chexpress/ssl.cert’ does not exist or is empty
I have entered the file and it is indeed empty. I have tried to renew the certificate of the main domain (only .com and www.dominio.com) but it gives the following error:
Error while running apache2ctl configtest.
Action ‘configtest’ failed.
The Apache error log may have more information.
AH00526: Syntax error on line 129 of /etc/apache2/sites-enabled/cheress.es.conf:
SSLCertificateFile: file ‘/home/cheress/ssl.cert’ does not exist or is empty
The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(“Error while running apache2ctl configtest.\nAction ‘configtest’ failed.\nThe Apache error log may have more information.\n\nAH00526: Syntax error on line 129 of /etc/apache2/sites-enabled/cheress.es.conf:\nSSLCertificateFile: file ‘/home/cheress/ssl.cert’ does not exist or is empty\n”,)
Delete line 129 in /etc/apache2/sites-enabled/cheress.es.conf
Then try restarting apache again. You will get a couple of more error messages; delete the offending lines specified in those error messages and then apache should restart.
I did like you said, I got another error and then I ssled off the same file. I’m already being ripped off by Apache. However now webmin is down and I can’t access it:
● webmin.service - LSB: web-based administration interface for Unix systems
Loaded: loaded (/etc/init.d/webmin; generated)
Active: failed (Result: exit-code) since Sat 2020-04-25 09:20:51 CEST; 5min Aug
Docs: man:systemd-sysv-generator(8)
Process: 929 ExecStart=/etc/init.d/webmin start (code=exited, status=2)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Why is this happening now?
Maybe this is simpler: I have backups of the virtual server. Is it possible to restore it via SSH? I am looking for a guide but can only find it from the web.
Thanks a lot, buddy. Finally I was able to go in, restore the copy from the day before and leave everything as it was. Thank you very much, without your help it would have been much harder.