<span style="font-family: Arial; font-size: 13px;">Hello,<br><br>I've been trying to get this to work for days and am running out of ideas. <br><br>Attempting to accomplish something simple: Run a /bin/sh script via CGI <br><br>The script is called server.sh and contains this:<br><br>    #!/bin/sh<br>    echo "Hello World<br>"<br><br>It resides in /data/project/ext-lnk-discover/public_html/cgi-bin/server.sh<br><br>The .lighttpd.conf is <br><br>    debug.log-request-handling = "enable"    <br>    static-file.exclude-extensions += ( ".sh" )<br>    $HTTP["url"] =~ "^cgi-bin" {<br>            cgi.assign = ( "" => "" )<br>    }<br><br><br><a href="http://tools.wmflabs.org/ext-lnk-discover/cgi-bin/server.sh">http://tools.wmflabs.org/ext-lnk-discover/cgi-bin/server.sh</a> <br><br>returns "403 Forbidden"<br><br>The Lighttpd error.log is long, located in /data/project/ext-lnk-discover/error.log, but the last two lines:<br><br>2014-09-22 18:10:19: (mod_compress.c.683) -- handling file as static file<br>2014-09-22 18:10:19: (mod_staticfile.c.389) -- NOT handling file as static file, extension forbidden<br><br>This would suggest .sh extension is the problem, but I changed the name to .fcgi or whatever doesn't matter get the same error.<br><br>Maybe I need to use FCGI? New .lighttpd.conf:<br><br>   fastcgi.server += ( "/" =><br>     ((<br>       "socket" => "/tmp/ext-lnk-discover-server.sock",<br>       "bin-path" => "/data/project/ext-lnk-discover/public_html/cgi-bin/server.sh",<br>       "check-local" => "disable",<br>       "max-procs" => 1,<br>      ))<br>   )<br><br>Error.log now shows:<br><br>2014-09-22 18:21:20: (mod_fastcgi.c.1104) the fastcgi-backend /data/project/ext-lnk-discover/public_html/cgi-bin/server.sh failed to start:<br>2014-09-22 18:21:20: (mod_fastcgi.c.1108) child exited with status 0 /data/project/ext-lnk-discover/public_html/cgi-bin/server.sh<br>2014-09-22 18:21:20: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.<br>If this is PHP on Gentoo, add 'fastcgi' to the USE flags.<br>2014-09-22 18:21:20: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.<br>2014-09-22 18:21:20: (server.c.938) Configuration of plugins failed. Going down.<br><br>(this happens on webserver restart)<br><br>------------<br><br>I've tried other scripts: bash, Perl and csh with same results.<br><br>I'm beginning to think the problem is security, perhaps a jailed shell on the Grid? Any help appreciated!<br>Thanks,<br>GreenC<br></span>