I installed FreePBX on Debian 12 as per the documentation.
Everything works perfectly, but after each server reboot, I can’t access the GUI due to an error
I have this exact same memory issue as well. Along with RESTAPPS does not automatically start. I read on another page last month where someone posted the reason that this is happening is because too many things are trying to start up at once. This is chewing up the memory and not allowing a apache2 to load correctly. It was supposed to have been fixed but I downloaded the latest install and it’s not working for me.
I installed FreePBX17 after installing Debian12. In total, I have installed both the operating system and FreePBX17 4 times on 2 different brand new computers with 16 GB of memory. It did not matter. The results were the same even though it was mentioned this has been fixed. It is still not working well for me. I just left it alone after the 4th install. To get around this, I created the /etc/rc.local file and I put the commands:
#! /bin/sh -e
Start RESTAPPS
sleep 60
fwconsole start restapps
Restart apache2
sleep 10
service apache2 restart
exit 0
That starts RESTAPPS and restarts APACHE2 automatically so I never need to manually key these commands. The reason I put the “sleep” intervals in the script was to give the computer time to finish starting up other applications.
It’s not the best but this does work. Eventually if a revised version of FreePBX fixes these issues I’ll remove the code.
Oh yes I thought I should mention the script does not work in cron under @reboot. The cron executes too early on in the process. rc.local seems to be invoked later.