When I reload my FreePBX 2.6.0.1 (Apply Configuration Chages) I have this:
exit: 255
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …PHP Warning: file(/etc/asterisk/asterisk.conf): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 822
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/functions.inc.php on line 823
[FATAL] asterisk.conf parsing failure no entries found in /etc/asterisk/asterisk.conf
PHP Fatal error: Call to a member function quoteSmart() on a non-object in /var/www/html/admin/functions.inc.php on line 1439
I think it is something with permissions, but I have already played a lot with chmod, without success. Help please.
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk could not start!
Use ‘tail /var/log/asterisk/full’ to find out why.
I have rebooted my machine, but with ps aux|grep asterisk I see a process, when I type amportal start I see
SETTING FILE PERMISSIONS
Permissions OK
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed
I have also types twice amportal kill, but a process was still in list
And now I see, that my Asterisk is stared, but I can not do any changes in FreePBX, because I still have while applying changes:
exit: 255
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …PHP Warning: file(/etc/asterisk/asterisk.conf): failed to open stream: Permission denied in /var/www/html/admin/functions.inc.php on line 822
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/functions.inc.php on line 823
[FATAL] asterisk.conf parsing failure no entries found in /etc/asterisk/asterisk.conf
PHP Fatal error: Call to a member function quoteSmart() on a non-object in /var/www/html/admin/functions.inc.php on line 1439
I have one more question, I think that the best advice is to reinstall my Asterisk, but I want to move all my conf files into new system. What files I must replace and what shouls I do to run Asterisk with old settings