I am running a nnumber of VirtualHosts - all was running reasonably fine.
My domain is: canstream.co.uk
I ran these commands to delete a VirtualHost:
- rm -Rf /etc/letsencrypt/live/podcasts.commedia.org.uk
- rm /etc/letsencrypt/renewal/podcasts.commedia.org.uk.conf
- rm -Rf /etc/letsencrypt/archive/podcasts.commedia.org.uk
It produced this output:
[root@machine~]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [FAILED]
My web server is (include version): Server version: Apache/2.2.15 (Unix)
The operating system my web server runs on is (include version): CentOS release 6.6 (Final)
My hosting provider, if applicable, is: myself
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 0.37.1
Logs:
/var/log/letsencrypt.log.1
2019-08-10 00:11:02,027:DEBUG:acme.client:Storing nonce: S-yp5c7fbdkGQrnPA7zi89i6dSAJjXzCe_5BXEgRgM8
2019-08-10 00:11:02,028:DEBUG:certbot.renewal:Dry run: skipping updating lineage at /etc/letsencrypt/live/canstream.co.uk
2019-08-10 00:11:02,029:DEBUG:certbot.updater:Skipping renewal deployer in dry-run mode.
2019-08-10 00:11:02,231:ERROR:certbot.util:Error while running apachectl graceful.
httpd not running, trying to start2019-08-10 00:11:02,232:INFO:certbot_apache.configurator:Unable to restart apache using ['apachectl', 'graceful']
2019-08-10 00:11:02,232:DEBUG:certbot_apache.configurator:Trying alternative restart command: ['apachectl', 'restart']
2019-08-10 00:11:02,360:ERROR:certbot.util:Error while running apachectl restart.
httpd not running, trying to start2019-08-10 00:11:02,361:WARNING:certbot.renewal:Attempting to renew cert (canstream.co.uk) from /etc/letsencrypt/renewal/canstream.co.uk.conf produced an unexpected error: Error while running apachectl restart.
httpd not running, trying to start. Skipping.
2019-08-10 00:11:02,363:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot_apache/configurator.py", line 2212, in _reload
util.run_script(self.option("restart_cmd"))
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/util.py", line 84, in run_script
raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Error while running apachectl graceful.
httpd not running, trying to startDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/renewal.py", line 449, in handle_renewal_request
main.renew_cert(lineage_config, plugins, renewal_candidate)
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot/main.py", line 1220, in renew_cert
installer.restart()
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot_apache/configurator.py", line 2203, in restart
self._reload()
File "/opt/eff.org/certbot/venv/lib64/python3.4/site-packages/certbot_apache/configurator.py", line 2230, in _reload
raise errors.MisconfigurationError(error)
certbot.errors.MisconfigurationError: Error while running apachectl restart.
httpd not running, trying to start
Nothing in apache error logs as apache will not start.
Any ideas.
Thanks in advance.