Форум: Форум PHPФорум ApacheФорум Регулярные ВыраженияФорум MySQLHTML+CSS+JavaScriptФорум FlashРазное
Новые темы: 0000000
Объектно-ориентированное программирование на PHP. Авторы: Кузнецов М.В., Симдянов И.В. Самоучитель PHP 5 / 6 (3 издание). Авторы: Кузнецов М.В., Симдянов И.В. PHP 5/6. В подлиннике. Авторы: Кузнецов М.В., Симдянов И.В. PHP Puzzles. Авторы: Кузнецов М.В., Симдянов И.В. PHP. Практика создания Web-сайтов (второе издание). Авторы: Кузнецов М.В., Симдянов И.В.
ВСЕ НАШИ КНИГИ
Консультационный центр SoftTime

Форум Apache

Выбрать другой форум

 

Здравствуйте, Посетитель!

вид форума:
Линейный форум Структурный форум

тема: помогите настроить CGI
 
 автор: NexGen   (20.12.2011 в 14:36)   письмо автору
 
 

Здравствуйте, помогите подружить вертолет с CGI, гуглил много, но настроить не удается.

Апач ставил отсюда apachelounge[]com и пробовал отсюда apache[]org

Perl тянул отсюда activestate[]com

настройки в httpd.conf
раскоментировал AddHandler cgi-script .cgi
добавил в конце ScriptInterpreterSource registry

создал 1.cgi с содержанием:
#!perl -w
print "Content-type: text/html\n\n";
print "fu<br>\n";

закидываю в корень и в cgi-bin, пробую открыть и получаю:

Forbidden
You don't have permission to access /1.cgi on this server.


или

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.


что я неправильно делаю? почему не работает?

  Ответить  
 
 автор: ,,,,,,,,   (21.12.2011 в 19:57)
 
   для: NexGen   (20.12.2011 в 14:36)
 

ScriptAlias или Options ExecCGI должно присутствоват


The ScriptAlias directive has the same behavior as the Alias directive, except that in addition it marks the target directory as containing CGI scripts that will be processed by mod_cgi's cgi-script handler. URLs with a case-sensitive (%-decoded) path beginning with URL-path will be mapped to scripts beginning with the second argument, which is a full pathname in the local filesystem.
Example:

ScriptAlias /cgi-bin/ /web/cgi-bin/

A request for http://example.com/cgi-bin/foo would cause the server to run the script /web/cgi-bin/foo. This configuration is essentially equivalent to:

Alias /cgi-bin/ /web/cgi-bin/
<Location /cgi-bin >
SetHandler cgi-script
Options +ExecCGI
</Location>

  Ответить  
Rambler's Top100
вверх

Rambler's Top100 Яндекс.Метрика Яндекс цитирования