|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Serve C pages from Apache on Win XP.
Hi,
I have Apache 1.3.14 setup on Windows XP and running smoothly. It has Perl and PHP configured to serve pages as well. I want to be able to run C CGI applications from apache, but I am not sure how to configure it. I had an installer setup apache and php and perl etc. I have the following program written just to test it: Quote:
Any advice on how to get this program running would be appreciated. Thanks in advance.
__________________
Cheers, Michael Bray |
|
#2
|
|||
|
|||
|
Because you need to compile it.
|
|
#3
|
|||
|
|||
|
I know I have to compile it. I have compiled it, and placed it in the htdocs directory of apache as test.exe
It is not doing anything to the browse. It is not executing... I need to know how to get apache to realise it has to print the output to the browser. |
|
#4
|
|||
|
|||
|
Because htdocs directory by default is not where you should put your cgi scripts into. You need to put it in your cgi-bin. And cgi-bin by default doesn't reside under htdocs.
|
|
#5
|
||||
|
||||
|
If you have php why not use something like:
pippo.php PHP Code:
just some thoughts...
__________________
My article: mod_rewrite: No More Endless Loops! |
|
#6
|
|||
|
|||
|
Thanks. I can't believe I forgot to place it in the CGI-Bin. I am used to whacking my PHP scripts in the htdocs directory. Bad habit
![]() |
|
#7
|
|||
|
|||
|
I reply to pippo: Executing the C file by itself is quicker then having to execute it from a PHP file. I am eventually wanting to develop high-end CGI applications in C, so I don't want PHP to slow it down
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Serve C pages from Apache on Win XP. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|