Broken FreePBX installation

I have a FreePBX, I don’t know exactly what version, probably 16, with Asterisk 16.

When I try to access the interface, I get a 404 error.

Asterisk still works as intended, it’s just that I can’t access FreePBX.

I can login as root from the physical machine, I checked the folders and the files are gone, (config.php, for example).

If I try to run fwconsole, I also get an error of PHP files missing.

I tried reinstalling FreePBX using yum, but yum tells me that there’s “nothing to do”.

Then I tried downloading http://mirror.freepbx.org/modules/packages/freepbx/freepbx-16.0-latest-EDGE.tgz, unpacking and running the install.php file, but it fails. I removed the check for being run under fwconsole, but then it errors out telling me that the module FreePBX does not exist.

How can I reinstall or recover the files missing for FreePBX?

Or if there’s a way to run the backup module, then I can do a clean install and restore the Backup, but I need a way to return this FreeBPX to working order.

Any help will be greatly appreciated.

If you’re missing config.php from the web directory and other files…you have some issues with that machine. Someone removed those things. Is there a proper apache config in /etc/httpd?

If a bunch of your FreePBX files and/or folders are missing either a bad actor or someone who made a serious mistake got into your box and did something.

1 Like

AFAIK nobody touched that machine. It’s a dedicated computer, only used as a PBX, last time I had to change the configuration is about a year ago, and nobody said anything because the PBX part works. Only now that I have to change some minor stuff is when I found that there’s no interface.

It’s way more likely the hard disk has a fault than any malicious actor.

In any case when (or if) I get to make FreePBX work again, I’ll make a backup and I’ll restore it into a VM on a way better (and newer) Proxmox server I own, but I don’t want to lose the current config and mailbox data. I have backups, but they’re old and if I can repair that installation It’ll be the preferable option.

It’s probably worth checking these steps. I’m pretty sure one of the machines I managed had problems running fwconsole commands when it was compromised with this hack (due to the missing/empty freepbx.conf file).

Full thread:

2 Likes

I tried fixing FreePBX, but it ended not working as I wasn’t able to source the correct version of the modules installed, so I ended starting from scratch, downloaded and installed the latest FreePBX, restored an old backup and had to carry over more than a year of changes to the configuration, but just now I almost finished with it.

Thank you to everybody that answered.