Closed kguptasangoma closed 3 weeks ago
Looks like Apache2 is not able to start properly due to freepbx service which causing this issue.
Need to start freepbx service first and then apache2.
Remove "After:apache2" from the Freepbx service file so final freepbx.service will look like below -
`
root@sangoma:~# cat /lib/systemd/system/freepbx.service
[Unit]
Description=FreePBX VoIP Server
After=mariadb.service
After=network-online.target
Wants=network-online.target
[Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/sbin/fwconsole start ExecStop=/usr/sbin/fwconsole stop
[Install] WantedBy=multi-user.target `
Add, After=freepbx.service
in the apache2 service file.
`root@sangoma:~# cat /lib/systemd/system/apache2.service [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target After=freepbx.service Documentation=https://httpd.apache.org/docs/2.4/
[Service] Type=forking Environment=APACHE_STARTED_BY_SYSTEMD=true ExecStart=/usr/sbin/apachectl start ExecStop=/usr/sbin/apachectl graceful-stop ExecReload=/usr/sbin/apachectl graceful KillMode=mixed PrivateTmp=true Restart=on-abort OOMPolicy=continue
[Install] WantedBy=multi-user.target`
FreePBX Version
FreePBX 17
Issue Description
looks like, Freepbx17 process and apache2 services are trying to start at the same and causing issue in apache2 process so on first boot freepbx ui is crashing with memory error.
See attached screenshot.
Operating Environment
NA
Relevant log output
No response