Apache2 automatic restart problem

hello please I have a problem… I configured my Apache server so that it can start automatically after a power outage or after restarting my server with the command "“sudo update-rc.d apache defaults” " …but after a shutdown or a restart of the server it does not work I have to restart the Apache service so that it starts again

Are you seeing this on Freepbx 17? what error do you see in apache2 logs

I have no problem… will if I reinstall apache2 it will cause a problem to my entire server configuration