Bootstrap.php has disappeared, and I don't know how to fix it

Hi everyone, I came into work today to find the phone system down, with an error I hadn’t seen before. I’ve checked in the /var/www/html/admin directory and the boostrap.php fine doesn’t exist. No one has been into the system in a few weeks, and it was working fine until this morning. Checked /etc/freepbx.conf and it’s pointing to the bootstrap file which just doesn’t seem to exist anymore.

Checked the various backup/older versions, and they’re all giving the same error, which is very unusual!

It’s PBX 12 (an old version I know, but it’s a legacy system I inherited after the previous IT guy left, and I don’t know enough about PBX/have enough time to rebuild it), I’ve tried looking for upgrade scripts to see if moving to 13 (or a newer version) would resolve this, but I can’t find anything for command line that would work (it’s running on a CentOS VM, and the GUI isn’t available due to these issues).

Anyone encountered this before/can recommend anything to either resolve the missing file, or how to upgrade to 13 (not sure about updating much further in case too much of a jump breaks it even more).

Here’s the message I was greeted with this morning

And this is what’s in the /admin directory

image

Moved to security because that is not good what you are seeing there.

Do you have a decent backup ? Exporting extensions lists, possibly via direct database dump, and disconnecting the box so it isn’t further damaged while you install a new system over the holiday weekend may be the best course of action.

There is some info on new v17 download options at freepbx.org/downloads that you may wish to review.

Oh, and welcome to the forums!

Glad to be here, if only it were under better circumstances! It’s always encouraging when you post something and the first response is that it’s not good :joy: Thanks for the help though, and adding the security tag!

No backups on the server itself that work unfortunately. Do you have any guides/can point in the right direction to start getting backups/exporting settings? I’m having difficulty finding where to pull it from via command line, and the server the VM is running on isn’t a friendly one to try and get files from. The pervious IT guy was very good at getting things working, but it also means he left behind some complicated/unintuitive systems that only he really knew how to deal with!

I’ve managed to dig out an old dedicated server we used to use for the phone system before the VM (which is 6+ years old, minimum), I’m just trying to see just how out of date it all is, which should hopefully work in the short term whilst I look at rebuilding it properly.

Are there any issues jumping from version 12 to 17, in terms of losing settings etc, or is it usually fairly straightforward? Might have to update the Linux version first, which is probably needed anyway as it’s developed a memory leak as well, just to keep my life interesting :upside_down_face:

Are you able to snapshot the VM (that could be a backup) ?

The database is MYSQL. Check out mysqldump command. Shuffling files out of the VM can often be done with SSH from your client machine, using scp.

At this point you might be better off with a clean install of FreePBX 17 on Debian 12, using the ISO offered at aforementioned download link, setting up things one-by-one, starting with one extension and one trunk to the telco.

How many phones ?

Thanks, I’ll give the database dump command a go.

Not too many phones (only around 10), it was more a time concern, since I was hoping to get the old one stable enough for now, and then work on building a new one when I had the time to learn how it all works (since I’ve got about 2 weeks worth of work to fit into this week as it is).