Наши скрипты > Sanitarium WebLoG

WebLog и Win32

(1/4) > >>

fozzy:
что касается сабжа, тут следует еще две вещи учесть ...как минимум...
у меня апач под win32, требует, чтобы в первой строке перлового скрипта было
#! perl,
т.е., "нормальный" путь до программы-парсера.
в "юниксовых" вариантах , как водится #!/usr/bin/perl
Это не юникс плохой, с этим просто считаться надо :)
или подскажите, где поднастроить, чтоб этот момент был не принципиален...второе посерьезнее:

Content-type: text/html Pragma: no-cache Error: Can\'t open D:\\PROGRA~1\\APACHE~1\\Apache\\cgi-bin\\wl/template, reason:No such file or directory at d:/program files/apache group/apache/cgi-bin/wl/admin/admin.cgi line 1457.
-- проблема в "\\" vs "/" -- или мне просто в конфигах следует просто все "вонючие" пути указывать через "/" (перл эту ситуацию вроде как разруливает...щас попробую), или все же придется в коде
скриптов делать поддержку и того, и того? т.е., например заводить константу\\переменную $DIR_SEPARATOR и анализировать переменную $^0? :)

вообще, на тему взаимодействия -- может нам где-нить CVS завести? :)

на том же сорсефордже? :)

NAS:

--- Цитировать ---#! perl,
т.е., "нормальный" путь до программы-парсера.
в "юниксовых" вариантах , как водится #!/usr/bin/perl
Это не юникс плохой, с этим просто считаться надо
--- Конец цитаты ---


А может Перл установить так, чтобы и в вин путь #!/usr/bin/perl  отрабатывался ?

fozzy:
сабж...что-то с таким в Rtfm от Activestate не встречался...
кстати, переписать все пути на "/" Тож не помогло...все та ж ошибка вылетает...то есть, с директори сепаратором все-таки надо считаться...
насчет остального-то как, я тут с утрянки напостил уже всего :)

fozzy:
...я сейчас еще проверю все...может, дело не столько в \\ или /,
может перл на длинных именах падает\\к регистру чувствителен....сейчас пошаманим....

tsd:

--- Цитировать ---#
# Apache parses all CGI scripts for the shebang line by default.
# This comment line, the first line of the script, consists of the symbols
# pound (#) and exclamation (!) followed by the path of the program that
# can execute this specific script.  For a perl script, with perl.exe in
# the C:\\Program Files\\Perl directory, the shebang line should be:

   #!c:/server/perl/bin/perl

# Note you _must_not_ indent the actual shebang line, and it must be the
# first line of the file.  Of course, CGI processing must be enabled by
# the appropriate ScriptAlias or Options ExecCGI directives for the files
# or directory in question.
#
# However, Apache on Windows allows either the Unix behavior above, or can
# use the Registry to match files by extention.  The command to execute
# a file of this type is retrieved from the registry by the same method as
# the Windows Explorer would use to handle double-clicking on a file.
# These script actions can be configured from the Windows Explorer View menu,
# \'Folder Options\', and reviewing the \'File Types\' tab.  Clicking the Edit
# button allows you to modify the Actions, of which Apache 1.3 attempts to
# perform the \'Open\' Action, and failing that it will try the shebang line.
# This behavior is subject to change in Apache release 2.0.
#
# Each mechanism has it\'s own specific security weaknesses, from the means
# to run a program you didn\'t intend the website owner to invoke, and the
# best method is a matter of great debate.
#
# To enable the this Windows specific behavior (and therefore -disable- the
# equivilant Unix behavior), uncomment the following directive:
#
ScriptInterpreterSource registry

--- Конец цитаты ---

Кусок httpd.conf. :) Если под Апачем на локалхосте тестишь :)

Навигация

[0] Главная страница сообщений

[#] Следующая страница

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 
Перейти к полной версии