Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: fargo on April 02, 2010, 10:39:49 PM

Title: Errors after Installing FreePBX
Post by: fargo on April 02, 2010, 10:39:49 PM
I installed FreePBX 2.7 on SME 7.5RC1 as given in the WiKi. I then created a test ext. 202. My softphone failed to connect to the extension and gave "error at the server" message. I checked FreePBX and found the following errors in the Notices box:

Retrieve conf failed to copy file(s) from a module's agi-bin dir: copy(/usr/share/asterisk/agi-bin/list-item-remove.php): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/dialparties.agi): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/enumlookup.agi): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/checksound.agi): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/user_login_out.agi): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/sql.php): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/directory): failed to open stream: Permission denied
copy(/usr/share/asterisk/agi-bin/fixlocalprefix): failed to open stream: Permission denied

Added 6 minutes ago
(retrieve_conf.CPAGIBIN)

Any help please?
Title: Re: Errors after Installing FreePBX
Post by: fargo on April 02, 2010, 10:43:44 PM
Here is what I get when listing the files at the first path:

Code: [Select]
[root@lsrv agi-bin]# pwd
/usr/share/asterisk/agi-bin
[root@lsrv agi-bin]# ls -l
total 256
-rwxr-xr-x  1 root root  1742 Feb 14  2006 agi-test.agi
-rwxr-xr--  1 root root  1872 Apr  2 23:07 checksound.agi
-rwxr-xr--  1 root root 31236 Apr  2 23:07 dialparties.agi
-rwxr-xr--  1 root root 13302 Apr  2 23:07 directory
-rwxr-xr-x  1 root root  6648 Feb  5 12:44 eagi-sphinx-test
-rwxr-xr-x  1 root root  5704 Feb  5 12:44 eagi-test
-rwxr-xr--  1 root root  5564 Apr  2 23:07 enumlookup.agi
-rwxr-xr--  1 root root  7891 Apr  2 23:07 fixlocalprefix
-rwxr-xr-x  1 root root 14530 Mar  7  2006 jukebox.agi
-rwxr-xr--  1 root root  2003 Apr  2 23:07 list-item-remove.php
-rwxr--r--  1 root root 26877 Apr  2 23:07 phpagi-asmanager.php
-rwxr--r--  1 root root 65906 Apr  2 23:07 phpagi.php
-rwxr-xr--  1 root root  4001 Apr  2 23:07 recordingcheck
-rwxr-xr--  1 root root 21117 Apr  2 23:07 sql.php
-rwxr-xr--  1 root root 17968 Apr  2 23:07 user_login_out.agi
[root@-lsrv agi-bin]#
Title: Re: Errors after Installing FreePBX
Post by: rhodan on April 03, 2010, 01:16:10 PM
Whitch Wiki you are speaking about. Here at contrib's wiki (http://wiki.contribs.org/FreePBX) it shows FreePBX 2.5.
Title: Re: Errors after Installing FreePBX
Post by: fargo on April 03, 2010, 04:25:10 PM
Oh, I upgraded to 2.7 as given here (http://forums.contribs.org/index.php/topic,45667.msg222583.html#msg222583) after applying Wiki instructions. Anyhow, I just did a reinstall of the SME and installed SAIL PBX  :cool:
Title: Re: Errors after Installing FreePBX
Post by: ocascante on April 15, 2010, 06:59:13 PM
....delete all the files inside /usr/share/asterisk/agi-bin and change to asterisk the owned of agi-bin folder with the x bit set.
then restart freepbx.

as i wrote in my post.