Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Perl Scripts under Apache on Win32

Apache

Running Perl Scripts under Apache on Win32

by  missbarbell  Posted    (Edited  )
You're running a version of Windows, you've installed your Apache Web Server and Perl from ActiveState, you've also created a new web directory to process your scripts, but you keep getting errors.

Usually the first response is to change the shebang line, thats the first line that usually looks like this:

#!/usr/bin/perl

However, if you then port the script to a Win32 OS, in some cases you'll have to change the line again.

Thankfully Apache have a simple answer to this. Inside the http.conf file there is a line which is specifically for Win32 machines. Find the following line and uncomment it:

ScriptInterpreterSource registry

This will ensure that Apache looks up the correct location within the Windows Registry rather than refering to the shebang line.

Barbie.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top