|
|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Roman Kondrashin 2:5020/400 05 Nov 2001 16:25:44 To : Evgeniy Uzorin Subject : Re: Hеработают скрипты в PWS -------------------------------------------------------------------------------- "Evgeniy Uzorin" сообщил в новостях следующее: > У меня небольшая проблема выходит. Установил на компьютер ActivePerl 5.623 > для win98 и microsoft personal web server. Это, я так понял, нужно, чтобы > cgi можно было бы запускать через IE у себя на компьютере. Разрешил доступ > на выполнение директории cgi-bin, директории perl/bin и perl/lib. И есть > простой скрипт: > #!perl > #first.cgi > print "Content-Type: text/html\n\n"; > print "<HTML><BODY>"; > print "<H1>Hello you!!!</H1>"; > print "</BODY></HTML>"; > > но iexlorer почему-то всё время выдаёт: HTTP 500 - Внутренняя ошибка сервера > похоже что сервер не ассоциирует расширение .cgi с интерпретатором перла. > Или ещё что? В документации написано, что нужно в реестре какую-то карту > расширений составлять. А как это делать-то? > === MSDN === FP2000: How to Use Perl with Microsoft Personal Web Server on Windows 95/98 SUMMARY The following article describes how to set up the Microsoft Personal Web Server to use the Windows version of Perl. This allows you to run Perl scripts on the Microsoft Personal Web Server. This article also includes a sample Perl script that can be used to test the Perl engine on your computer. MORE INFORMATION WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD). How to Configure the Microsoft Personal Web Server to Use Perl For security reasons, you do not want Perl.exe to exist in any directory that can be browsed from other computers. With a script mapping in the registry, you can place the Perl.exe outside of the normal directory structure and avoid such security risks. On the Start menu, click Run. In the Open box, type Regedit and click OK. Open the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC \Parameters\ScriptMap On the Edit menu, point to New, and click String Value. Name the value .pl and press ENTER. Select .pl, and click Modify on the Edit menu. In the Value Data box, type <the full path to perl.exe>\perl.exe %s %s NOTE: The "%s %s" is case sensitive (for example, "%S %S" will not work). Close the Registry Editor, and restart your computer. NOTE: Some versions of PERL automatically add this registry key when you install. === MSDN === Перевод, надеюсь, не нужен. --- ifmail v.2.15dev5 * Origin: MTU-Intel ISP (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/910453dde44e.html, оценка из 5, голосов 10
|