![]() |
|
#1
|
|||
|
|||
Hello world as a CGI under linux/apache, GRRR!I'm trying to get a simple hello world program to run as a cgi application on apache/linux. Just a simple old hello world program, no big deal. In the 'K Develop' compiler in RedHat 9, I create a new terminal c project. It compiles and I can run it just fine in the terminal, but I cant run it as a CGI!!!!!!! I get an internal server error Grrr!!! Can you help?
CPP / C++ / C Code:
|
|
#2
|
|||
|
|||
|
Sounds like more of a server config error than anything else. You've correct permissions set, and you've Apache set up to allow execution of C programs?
Remember also, that Apache won't be nice to your programs, and you'll have to supply the Content type header yourself: Code:
GF |
|
#3
|
|||
|
|||
|
I finally figured it out, i needed to run
chmod a+x [FILE] and once i did, it worked just fine. It seems my C programs dont work, but my perl scripts do and they also work when I compile the perl scripts. Thanks. I hope someone finds this, because there are so many sites that have the problem on there, but tell about the server config. I had looked at the permissions of the file and they were all OK, had execution rights, etc etc. But once I did the chmod command, it worked fine. Thanks. |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Birthdays: Popular 'Computer World' Personalities | JdS | Open Discussion Forum | 6 | 12-Oct-2003 11:27 |
| New-Window Links in a Standards-Compliant World | jrobbio | Web Design Forum | 8 | 13-Aug-2003 07:38 |
| FIFA World Cup 2002 | Andrew | Sports Forum | 48 | 29-Jun-2002 05:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The