Главная страница


ru.cgi.perl

 
 - RU.CGI.PERL ------------------------------------------------------------------
 From : Alex Orlov                           2:5010/196.9   19 Dec 2000  02:12:50
 To : Vladimir N. Smirnov
 Subject : Скрипт не заводится...
 -------------------------------------------------------------------------------- 
 
 
 Однажды Понедельник Декабpь 18 2000 Vladimir N. Smirnov НН. All:
 
 >> внутрення ошибка - понятно. Hо что делать? Да, чуть ниже (в ошибке)
 >> говорится о том, что "сервер столкнулся с какой-то внутренней
 >> ошибкой... и    не способен завершить ваш запрос" * Crossposted in
 >> RU.CGI * Crossposted in RU.CGI.PERL
 
 VS> А как насчет того, чтобы сам скрипт или вырезки хотя бы из него
 VS> привести?
 
 Я с удовольствием бы закинул - длинющий он! :)
 Hо, вот что интересно:
 
 Это ошибка в логе
 
 ННН  Здесь начало 1 ННН
 
 [Mon Dec 18 17:51:02 2000] [error] [client 127.0.0.1] Premature end of script
 headers: d:/usr/cgi-bin/search.cgi
 [Mon Dec 18 17:51:02 2000] [error] [client 127.0.0.1] Can't locate CGI.pm in
 @INC (@INC contains: .) at d:/usr/cgi-bin/search.cgi line 52.
 [Mon Dec 18 17:51:02 2000] [error] [client 127.0.0.1] BEGIN failed--compilation
 aborted at d:/usr/cgi-bin/search.cgi line 52.
 
 ННН Здесь его конец ННН
 
 Теперь я приведу все что находится до 52 строки включая и её саму:
 ННН  Здесь начало 2 ННН
 #!d:\usr\local\bin\perl
 
 ############################################################
 #                                                          #
 # Virtual Visions :: "Fetch" Search Engine                 #
 # Script coded by Barracuda                                #
 # Email - baracuda@feartech.com                            #
 #                                                          #
 ############################################################
 
 # this is the url of your site
 
 $base_url = 'http://localhost';
 
 # this is the path equivalent of $base_url
 
 $base_dir = '/usr/www/home/ccr-online/public_html';
 
 # this is the url of fetch.pl
 
 $search_url = 'http://localhost/cgi-bin/search.cgi';
 
 # this is the path to header.shtml
 $header = '/usr/www/home/ccr-online/public_html/search_header.html';
 
 # this is the path to footer.shtml
 $footer = '/usr/www/home/ccr-online/public_html/search_footer.html';
 
 # the background color of fetch... behind the keyword field
 
 $bg = 'bgcolor=#084843';
 
 # the directories you want to search in, note the trailing "/"
 # you cannot search only '' as a directory and expect it to
 # search all of your directories if you have $subdirs set to
 # yes... you must specify directories
 
 @dirs = ('','guest_book/');
 
 # allow fetch to search in subdirectories of the above
 # directories?
 
 $subdirs = "yes";
 
 # what types of files do you want to search in? note that
 # htm works for htm, html, phtml, shtml, etc...
 
 @searchtypes = ('htm');
 
 ############################################################
 
 >use CGI qw(:standard);
 
 вот она, 52-я .
 
 $search = new CGI;
 }
 ННН Здесь его конец ННН
 
 То есть, ошибка выдается именно при обращении к "телу" скрипта. Все что выше
 52-ой - это только установки.
 
 VS> И на счет Internal Server Error, мож нет прав для работы с
 VS> этим скриптом?
 
 Я могу ошибиться, но за это отвечает addhandler в httpd.conf?
 Тогда у меня так прописанно: Addhandler cgi-script .cgi .pl .exe .bat
 
 Еще интересный момент: так как не хотят работать сложные (для меня) скрипты, я
 решил потестировать на простеньких.
 
 ННН  Здесь начало 3 ННН
 #!d:\usr\local\bin\perl
 print "Content-type: text/html\n\n";
 print "Сегодня: ",`$date`;
 ННН Здесь его конец ННН
 
 Этот "парень" отказывается работать.
 ННН  Здесь начало 4 ННН
 #!/usr/local/bin
 print "Content-type: text/plain\n\n";
 print "Hello world!";
 ННН Здесь его конец ННН
 
 А с этим все отлично! В общем, залез я в дебри, и вылезти не могу ;)
                                   Всего хорошего...
 
     "http://bmw777.narod.ru"  Russian BMW-club
 ---
  * Origin: A.V.Z. (2:5010/196.9)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Скрипт не заводится...   Alex Orlov   19 Dec 2000 02:12:50 
Архивное /ru.cgi.perl/1265239227.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional