* [Comm] Как запустить перл скрипты на apache2
@ 2011-10-30 3:43 Vasiliy Vasilievich Zdanovskiy
2011-10-30 5:49 ` Nikolay A. Fetisov
0 siblings, 1 reply; 4+ messages in thread
From: Vasiliy Vasilievich Zdanovskiy @ 2011-10-30 3:43 UTC (permalink / raw)
To: ALT Linux Community general discussions
Доброго времени суток.
Столкнулся с такой проблемой:
поставил апач 2
зашел на http://localhost/cgi-bin/printenv
и получил вместо вывода перла код скрипта в виде html
в логах видно, что перл модуль есть.
AddHandler cgi-cript .cgi .pl в файлике extra-enabled/httpd-mime.conf
раскомментирован
модуль apache2-mod_perl-2.0.4-alt1.1 установлен
http://localhost/cgi-bin/printenv.pl дает тот же результат.
Подскажите пожалуйста где его пнуть, чтобы заработало.
Больше ничего в конфигах не стоит.
ALT Linux 6.0.1 KDesktop (Centaurea Sadleriana)
3.0.7-std-def-alt0.M60P.1 #1 SMP
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Как запустить перл скрипты на apache2
2011-10-30 3:43 [Comm] Как запустить перл скрипты на apache2 Vasiliy Vasilievich Zdanovskiy
@ 2011-10-30 5:49 ` Nikolay A. Fetisov
2011-10-30 14:34 ` Vasiliy Vasilievich Zdanovskiy
0 siblings, 1 reply; 4+ messages in thread
From: Nikolay A. Fetisov @ 2011-10-30 5:49 UTC (permalink / raw)
To: community
В Вск, 30/10/2011 в 05:43 +0200, Vasiliy Vasilievich Zdanovskiy пишет:
> Столкнулся с такой проблемой:
> поставил апач 2
> зашел на http://localhost/cgi-bin/printenv
> и получил вместо вывода перла код скрипта в виде html
> в логах видно, что перл модуль есть.
...
> Подскажите пожалуйста где его пнуть, чтобы заработало.
Для /cgi-bin/ - достаточно включить mod_cgi, mod_perl не нужен вообще.
В общем случае, для работы через CGI (для чего mod_perl не нужен) -
включить mod_cgi,
# a2enmod cgi
Плюс включить для соответствующего Location ' Options +ExecCGI', или
описывать его через ScriptAlias.
Для работы через mod_perl (для чего mod_cgi не нужен) - включить
mod_perl (a2enmod perl), для соответствующего Location установить
'SetHandler perl-script' и 'Options +ExecCGI'.
--
С уважением,
Николай Фетисов
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Как запустить перл скрипты на apache2
2011-10-30 5:49 ` Nikolay A. Fetisov
@ 2011-10-30 14:34 ` Vasiliy Vasilievich Zdanovskiy
2011-10-30 15:55 ` Aleksey Avdeev
0 siblings, 1 reply; 4+ messages in thread
From: Vasiliy Vasilievich Zdanovskiy @ 2011-10-30 14:34 UTC (permalink / raw)
To: ALT Linux Community general discussions
Как все изменилось. А где бы об этом почитать? Раньше было все просто
- вписал строчку в httpd.conf и все. :-(
30 октября 2011 г. 7:49 пользователь Nikolay A. Fetisov
<naf@naf.net.ru> написал:
> В Вск, 30/10/2011 в 05:43 +0200, Vasiliy Vasilievich Zdanovskiy пишет:
>> Столкнулся с такой проблемой:
>> поставил апач 2
>> зашел на http://localhost/cgi-bin/printenv
>> и получил вместо вывода перла код скрипта в виде html
>> в логах видно, что перл модуль есть.
> ...
>> Подскажите пожалуйста где его пнуть, чтобы заработало.
>
> Для /cgi-bin/ - достаточно включить mod_cgi, mod_perl не нужен вообще.
>
>
> В общем случае, для работы через CGI (для чего mod_perl не нужен) -
> включить mod_cgi,
> # a2enmod cgi
> Плюс включить для соответствующего Location ' Options +ExecCGI', или
> описывать его через ScriptAlias.
>
> Для работы через mod_perl (для чего mod_cgi не нужен) - включить
> mod_perl (a2enmod perl), для соответствующего Location установить
> 'SetHandler perl-script' и 'Options +ExecCGI'.
>
>
> --
> С уважением,
> Николай Фетисов
>
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-30 15:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-30 3:43 [Comm] Как запустить перл скрипты на apache2 Vasiliy Vasilievich Zdanovskiy
2011-10-30 5:49 ` Nikolay A. Fetisov
2011-10-30 14:34 ` Vasiliy Vasilievich Zdanovskiy
2011-10-30 15:55 ` Aleksey Avdeev
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git