Apache2 cannot be restarted

Hello,

I am fairly new to freePBX. So I don’t know if this is even related to freePBX or just Debian/Apache2.

I tried to install freePBX in a Proxmox VM and a container via the script. Both have Debian 12.9 installed and on both the same error appears.

It was going great until “wrapping up” when apache2 needs to be restarted. The logs are sadly not helpful at all.

To activate the new configuration, you need to run: systemctl restart apache2 Enabling module expires. To activate the new configuration, you need to run: systemctl restart apache2 Enabling module rewrite. To activate the new configuration, you need to run: systemctl restart apache2 Enabling site freepbx. To activate the new configuration, you need to run: systemctl reload apache2 Enabling site default-ssl. To activate the new configuration, you need to run: systemctl reload apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details. 2025-02-25 15:43:26 - ****** INSTALLATION FAILED ***** 2025-02-25 15:43:26 - Installation failed at step Wrapping up the installation process. Please check log /var/log/pbx/freepbx17-install-2025.02.25-15.34.33.log for details. 2025-02-25 15:43:26 - Error at line: 1231 exiting with code 1 (last command was: systemctl restart apache2 >> "$log") 2025-02-25 15:43:26 - Exiting script

That’s not supported. Can you please retry with a dedicated VM without any containers ? Or did you try that already ?

Sorry, maybe it was a bit unclear. I did it with a container and as it wasn’t working, I did it on a dedicated vm. Both with the same result, as stated above.

Do the outputs from:
systemctl status apache2.service
or
journalctl -xeu apache2.service
provide any details?

After pasting the output into my answer, I actually found something that is related. To be specific:

ExecStartPre=/var/www/html/admin/modules/sysadmin/hooks/check_ip_and_start_apache.sh

After searching for that I found this thread: Please hire someone who knows debian

Basically I wasn’t aware of the –opensourceonly flag. When I executed the installation with that flag, commercial modules got removed. There was a exception after I did it once, but executing it again finished the installation.

Thank you!

1 Like

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