FreePBX 17 Installation Issue

I’ve followed the instructions for installing FreePBX 17 on Debian 12, other than a few bits where I’ve had to put /sbin in front of some of the commands its been smooth up until installing FreePBX. the ./start_asterisk start command works fine but when trying ./install -n I get this:

root@pbx:/usr/local/src/freepbx# ./install -n
Assuming you are Database Root
Checking if SELinux is enabled...Its not (good)!
Reading /etc/asterisk/asterisk.conf...Done
Checking if Asterisk is running and we can talk to it as the 'asterisk' user...sh: 1: runuser: not found
Error!
Error communicating with Asterisk.  Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as asterisk
Try starting Asterisk with the './start_asterisk start' command in this directory

This suggests that Asterisk is running as asterisk and I am able to get to the Asterisk CLI fine.

Edit to add, htop is showing the process running as user asterisk too

How did you start asterisk? After stopping/killing it, start it with the following command.

/usr/local/src/freepbx/start_asterisk start

See the following thread for more ideas if that doesn’t work.

Managed to get it working! Turns out I should have been logging in as root using “su -“ not “su”