Run a script with Apache2 in a certain directory

Posted by TheGatorade on Super User See other posts from Super User or by TheGatorade
Published on 2014-01-31T17:13:12Z Indexed on 2014/06/03 21:29 UTC
Read the original article Hit count: 336

Filed under:
|
|

I am trying to run WebMCP on an Apache2 server. It's got 2 executable files, which I have in /opt/webmcp/cgi-bin/webmcp.lua and /opt/webmcp/cgi-bin/webmcp-wrapper.lua

If I run the wrapper from a position that is not /opt/webmcp/cgi-bin it says it cannot find webmcp.lua and gives a 500 error.

enter image description here

If I run it from the correct directory it works.

My server has webmcp.lua set as directoryindex and it's giving 500 error. It may be because of this problem? /opt/webmcp/cgi-bin/ is already set as documentroot, and is accessible by www-data.

© Super User or respective owner

Related posts about linux

Related posts about apache2