However, this is what the program i try with look like:
int main(int argc, char *argv[])
{std::cout<<"Content-type: text/html\n\n";
std::cout<<"along with some other text\n";
return(0);}
When I run this on the server I get the message"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.", which is the same error I have received when i've, for example, tried to run a perl script with some error in it.
I have, by the way, managed to run perl scripts with .cgi in the same way i am trying to execute c++ programs.
As I said, there is possibly some other error than broken code. This is how I do when I upload my program (of which i'm unsure of how it should be done)
I'm using Linux.
prompt comment
g++ test.cc -o test.out
mv test.out test.cgi
./test.cgi test.cgi works fine here
gftp& ftp program
- -
[in gftp:
transferring test.cgi to /test.cgi/
i have the ftp program set to ascii mode and the correct permissions]
then i open /test.cgi/ in firefox and the error appers.
This is my first post so i can't easily post links. However /test.cgi is located at www DOT yuide DOT se /test.cgi
Any ideas what might be the error?


Sign In
Create Account

Guest_yuide_*
Back to top










