[Solved] Mythweb not working after upgrade to Ubuntu 22.04

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

[Solved] Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

Apache2 is failing to start after the o/s upgrade.

Code: Select all

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.

Code: Select all

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.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by bill6502 »

I usually take this for starters: "The Apache error log may have more information."
Try: sudo cat /var/log/apache2/error.log
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

Thanks for the reply.

That command returns nothing. /var/log/apache2/error.log has a size of zero.
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by bill6502 »

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
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

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:

Code: Select all

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.
But, again, the Apache error log is blank.

Any other troubleshooting steps I can try?
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by bill6502 »

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.

Good luck.
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

Ok, that helped...I think.

Apparently it's trying to load this file: /usr/lib/apache2/modules/libphp7.4.so

That file doesn't exist on the system. The file in that directory ls libphp8.1.so.

Any idea how to fix this??
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

Re: Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

Fixed it!!

The solution is at the end of this thread:

https://ubuntuforums.org/archive/index. ... 68173.html
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: SOLVED: Mythweb not working after upgrade to Ubuntu 22.04

Post by bill6502 »

Interesting idea. I believe the proper solution is to install the real php8 modules
and enable them:

Code: Select all

$ sudo apt install libapache2-mod-php8.0
$ a2enmod php8.1
$ ls -1 /etc/apache2/mods-*/php8.1.{conf,load} # Just to see the 2 files and links to them
RichardK
Newcomer
Posts: 11
Joined: Fri Jun 20, 2014 10:24 pm
United States of America

Re: SOLVED: Mythweb not working after upgrade to Ubuntu 22.04

Post by RichardK »

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.
Post Reply