I have already installed Asterisk and it is running on my system. i could see it while typing ps -ef command.
But when i try to install freepbx so i this errors:
root@test-VirtualBox:/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…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
You say Asterisk is running, so did you try “ps aux” to find out who the owner is on the process? It should be asterisk. I’ll guess it’s running as root.
Asterisk will run as whatever user/group you tell it to, you don’t say what OS you are using or how you installed it but the init script (/etc/init.d/asterisk) will usually give you a clue, Debian like systems “source” /etc/default/asterisk other deployments use other methods, but I am pretty sure that it is documented sufficiently in “your recipe”
,still ı could not solve the problem.
When i type:
ps -ALf | grep asterisk
so there were many asterisk threads were started with “Asterisk” user(Left side of the output of the:ps -ALf | grep asterisk )
What am i doing wrong??? I can install asterisk easly but when i try to install freepnx so i get same error !!
My manual is:
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar -zxvf asterisk-13-current.tar.gz
cd asterisk-13.6.0/
sudo apt-get install uuid-dev
sudo apt-get install libjansson-dev
sudo apt-get install libmpg123-dev
sudo apt-get install mpg123
sudo apt-get install libao-dev
sudo apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev
sudo apt-get install asterisk-mp3
sudo apt-get install svn
sudo apt-get install subversion
contrib/scripts/install_prereq
contrib/scripts/get_mp3_source.sh
./configure --with-crypto --with-ssl --with-srtp
make
sudo make install
sudo make config
sudo make samples
sudo ldconfig
sudo update-rc.d -f asterisk remove
cd /usr/src/
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-13.0-latest.tgz
tar vxfz freepbx-13.0-latest.tgz
cd freepbx
./start_asterisk start
root@test-VirtualBox:/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…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
The ‘ps’ provide process status. You need to post what you are seeing for us to help you. You interpreting the output and telling us what you think is wrong is the same as you telling us what you think is wrong. Help us help you and just post the output.
This is especially true since you are running in “high priority mode”. One of them will run at high priority because of being paired with astcanary, but not all 40+ of them.
No, there’s not an alarming number of Asterisk processess. There’s only one - process id 8062. The extra lines that @cynjut can see are threads inside that process.
Also, ‘safe_asterisk’ isn’t running, so something’s starting asterisk incorrectly. Stop it, run ./start_asterisk (as the instructions say), and it should be fine.
The normal command is ps auxw | grep asterisk - it is case sensitive, and it depends on not having a minus in front of it.
hola buena noche a todos, he estado tratando de resolver el “mismo problema” pero he seguido sus indicaciones al pie de la letra y no ha funcionado sigo con el mismo problema, gracias por la atencion:
STARTING ASTERISK
Asterisk is already running
[root@CentosOS7A01 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…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as root
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory
Usted está comenzando ‘asterisk’ incorrectamente. Está ejecutando ‘asterisk’ como ‘root’ y debe ejecutarse propiedad del usuario ‘asterisk’. Por favor, detenga ‘asterisk’ y reinicie usando ‘fwconsole start’.