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

Starting Perl (Is it a service on Linux?)

Status
Not open for further replies.

kmann2

Technical User
Oct 26, 2004
1
US
I am trying to setup a website and don't really don't want to know a new language. I can edit perl scripts etc., but wonder if perl is running on their Linux server as a service of has to be involked in some manner. If I put the .pl program in the HTML file will it automatically run? I am using any auction software that just requires paths and such. Any help would be sincerely appreciaated...kmann
 
To run perl scripts for the web Perl must be installed and the web server must be running. Furthermore, the web server must be able to execute your perl script and know when to do so. The usual setup is that perl scripts are put into a 'cgi-bin' directory and the web server knows to execute any scripts put in there. The specifics of how this works depend on what web server is running and how it is set up.

Since it's a Linux server it's most likely running Apache. See if you have a cgi-bin directory and try putting your script in there. Then from a web browser go to your web site's address with "/cgi-bin/yourscript.pl" appended to the end. You may need to change your script's extension to .cgi instead of .pl, but again the web server's setup determines this.

 
spear??


Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top