Httpd fail to start

Hi,
Httpd Service fail to start cause of port 6002 entry in schmoozecom.conf.
I comment out this entry and everything is working fine again but after a while the schmoozecom.conf is autogenerated and httpd service fails to load.
Is there a way to permanently stop generating this entry when the system is autogenerating
schmoozecom.conf.
Listen 6002
<VirtualHost *:6002>
RewriteEngine on
RewriteRule (^.|/.) - [F]
DocumentRoot /var/spool/asterisk/sangoma_phone_service/

Someone help me out please

Please Someone who knows

Please provide additional information.

What system is this? Version? Errors?

Yes.Sorry.You are right.
Its FreePBX 15.0.23.17
Asterisk Version 16.26.1
error:
service httpd restart
Redirecting to /bin/systemctl status httpd.service
\u25cf httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-08-28 13:31:24 EEST; 15s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 9493 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 18461 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 9499 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 9499 (code=exited, status=1/FAILURE)

Aug 28 13:31:24 pbx.myname.com systemd[1]: Starting The Apache HTTP Server…
Aug 28 13:31:24 pbx.myname.com httpd[9499]: (98)Address already in use: A…2
Aug 28 13:31:24 pbx.myname.com httpd[9499]: (98)Address already in use: A…2
Aug 28 13:31:24 pbx.myname.com httpd[9499]: no listening sockets availabl…n
Aug 28 13:31:24 pbx.myname.com httpd[9499]: AH00015: Unable to open logs
Aug 28 13:31:24 pbx.myname.com systemd[1]: httpd.service: main process ex…E
Aug 28 13:31:24 pbx.myname.com systemd[1]: Failed to start The Apache HTT…
Aug 28 13:31:24 pbx.myname.com systemd[1]: Unit httpd.service entered fai…
Aug 28 13:31:24 pbx.myname.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Thank you

You are missing the backslashes. This is how it should look like:

# sngphoneweb
Listen 6002
<VirtualHost *:6002>
  RewriteEngine on
  RewriteRule (^\.|/\.) - [F]
  DocumentRoot /var/spool/asterisk/sangoma_phone_service/
</VirtualHost>

I still cant start httpd service if schmoozecom.conf contains this autogenereted entry.
I need to permanently stop generating this entry (sngphoneweb) when the system is autogenerating
schmoozecom.conf

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