Apache2 broken after upgrade

Hello, I just updated apache2 and some configurations were rewritten with the new ones automatically and this made apache2 unable 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 Thu 2023-02-02 22:24:58 WIB; 5s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 35073 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 75ms

Feb 02 22:24:58 ruka.moe.team apachectl[35076]: AH00112: Warning: DocumentRoot [/home/admin/web/youtube.moe.ngo/public_>
Feb 02 22:24:58 ruka.moe.team apachectl[35076]: (98)Address already in use: AH00072: make_sock: could not bind to addre>
Feb 02 22:24:58 ruka.moe.team apachectl[35076]: (98)Address already in use: AH00072: make_sock: could not bind to addre>
Feb 02 22:24:58 ruka.moe.team apachectl[35076]: no listening sockets available, shutting down
Feb 02 22:24:58 ruka.moe.team apachectl[35076]: AH00015: Unable to open logs
Feb 02 22:24:58 ruka.moe.team apachectl[35073]: Action ‘start’ failed.
Feb 02 22:24:58 ruka.moe.team apachectl[35073]: The Apache error log may have more information.
Feb 02 22:24:58 ruka.moe.team systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 02 22:24:58 ruka.moe.team systemd[1]: apache2.service: Failed with result ‘exit-code’.
Feb 02 22:24:58 ruka.moe.team systemd[1]: Failed to start The Apache HTTP Server.

I’ve tried changing the apache2.conf configuration file to the same as this one in github, but it still doesn’t work

Use the search function it has been explained 20 times

1 Like
1 Like

I’ve tried that solution, but the problem still exist

Also there is port.conf and should also be updated. There should be file inside the folder with ports.conf.xxx

Delete the current ports.conf and rename the old one

Okay, Thanks. Solved :slight_smile:

During the upgrade did you get a prompt about replacing the config file with maintainers version versus preserving the current config?

If you didn’t receive any prompt what cli cmd did you use for the os upgrade?

I’m wondering if it was somehow preventable.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.