So I am recieving the following error with FreePBX 2.5.1.0 and AsteriskNow 1.5.0 Beta2, Asterisk 1.4.23.1
Error #1 - Logging in to FreePbx Web Portal
Reload failed because retrieve_conf encountered an error: 1
(freepbx.RCONFFAIL)
Error #2 - After adding a user and clicking apply
Retrieve conf failed to copy file(s) from a module’s agi-bin dir: chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
chmod(): Operation not permitted
(retrieve_conf.CPAGIBIN)
After some research, I executed the retrieve_conf and it returne the following error:
[root@localhost bin]# sh retrieve_conf
retrieve_conf: line 5: syntax error near unexpected token "_"' retrieve_conf: line 5:if (! function_exists("_")) {’
Opening the file
line 1 #!/usr/bin/ -q
line 2
line 3 </usr/bin/php
line 4
line 5 if (! function_exists("_")) {
line 6 function _($str) {
line 7 return $str;
line 8 }
line 9 }
it’s a little strange that you are getting the syntax error about the “if function_exists(”_")…" line as that should be perfectly fine. As far as your chmod errors, try doing the following:
go into your http configuration file and set the apache user to asterisk
run “amportal chown” from the command line (as user root)
upon doing those, your chmod errors should go away.