Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI'm also having trouble getting CGI to work.
I am using the Altera 1C20 board. I've created a kernel and file system following the quickstart guide. I've added my html files to the httpd directory. <html> <head> <title>CGI script test</title> </head> <body> <form method="get" action="http://202.112.147.82/cgi-bin/test.cgi"> <input type="submit" value="ok"> </form> </body> </html> Inserting my own IP address... Added a subdirectory /cgi-bin/ Added the "ScriptAlias /home/httpd/cgi-bin/ /cgi-bin/" to the boa.conf file. Then I created the script: # ! /bin/sh # # cgi-bin/test.cgi# echo "Content-type: text/html\n\n" echo echo "The cgi script is working\n" I saved the script as test.cgi.exe in my filesystem /home/httpd/cgi-bin Which when uploaded changed to test.cgi. I bring up the server, and get the page that has the "OK" button which should kick off the script. I press the button and get a "500 Server Error" back. Any clue as to what I'm forgetting? Thanks, Scott