I want to use a cgi script

I want to use a cgi script and I cant figure out where exactly I need to put the script in what directory and how to call it from a browser.

So far I put my script in the 

/var/lib/cgi-bin

directory and made it executiable

chmod a+x

Now when I go to the browser I tried 

http://<my-cloud-ip>/www/mycgiscript.cgi

and got a 404 Not Found Message.

Any help would be greatful.

Thanks

That’s because www/mycgiscript.cgi

doesn’t point into the mapped CGI structure.

CGI’s are recognized by the use of …/cgi-bin/… in the path.

Consult the documentation for Apache 2 for details.

Thanks for the reply. I have done some reading but found no solution yet. Looks like a configuration issue that I will try and figure out and will post my results if and when its happens.

TDmike wrote:

Thanks for the reply. I have done some reading but found no solution yet. Looks like a configuration issue that I will try and figure out and will post my results if and when its happens.

 

Recently there has been a report in this forum about successful use of apache in MyCloud.