Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

help: installing lighttpd under cent os error

asterisk14asterisk14 Banned
edited May 2013 in General

i'm trying to install a gui following these instruction under centos 5 by copying and pasting the instructions link and am stuck, been looking for solution for a few hours. when i type the #lighty-enable-mod cgi, i get an error "bash-lighty-enable-mod:command not found". How do Inget this working or can i use another web server and if so how do i do it???

use lighttpd as the web server. To enable CGI support:

lighty-enable-mod cgi

I then modified 10-cgi-conf to enable perl and shell scripts:
cgi.assign = (
".pl" => "/usr/bin/perl",
".sh" => "/bin/sh",
)

Make sure lighttpd runs as root, as we need to run Asterisk etc from shell script CGIs:

change uid to (default: don't care)

server.username = "wwwrun"

change uid to (default: don't care)

server.groupname = "wwwrun"

Then restart lighttpd after all the changes:

/etc/init.d/lighttpd restart

For comparison on the IP04 I just modified /etc/lighttpd.conf:
cgi.assign = ( ".sh" => "/bin/sh",".pl" => "/usr/bin/perl" )

Mini Asterisk expects analog FXS ports to be in group 1 and FXO ports to be in group 2. This is used for dialling out of FXO ports. So your /etc/asterisk/zaptel.conf file should look a little like this:
cgi.assign = ( ".sh" => "/bin/sh",".pl" => "/usr/bin/perl" )

This is taken care of automatically on IP0X boxes, but you may need to manually configure zaptel.conf on an x86 machine.

Sign In or Register to comment.