Project

General

Profile

[UserError] cgi on raspberry pi

Added by RobWarning over 6 years ago

Hi
I try to get the lighttpd cgi function working for c++ on a raspberry pi.
I followed all the steps in following webpage: <removed> but this is not working.
if I browse to the IP of my raspberry pi I get the standard lighttpd web page. so lighttpd is running.
but if I extend the web address with 'hello.cgi ' or 'cgi-bin/hello.cgi' I get a 404 Not found.
I check the lighttpd.conf file with 'lighttpd -t -f /etc/lighttpd/lighttpd.conf' result is: Syntax OK
I also run 'lighttpd -tt -f /etc/lighttpd/lighttpd.conf' result is:2017-11-01 11:32:24: (plugin.c.187) Cannot load plugin mod_cgi more than once, please fix your config (lighttpd may not accept such configs in future releases)
So I removed the mod_cgi statement and the it was running without faults.
I have tried about a thousand things to get this working but without result.
I will include my lighttpd.conf file as word doc

please help!

Rob


Replies (5)

RE: cgi on raspberry pi - Added by stbuehler over 6 years ago

We certainly won't use word documents in this forum; the external link also didn't give much context, and I see no need for link advertisement here.

RE: cgi on raspberry pi - Added by RobWarning over 6 years ago

I am sorry for that,
what information can i provide to you in order to get any assistance?

RE: cgi on raspberry pi - Added by stbuehler over 6 years ago

Honestly, if you're uploading configuration text files as word docs, I'd say you want to pay someone else to do the job.

But maybe someone else in this forum is willing to walk you through this.

RE: cgi on raspberry pi - Added by gstrauss over 6 years ago

I have tried about a thousand things to get this working but without result.

Please use your favorite search engine and search for simple how-to instructions for using lighttpd and CGI. Start with the examples provided and get them working before you try to modify the instructions.

RE: cgi on raspberry pi - Added by RobWarning over 6 years ago

Thank you all, this has been very helpful!

    (1-5/5)