richard@Mythtv:~$ sudo systemctl start apache2.service
[sudo] password for richard:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
richard@Mythtv:~$ sudo journalctl -xeu apache2.service
Aug 14 16:36:24 Mythtv apachectl[11386]: The Apache error log may have more information.
Aug 14 16:36:24 Mythtv systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Aug 14 16:36:24 Mythtv systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Aug 14 16:36:24 Mythtv systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit apache2.service has finished with a failure.
░░
░░ The job identifier is 2763 and the job result is failed.
The apache2 error log is blank.
Any idea what the problem could be, and how to fix it?
Thanks for any help with this!!
Last edited by RichardK on Mon Aug 15, 2022 2:51 am, edited 1 time in total.
It could be that the log rolled over. cd to that directory and look in other error.log.<n> files.
Start with 1.
Failing that, I'd start it directly from the command line. Try: systemctl cat apache2.service and look for the ExecStart
line. Run that command as root. I suspect it would be: sudo /usr/sbin/apachectl start
The other error log files have dates showing previous days, and that's after numerous tries at restarting Apache today. So I don't think they've rolled over.
When starting Apache manually, as you suggested, I get this:
root@Mythtv:/home/richard# /usr/sbin/apachectl start
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
Action 'start' failed.
The Apache error log may have more information.
Forgot this one: systemctl status --no-pager apache2.service
And if that doesn't have any clues, use you favorite search engine and look for:
The unit apache2.service has entered the 'failed' state with result 'exit-code'.
I saw one response that said configuration files are missing, purge the package
and re-install it.
php8.1 was already installed by the upgrade process. I fixed the problem by deleting php7.4.conf and php7.4.load Those were broken symlinks that were left in place after the upgrade.