I am having some problems in running cgi on my Apache (Windows, XAMPP), but the exe runs smoothly on the command prompt.
Reading the logs on Apache folder it gives no information about the error. Any ideas about this?
I am having some problems in running cgi on my Apache (Windows, XAMPP), but the exe runs smoothly on the command prompt.
Reading the logs on Apache folder it gives no information about the error. Any ideas about this?
You are a little light on the detail, so I'll just hazzard a guess.
chmod +x app_executable
Also make sure you are outputting the Content-Type: text/html (or whatever you are returning) followed by two newlines.
Is the file in the proper directory? Does Apache have the desired file/directory access rights to that directory? Can you run other CGI scripts from the same directory?
Weird.
I found the problem, it was in a sprintf("%f", f); where f wasn't initiated. This is weird, because it ran normal on my cmd but not on apache
any clues?