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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl and Apache

Status
Not open for further replies.

tr0ss

Programmer
Feb 12, 2002
3
0
0
US
I'm pretty much a newbie, but I've installed Apache and PHP on my PC. My church's web host only accepts Perl/cgi-bin type stuff. I'd like to install Perl on my machine and configure Apache to accept perl as well as PHP.

Can anyone point me to a place which describes how to configure Apache to handle perl scripts?

Thanks!
 
Right, but how does Apache know to send my .cgi file to the Perl interpreter loaded on my machine? There isn't any directive in my httpd.conf file telling Apache where my perl.exe is on my machine.
 
The first line of a perl script is called the shebang line. it tells the script where the perl interpreter is.
 
The directive to locate the Perl interpreter is in the first line of the script to be run. Usually it is
#!/usr/bin/perl
 
faq452-653 does a cursory overview of doing CGI with Perl. 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top