|
|
|
c++ и cgi Apache Почему не работает?
|
|||
|---|---|---|---|
|
#18+
привет всем! У меня стоит Perl 5.8 + Apache 1.3.22 операционка Windows 2003 Server проблема в следующем когда я запускаю Perl скрипт http://localhost/cgi/index.pl ******************************* print "Content-type: text/html\n\n"; print "<H1>Hello World!</h1>\n\n"; ******************************* все работает нормально! создал программу hello.exe содержание: точно такой же код на C++ ***************************** #include <stdio.h> #include <stdlib.h> void main(){ printf ("Content-type: text/html\n\n"); print ("<H1>Hello World!</h1>\n\n");} ***************************** при запуске http://localhost/hello Браузер генерит ошибку 500 Internat Server error. В лог вносится сообщение "Premature end of script headers" Настройки Apache У меня такие ScriptAlias /cgi/ "D:/usr/local/cgi/" <Directory "D:/usr/local/cgi/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> AddHandler cgi-script .cgi .bat .exe ScriptInterpreterSource registry В ЧЕМ ПРОБЛЕМА МОЖЕТ CGI ВООБЩЕ ПОД ВИНДЫ НЕ РАБОТАЕТ? КТО СТАЛКИВАЛСЯ НАПИШИТЕ КАК РЕШИТЬ ПРОБЛЕМУ. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.08.2006, 13:45 |
|
||
|
c++ и cgi Apache Почему не работает?
|
|||
|---|---|---|---|
|
#18+
***************************** #include <stdio.h> #include <stdlib.h> void main(){ printf ("Content-type: text/html\r\n\r\n"); print ("<H1>Hello World!</h1>\n\n");} ***************************** ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.08.2006, 10:57 |
|
||
|
c++ и cgi Apache Почему не работает?
|
|||
|---|---|---|---|
|
#18+
void main(){ printf ("Content-type: text/html\r\n\r\n"); print ("<H1>Hello World!</h1>\n\n");} НЕ помогло! опять Error 500 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.08.2006, 16:53 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=337&tid=2030590]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
47ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 211ms |
| total: | 336ms |

| 0 / 0 |
