Intalling on an RPI4

Toibs

New Member
Oct 21, 2024
8
6
3
54
South Wales
Really hesitant to post here about this, since there are a lot out there that make this seem like it "just works".
I have tried multiple times, and have never yet managed to get it to work. I always get errors when running the installer script. Then i usually get the Nginx 404 error (from memory this was an issue around what php version is installed/dimensioned, be it 7.2/7.4 etc). And if i get past this it continues to error out. After a few hours I just give up.. and then ironically try again a few weeks later...

I am running a Pi4 with 4Gb memory, running off a 128Gb M2 SSD. This is the second of these i have tried just to rule out a dodgy PI. Sd cards i use to initially install this onto the machine has changed a few times also, all well known brands (Kingston/Sandisk genuine and even a couple of lesser known cards that whilst not massivent popular have proved themselves over the last couple of years).

So - Has anyone specific particulars about which Os to use (Bookworm? Bullseye etc). Is there anything that needs to be done before/after installation to make it work? Anyone have a step-by-step "go here, d/l this, enter this command, enter this, and finally it comes back and "just works"".
I have tried most of the methods on here, and get the same issues - hence why i'm currently at my witts end, and why i'm asking - no, begging - for suggestions etc as to how others have got it to work! Theres only so many hours one can stare at a screen before screaming at it.

If people could share their process, then hopefully we can identify one that, in 2025, actually works!
(and before anyone puts "use the official installer" - i cant get that to work either.

I wish there was just an official default "pi" image that could be released - only because that way i could be sure that it should just work :)

Thanks for any advice, hopefully saving me before I do give up finally and throw it out of the window.

Paul
 
  • Like
Reactions: cemotyz09
PHP should be 8.1. The installation works when not broken on Debian 12. I read this forum daily, and unfortunately, it's broken a lot. It's not always due to FusionPBX itself. It's sometimes due to new Linux updates that aren't compatible with FusionPBX/Freeswitch. Sometimes, it's due to missing packages. It turns out Debian 12 is not the same between different hosting providers. Some strip it more than others.

I've mostly been using my own FS PBX install script lately because I maintain it myself, and it "just works." However, I've never tried Raspberry Pi. I'm curious to know if it installs, though.
 
Thanks @pbxgeek. 8.1 on a Pi is interesting as the resources dont seem to be available that easilly any more. 8.2 is fine - however guessing from your post that it needs to be 8.1.

Ive spent that long on it over the last couple of months that i've given up and ordered a Dell 3060 USFF so i can throw it in the loft (working on the "pi" principal of small and cheap). I do have a version working nicely on a rented server, however for the playing i want to be able to do i dont need that power - just enough for maybe 7 or 8 Extns with associated recordings etc. Hopefully it'll arrive tomorrow, so will see which release of Debian12 works.

Looks like i'm currently running Debian12 64 Bit, so will run with that.

Once ive done and it's all up and working, i'll have a play with FSPBX on a Pi and see if that loads - purely out of curiosity!
 
I haven't tried to install on a Pi for some time, I'll see if I can find time over the next day or two to do an install and see whats what. I'm sure I'll be able to get it working and I'm also fairly sure that if there is a problem with the installer mark will fix it if he's given the needed information.

@pbxgeek FS PBX doesn't seem to work currently on arm64 but I'm sure that would too with a little work. Again, I haven't tried it on a Pi, I tried it on my oprangepi I think. I'm interested in arm64 though as I use it in Oracle cloud servers. I've been running FusionPBX on arm64 now in production for 4 years without problem.
 
  • Like
Reactions: Toibs
This was on a compute module 5 but it should be the same for any raspios. There are couple of thinks but basically it is the php version. The php 8.2 sury repo works just fine thought the native deb 12 php 8.2 doesn't seem to have inotify.
 
  • Like
Reactions: Toibs
yup is what i found - i think the key it so have sury's repo installed to pick those up.

Out of interest, did you just install raspios, add the repo and followed the standard installer, or did you have to install php and relavent extensions before running the installer?
 
So download the installer:

Code:
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/debian/pre-install.sh | sh;

Then replace these two files in the /usr/src/fusionpbx-install.sh/debian/resources directory

Then edit /usr/src/fusionpbx-install.sh/debian/resources/config.sh and change the php version to 8.2

Then run:

Code:
cd /usr/src/fusionpbx-install.sh/debian && ./install.sh

If your still getting an nginx error, edit /etc/nginx/sites-enabled/fusionpbx and change any references to php8.1 to 8.2 and restart nginx

I have had to add the .txt extension to upload these so just remove the .txt, you may need to make them executable too chmod +x blah
 

Attachments

I haven't tried to install on a Pi for some time, I'll see if I can find time over the next day or two to do an install and see whats what. I'm sure I'll be able to get it working and I'm also fairly sure that if there is a problem with the installer mark will fix it if he's given the needed information.

@pbxgeek FS PBX doesn't seem to work currently on arm64 but I'm sure that would too with a little work. Again, I haven't tried it on a Pi, I tried it on my oprangepi I think. I'm interested in arm64 though as I use it in Oracle cloud servers. I've been running FusionPBX on arm64 now in production for 4 years without problem.

@DigitalDaz I'll circle around and try to get the installer to work on arm64.