2014-12-21 9 views
0

저는 제 책과 저를 따랐습니다. -perl을 사용하여 HTML 양식을 배웁니다.

1 - 설치 한 Abyss 웹 서버, 개인용 에디션.

2 - 책의 echo.pl 파일을 웹 서버의 htdocs 폴더에 복사했습니다. 웹 서버를 다시 시작했습니다.

3 - 설치되어있는 활성 Perl. (실제로 이미 있었으므로 누가 넣었는지 모르겠습니다.) http://localhost/echo.pl 링크를 방문하면 perl 파일 (Internet Explorer)이 표시되거나 perl 파일 (chrome)이 다운로드됩니다. 이 스크립트가 내 HTML 양식의 모든 요청을 처리하도록합니다. 어떻게해야합니까?

감사합니다.

답변

0

방금 ​​운이 좋았습니다. 나는 무엇을해야할지 전혀 모른다. 나는 그들의 웹 사이트에서 그들에 대해 조금 읽으려고 방황하고 있었다. 아파치가있을 때이 애매한 웹 서버를 누가 사용할 것인지 궁금했습니다. 다행히도 "& 지원"부분을 보았습니다. 필자는 스크립팅 언어 지원을 보았고 perl은 목록에 언급되었습니다. 나는 링크를 클릭하고 내 Windows 시스템에 대한 지침을 가지고. 여기에 - http://www.aprelium.com/abyssws/perl.html

Download and install Perl 

Download ActivePerl from http://www.activestate.com/Products/ActivePerl and install it. 
Declare the interpreter 

Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add Perl support. 
If there is no Hosts table in the main screen of your console, this means that you are using an old version of Abyss Web Server. Please upgrade to the latest version before proceeding. Upgrading is free, straightforward, and preserves your current server configuration. Click here to download the latest version. 

Select Scripting Parameters. 
Check Enable Scripts Execution. 
Press Add in the Interpreters table. 
Set Interface to CGI/ISAPI. 
Note that if you do not find an Interface field, you can ignore this step and continue with the following instructions. 

In the Interpreter field, press Browse..., go to the directory where you have installed Perl, click on the bin subdirectory, and click on perl.exe. 
Check Use the associated extensions to automatically update the Script Paths. 
Press Add in the Associated Extensions table. 
Enter pl in the Extension field and press OK. 
Press again Add in the Associated Extensions table. 
Enter cgi in the Extension field and press OK. 
Press OK 
Press OK in the Scripting Parameters dialog. 
Declare new index files 

Select Index Files. 
Press Add in the Index Files table. 
Enter index.pl in the File Name field and press OK. 
Press again Add in the Index Files table. 
Enter index.cgi in the File Name field and press OK. 
Apply the modifications 

Press Restart to restart the server.