After PHP Update Nextcloud Failed and Error 502 BAD gateway

Hello Everyone

I Need Help.
I did today the update from PHp 7.4 to PHP 8.1.27.
The update installation was sucessfully, but after the Update access to Nextcloud Failed.

( 502 Bad Gateway) i found out that the appache server failed to start .

 apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-01-16 11:29:03 CET; 2min 17s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 2780 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Jan 16 11:29:03 ubuntu systemd[1]: Starting The Apache HTTP Server...
Jan 16 11:29:03 ubuntu apachectl[2783]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jan 16 11:29:03 ubuntu apachectl[2783]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jan 16 11:29:03 ubuntu apachectl[2783]: no listening sockets available, shutting down
Jan 16 11:29:03 ubuntu apachectl[2783]: AH00015: Unable to open logs
Jan 16 11:29:03 ubuntu apachectl[2780]: Action 'start' failed.
Jan 16 11:29:03 ubuntu apachectl[2780]: The Apache error log may have more information.
Jan 16 11:29:03 ubuntu systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jan 16 11:29:03 ubuntu systemd[1]: apache2.service: Failed with result 'exit-code'.
Jan 16 11:29:03 ubuntu systemd[1]: Failed to start The Apache HTTP Server.

Maybe somebody can help me, i need the nextcloud this evening, and i dont have enough time for installation of a new system.

Thank You !

How precisely did you update?

could not bind to address

From the looks of it maybe you tried to start Apache rather than restart it (or stopping it first).