Error to reload FreePBX

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.



Try amportal stop then
Try amportal stop then amportal chown then amportal start
Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)
Now I have this when I start
Now I have this when I start amportal after chown
SETTING FILE PERMISSIONS
Permissions OK
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.
tail
tail /var/log/asterisk/full
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format vox
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format g723sf
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format pcm
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format alaw
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format au
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format g722
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Unregistered format wav
[Apr 15 21:37:23] VERBOSE[31252] logger.c: Executing last minute cleanups
[Apr 15 21:37:23] VERBOSE[31252] logger.c: == Destroying musiconhold processes
[Apr 15 21:37:23] VERBOSE[31252] logger.c: Asterisk cleanly ending (0).
OK, do amportal kill twice,
OK, do amportal kill twice, check that asterisk is not running by ps aux|grep asterisk, if not then amportal start
If it is running, best advice is to reboot machine.
Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)
I have rebooted my machine,
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
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
What user is running
What user is running asterisk process (you will see this when doing the ps aux)?
Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)
I made some changes and now
I made some changes and now when I type ps aux I see that "asterisk start" was running under root.
I have more one question, I
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
I think we have a problem
I think we have a problem with SPAM. Can you block the IP address for daisy and breitling?