SuSE - (op_server.pl) could not start

I’m trying to install version 2.3.1 onto a Suse 10.1 machine that’s running asterisk v 1.4.9, MySQL 5.0 and PHP5.

When I run ‘amportal start’ it complains about not being able to start the FOP’s server as shown below. I’ve read a number of posts about this but I’m still having trouble.

I’ve tried being logged in as root and as asterisk, but no difference. All the files in /var/www/html/panel are owned by user/group asterisk/asterisk and the entry for asterisk in /etc/passswd indicates that it has bash access.

Any ideas?

Thanks,
Howard

asterisk-dev:/var/www/html/panel # /usr/sbin/amportal start

SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
Asterisk Started

STARTING FOP SERVER
-su: line 0: cd: /var/www/html/panel: Permission denied
kill: no process ID specified
Try `kill --help’ for more information.


The FOP’s server (op_server.pl) could not start!
Please correct this problem

line 0: cd: /var/www/html/panel: Permission denied means that it does not have permission to execute. You checked the first place which is that the group and owner are set properly. But you need to also check that owner and group have execute permission on the op_server.pl and safe_opserver files.

Still not working. I still get:

SETTING FILE PERMISSIONS Permissions OK

STARTING ASTERISK
Asterisk is already running

STARTING FOP SERVER
-su: line 0: cd: /var/www/html/panel: Permission denied
kill: no process ID specified
Try `kill --help’ for more information.


The FOP’s server (op_server.pl) could not start!
Please correct this problem

Please see the permissions below. User, Group and Other all have execute permissions. I also tried giving User, Group and Other execute permissions on all the files in /var/www/html/panel.

I’m grateful for any direction you can provide.

ls -l /var/www/html
total 17
drwxrwxr-- 8 asterisk asterisk 680 2008-01-01 10:14 admin
drwxr-xr-- 2 asterisk asterisk 136 2007-12-31 20:36 _asterisk
-rw-r–r-- 1 hwaterfall users 137 2008-01-03 20:57 Hello.htm
-rw-r–r-- 1 asterisk users 602 2008-01-01 10:44 index.html
-rw-r–r-- 1 asterisk users 4542 2008-01-01 10:44 mainstyle.css
drwxrwxr-x 2 asterisk asterisk 776 2008-02-09 17:34 panel
drwxrwxr-- 7 asterisk asterisk 328 2007-12-31 20:36 recordings

ls -l /var/www/html/panel
total 592
-rw-rw-r-- 1 asterisk asterisk 19877 2008-01-01 10:44 CHANGES
-rwxrwxr-- 1 asterisk asterisk 3971 2008-01-01 10:44 convert_config_pre_14.pl
-rw-rw-r-- 1 asterisk asterisk 1339 2008-01-01 10:44 extensions.conf.sample
-rw-rw-r-- 1 asterisk asterisk 2534 2008-01-01 10:44 FAQ
-rw-rw-r-- 1 asterisk asterisk 767 2008-01-01 10:44 help_en.html
-rw-rw-r-- 1 asterisk asterisk 722 2008-01-01 10:44 help.txt
-rw-rw-r-- 1 asterisk asterisk 1791 2008-01-01 10:44 index_amp.php
-rw-rw-r-- 1 asterisk asterisk 1703 2008-01-01 10:44 index.php
-rw-rw-r-- 1 asterisk asterisk 18008 2008-01-01 10:44 LICENSE
-rw-rw-r-- 1 asterisk asterisk 1075 2008-01-01 10:44 op_astdb.cfg
-rw-rw-r-- 1 asterisk asterisk 1667 2008-01-01 10:44 op_buttons.cfg
-rw-rw-r-- 1 asterisk asterisk 65601 2008-01-01 10:44 operator_panel.swf
-rw-rw-r-- 1 asterisk asterisk 911 2008-01-01 10:44 op_lang_de.cfg
-rw-rw-r-- 1 asterisk asterisk 868 2008-01-01 10:44 op_lang_en.cfg
-rw-rw-r-- 1 asterisk asterisk 924 2008-01-01 10:44 op_lang_es.cfg
-rw-rw-r-- 1 asterisk asterisk 986 2008-01-01 10:44 op_lang_it.cfg
-rw-rw-r-- 1 asterisk asterisk 5727 2008-01-01 10:44 op_server.cfg
-rwxrwxr-x 1 asterisk asterisk 388112 2008-01-01 10:44 op_server.pl
-rw-rw-r-- 1 asterisk asterisk 2635 2008-01-01 10:44 op_style.cfg
-rw-rw-r-- 1 asterisk asterisk 7085 2008-01-01 10:44 README
-rw-rw-r-- 1 asterisk asterisk 2520 2008-01-01 10:44 RECIPES
-rwxrwxr-x 1 asterisk asterisk 93 2008-01-01 10:44 safe_opserver
-rw-rw-r-- 1 asterisk asterisk 277 2008-01-01 10:44 TODO
-rw-rw-r-- 1 asterisk asterisk 18058 2008-01-01 10:44 UPGRADE

I’m not a SuSE user nor a perl expert but remember seeing it posted someplace…

Check that the first line is pointing to your proper perl install.

by default it is set to
#!/usr/bin/perl -w
in the op_server.pl file.

Best bet is to make a symlink at that location to the right one as several of the perl files will all be looking in the same place for it (ampbackup.pl, fax-process.pl, retrieve_op_conf_from_mysql.pl, etc).

I have just installed FreePBX, and after a number of fat finger mistakes I have the system up.
However on the Administrator Web-interface the Asterisk button is RED and says ERROR and the Op buton says WARN.
I can start the Asterisk Server Manually and the RED ERROR goes away, but the Op still remain on warn.
Can anyone point me in the right direction to resolve this.

Thanks

Lindell