Koozali.org: home of the SME Server

Errors after Installing FreePBX

Offline fargo

  • *
  • 6
  • +0/-0
Errors after Installing FreePBX
« 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?

Offline fargo

  • *
  • 6
  • +0/-0
Re: Errors after Installing FreePBX
« Reply #1 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]#

Offline rhodan

  • *
  • 12
  • +0/-0
Re: Errors after Installing FreePBX
« Reply #2 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.

Offline fargo

  • *
  • 6
  • +0/-0
Re: Errors after Installing FreePBX
« Reply #3 on: April 03, 2010, 04:25:10 PM »
Oh, I upgraded to 2.7 as given here after applying Wiki instructions. Anyhow, I just did a reinstall of the SME and installed SAIL PBX  :cool:

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Errors after Installing FreePBX
« Reply #4 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.

« Last Edit: April 15, 2010, 07:02:51 PM by ocascante »