Euphoria + CGI + Linux
- Posted by Erik-Jan van Kampen <e.vankampen at student.tudelft.nl> Oct 08, 2004
- 416 views
Hello all, I am trying to get a simple cgi-program to run on a Apache 2.0 server running on RedHat 9.0. The script I try to run is :
#!exu puts(1,"Content-type: text.html\n\n") puts(1,"<html>") puts(1,"<title>" & "TEST" & "</title>") puts(1,"</head>") puts(1,"<body>") puts(1,"TEST") puts(1,"</body>") puts(1,"</html>")
I have put exu with all of the includes and the scriptfile into the usr/local/apache2/cgi-bin directory and set the file permissions of exu and eutest.exu to -rwx--xr-x and all other files to -rw-r--r--. When I click on a link to this program I get the following server error(in the error log): (2)No such file or directory: exec of '/usr/local/apache2/cgi-bin/eutest.exu' failed When I run: exu eutest.exu or ./exu eutest.exu I get the correct output on screen, but when I try ./eutest.exu in the /cgi-bin directory I get the following error: : bad interpreter: No such file or directory Changing the first line of the script into #!./exu makes no difference What am I doing wrong? Thanks for any help, Erik-Jan van Kampen