Trouble when upgrading from core 157 to core 158

Done

chmod 755 lib

Can still not access the WebUI despite apache has been restarted.

How about /usr/bin? Do I also need to change the permissions to 755?

After changing the permissions of /usr and /usr/bin to 755 I get

[Tue Jul 20 15:40:22.693657 2021] [cgid:error] [pid 32612:tid 128405781583424] (13)Permission denied: [client 192.168.1.4:59456] AH01257: unable to connect to cgi daemon after multiple tries: /srv/web/ipfire/html/index.cgi