Apache 2.0.53 Adds support for Perl CGI scripts

xiaoxiao2021-03-05  24

Apache 2.0.53 Adds support for Perl CGI scripts

Configuring Apache Server

The first is the basic configuration so that your Apache Server runs with your will.

Use UltraEdit-32 (or other text editing software) to open the confhtpd.conf file.

1. Find the ServerName. Customize your domain name here. This way, when Apache Server is running, you can access your site in your browser. If there is a #, remember to delete it, this is a CONF annotation tag. 2. Find to ServerAdmin. Enter your E-mail address here. If you are just a stand-alone, you don't have any relationship. 3, find it. There is Options down, remove all the parameters behind, add an all (note case sensation! Next.); Then there is an allow override, which also removes all the parameters behind, add an all. 4. Find DocumentRoot. This statement specifies your website path, which is the directory where your home page is placed. You can use the default, you can specify one yourself, but remember, this is not? Quot; / ". In addition, the directory" "is written in Apache Server" / ". 5, find DirectoryIndex. This is Your site is the first display home page. Change this, you can start the apache server. Is it to see your homepage? If you can't, follow the steps above again.

Configuring Perl

To make your Apache Server support the CGI script, you should first install Perl for Win32. The process of installing is not detailed. This assumes that Perl is installed in the C: Perl directory. Open httpd.conf file.

1. Look for Scriptalias / CGI-BIN / "C: / Apache / CGI-BIN /". Deleting the previous #, put "" pointing to the directory you store the CGI script, that is, the CGI script in this directory can be executed. 2, find it. Point "" points to the directory you store the CGI script, which is the same as above. Change Options, Allow Override parameters are all. 3. Find the AddHandler CGI-script .cgi. Delete the front #, add .pl. Note: The Perl interpretation path in the CGI script is changed to: #! C: Perlbinperl. Otherwise, a 500 error will appear.

转载请注明原文地址:https://www.9cbs.com/read-36392.html

New Post(0)