Fresh install on VPS.
Debian 8.7 / FreePbx 13.
Followed: “Installing FreePBX 13 on Debian 8.1”
Here is what happens:
STARTING ASTERISK
Asterisk Started
root@vps103799:/usr/src/freepbx# ./install -n
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
No /etc/asterisk/asterisk.conf file detected. Installing…Writing /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk does not appear to be running
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory
So I do that and get:
root@vps103799:/usr/src/freepbx# ./start_asterisk start
STARTING ASTERISK
Asterisk is already running
root@vps103799:/usr/src/freepbx#
I looked at what you suggested but it does not say much to me. It looks like asterisk is running as the “root user”, but I am not certain of this. How do I make it run as the “asterisk user”?
Do you have any idea of where I screwed up in the official tutorial?
Thanks again for your time,
Rob.
What I see:
> /etc/default/asterisk:
> /etc/default/asterisk 1684/1684 100%
> # Startup configuration for the Asterisk daemon
> # Uncomment the following and set them to the user/groups that you
> # want to run Asterisk as. NOTE: this requires substantial work to
> # be sure that Asterisk's environment has permission to write the
> # files required for its operation, including logs, its comm
> # socket, the asterisk database, etc.
> #AST_USER="asterisk"
> #AST_GROUP="asterisk"
> # If you DON'T want Asterisk to start up with terminal colors, comment
> # this out.
> COLOR=yes
> # If you want Asterisk to run with a non-default configuration file,
> # uncomment the following option, and set the value appropriately.
> #ALTCONF=/etc/asterisk/asterisk.conf
> # In the case of a crash, Asterisk may create a core file. Uncomment
> # if you want this behavior.
> #COREDUMP=yes
> # Asterisk may establish a maximum load average for the system. This
> # may be useful to prevent a flood of calls from taking down the system.
> #MAXLOAD=4
> # Or, if you'd prefer, you can limit the maximum number of calls.
> #MAXCALLS=1000
> # Default console verbosity. This may be raised or lowered on the console.
> # Note this is analogous to the -v command line switch, which by default
> # will cause Asterisk to start in console mode and run in the foreground,
> # unless the always fork (-F) option is also provided.
> #VERBOSITY=3
> # Enable internal timing if the DAHDI timer is available. The default
> # behaviour is that outbound packets are phase locked to inbound packets.
> # Enabling this option causes them to be locked to the internal DAHDI
> # timer instead.
> #INTERNALTIMING=yes
> # Start all recordings into a temporary directory, before moving them to
> # their final location.
> #TEMPRECORDINGLOCATION=yes
root@vps103799:~# ps aux |grep asterisk