Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba
dialer:~ # systemctl status apache2.service
● apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2023-05-30 12:48:47 +03; 1min 0s ago
Process: 15782 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 15782 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
May 30 12:48:47 dialer systemd[1]: Starting The Apache Webserver...
May 30 12:48:47 dialer start_apache2[15782]: AH00526: Syntax error on line 21 of /etc/apache2/listen.conf:
May 30 12:48:47 dialer start_apache2[15782]: Cannot define multiple Listeners on the same IP:port
May 30 12:48:47 dialer systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
May 30 12:48:47 dialer systemd[1]: apache2.service: Failed with result 'exit-code'.
May 30 12:48:47 dialer systemd[1]: Failed to start The Apache Webserver.
dialer:~ #
carpenox wrote:Seems you have the same listen port listed more than once. Edit your listen.conf and remove the double
#Listen 12.34.56.78:80
#Listen 80
#Listen 443
Listen 80
Listen 81
Listen 81
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
Listen 446
Listen 446
</IfModule>
</IfDefine>
</IfDefine>
#Listen 12.34.56.78:80
#Listen 80
#Listen 443
Listen 80
#Listen 81
Listen 81
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
#Listen 446
Listen 446
</IfModule>
</IfDefine>
</IfDefine>
bbakirtas wrote:carpenox wrote:Seems you have the same listen port listed more than once. Edit your listen.conf and remove the double
- Code: Select all
#Listen 12.34.56.78:80
#Listen 80
#Listen 443
Listen 80
Listen 81
Listen 81
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
Listen 446
Listen 446
</IfModule>
</IfDefine>
</IfDefine>
to
- Code: Select all
#Listen 12.34.56.78:80
#Listen 80
#Listen 443
Listen 80
#Listen 81
Listen 81
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
#Listen 446
Listen 446
</IfModule>
</IfDefine>
</IfDefine>
and apache work!
Thanks @carpenox
Return to ViciBox Server Install and Demo
Users browsing this forum: No registered users and 32 guests