Apache error: AH00526: Cannot define multiple Listeners on the same IP:port

SYSTEM INFORMATION
OS type and version Debian Linux 12
Webmin version 2.501
Virtualmin version 7.40.0

I have having issues with my Apache:

AH00526: Syntax error on line 3 of /etc/apache2/ports.conf:
Cannot define multiple Listeners on the same IP:port
Action ‘configtest’ failed.
The Apache error log may have more information.

@kalimanti,

Can you show us the contents of the file?

The error seems pretty clear. You have multiple Listen directives for the same IP:port. You should not.

Can you describe what changes you made on the UI that caused this issue? Or did you not make any?

8 posts were split to a new topic: Default DNS server resolves to 127.0.1.1

well, i wiped the VPS, reinstalled from scratch Debian 12, installed Virtualmin with the common command line, logged in Virtualmin (with no other actions taken) and

AH00526: Syntax error on line 3 of /etc/apache2/ports.conf:
Cannot define multiple Listeners on the same IP:port
Action ‘configtest’ failed.
The Apache error log may have more information.

this is whats in /etc/apache2/ports.conf

Can you show contents of /etc/apache2/ports.conf before installing Virtualmin?

This is odd, I just did a clean install on Debian 12 and didn’t have this error.

Did you fix this, removing duplicate Listen lines I would think would help fix the issue.

In the process of setup I got this error below:

Can you help me?

Hey @Jamie, do you recall when we were working on this issue a while back in my PR #1040, and I think I solved it, but something caused us to close that PR—do you think it might be related? :slight_smile:

Just to be clear, way too many people reported it recently.

@Jamie, okay, I remembered we’ve had this issue before. And, it was due to a bug in Virtualmin Config where Apache config files were edited incorrectly outside of the Apache Webmin module, causing cache corruption.

To fix this, @Joe needs to release an updated version of the Virtualmin Config package that is still compatible with Virtualmin 7 repos.

The original issue with broken Apache configs after installing Virtualmin 7.40.0 on Debian and Ubuntu is now resolved.

Anyone having trouble with it before, feel free to do a fresh install that will now work!

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