Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI'm using scripts because it reduces my debug time if I do everything on Nios II Linux. So, I've gone into the boa.conf file and I've moved my document root from /home/httpd to /var/www and I use "busybox vi" to make a new index.html and test.cgi each time I try these tests.
Things to watch out for: (1) Your CGI script must end with a .cgi suffix... i.e. test.cgi... or foo.cgi... or bar.cgi... (2) If you're compiling a C program to be your CGI script, then you should compile it to foo.cgi.exe... This will be renamed to foo.cgi and it will be given execute permissions when the filesystem is built. (3) Finally, the CGI script *must* have execute permissions... try executing your script from the commandline. If it doesn't *exactly* spit out:Content-type: text/htmlnn
The cgi script is workingn Then there's something wrong with the script itself. I really have no idea why you're getting those server errors. I'm assuming that ip address you've listed in the IP address for your Nios II Linux Board. I tried the same thing except with my own IP address (10.1.1.125) and it found the test.cgi file without a problem. Can you show me what is exactly in your document root directory (recursively)?