On Wednesday 07 July 2004 12:15, Jerry Preston wrote: > I am looking for a way to run Active Perl CGI on my PC that is setup on > Windows XP. I have installed Apache and I am trying to figure out how > to > set it up the Virtual Host mode to run Perl script with CGI like I do on > my > work SUN station. Any ideas on how do this or is there a better way?
Hi Jerry, what exactly do you mean by saying "set it upt the Virtual Host mode"? I'm running CGI scripts written in Perl on a W2K machine - the steps for setting this up are (more or less): - install ActivePerl out of the box - (optional:) add ".pl" to the PATHEXT environment variable (this lets you execute "*.pl" scripts without having to type the ".pl". - install Apache - add/modify the following lines in your httpd.conf: # call Perl to execute .pl scripts AddHandler cgi-script .cgi .pl # use the Perl interpreter you find in the registry (as opposed to the on # specified on the first line of your perl script); setting this option may # help if you want to be able to run your scripts on Unix and Windows. ScriptInterpreterSource Registry Now you've got multiple choices: a) put your perl scripts into apache's cgi-bin directory b) create a directory entry for the path where your CGI scripts are: <Directory "D:/myperlscripts/web"> # This line is necessary for CGI scripts Options FollowSymLinks ExecCGI # Tailor as you need Order allow, deny Allow from all </Directory> c) create a virtual host, set the document root and add the Options shown above in the directory entry. For me, this is working nicely. I've read about successful installations of mod_perl on Windows as well (which should be better in terms of performance), but I couldn't get it working. HTH, Philipp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>