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

Noobie To Setting Up Perl On Apache 1

Status
Not open for further replies.

Zippyflyer

Technical User
Aug 17, 2003
44
US
Im Running A Site On Apache And I Want To Run Perl Scripts But I Have No Idea How To Go About Doing It,
Any And All Help Will Be Appreciated Please Keep In Mind I Have No Idea What I Am Doing :) Thanks.
 
If you are using the default setup for apache, then you just need to put your scripts in the cgi-bin directory.
 
just to clarify matters...

just put your perl program in the cgi-bin directory (for completeness, give the program a .cgi extension instead of .pl). next, make the program executable (this is done using the chmod command in your shell, if you're running Linux/Unix). you should then (in theory!) be able to run the script by typing the following into your browser:


if this doesn't work i suggest you read the error message (i.e. not found, no permission) and then consult the server's access error log (both are in the logs directory). they should give you a clue as to why it didn't work.

hope that helps
TheSaltyDuke

[pipe]
 
should have explained problem more sorry, im on windows xp and i keep getting internal server error when i try to execute the script, chmod? how? (like i said new to all of this step by step please) thanks for the replies though.
 
Sorry to hear about the XP thing but if you're not planning on getting over it soon, you may be able to find a perl distro here:
You have a choice of the whole perl package or the perl module. If you are brand new to this, get the one that has apache and perl together. I think it's the IndigoPerl package. If you have the choice of getting the msi rather than the zip file, get the msi one. It installs a lot easier. Get well soon.
 
ok i got the new server installed works great thanks, but i still get the error on my script, its a prefab so it should run fine, tried to reconfigure it by copying the first line of other scripts included with the new kit installed and pasting it into the prefab script i wish to use, the error log says "script compilation errors", any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top