GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Dec-2004, 02:10
mrodent mrodent is offline
New Member
 
Join Date: Dec 2004
Posts: 2
mrodent is on a distinguished road

pls help newbie w/first step in CGI!!


hi,

OS is WXP...

I am simply trying to run a simple perl script... I have set up Apache 1.3 and displayed html files in /htdocs...

I have put a simple file hello.pl in /cgi-bin. The first line of this file is #!/usr/bin/perl -w... which may well be wrong as this line works for the perl installation on the machine itself... shouldn't this line point to the server's perl interpreter????? but I can't find a likely candidate

I am following a couple of guides: modperlbook.org and the SAMS book "TYPerl in 24 hours"...

when I point my browser to localhost I just get "Internal server error, see the webmaster". Unfortunately the webmaster is incompetent.

do I need to explicitly install mod_perl or sthg? I am floundering!

Mike
  #2  
Old 29-Dec-2004, 03:38
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
installing perl sounds like a good choose
you can get it at http://activeperl.com/Products/ActivePerl/

then you can point your scripts to it, and see if it works.
mod_perl is an Apache module which should be very easy to install IIRC

with XAMPP you will have everything you need in one package
http://sourceforge.net/projects/xampp/
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 29-Dec-2004, 04:17
mrodent mrodent is offline
New Member
 
Join Date: Dec 2004
Posts: 2
mrodent is on a distinguished road
Quote:
Originally Posted by Allowee
installing perl sounds like a good choose
you can get it at activeperl.com

then you can point your scripts to it, and see if it works.
mod_perl is an Apache module which should be very easy to install IIRC

with XAMPP you will have everything you need in one package
sourceforge.net

thanks for the reply but...
1. I think you can assume I have installed perl
2. clearly I am not finding it "easy to install", so this is not a very helpful comment
3. I don't know what "IIRC" means
4. OK I've had a look at sourceforge, thanks... but I don't want to install PHP and MYSQL and all that gubbins, I want to ***UNDERSTAND*** how to invoke my server's perl interpreter, if it has one...
  #4  
Old 03-Jan-2005, 10:23
ManageMyService ManageMyService is offline
New Member
 
Join Date: Nov 2004
Posts: 10
ManageMyService is on a distinguished road
Make sure the script is chmodded 755 and the perl path is correct...
  #5  
Old 02-Feb-2005, 18:31
dnm1 dnm1 is offline
New Member
 
Join Date: Feb 2005
Posts: 4
dnm1 is on a distinguished road
Quote:
Originally Posted by mrodent
hi,

OS is WXP...

I am simply trying to run a simple perl script... I have set up Apache 1.3 and displayed html files in /htdocs...

I have put a simple file hello.pl in /cgi-bin. The first line of this file is #!/usr/bin/perl -w... which may well be wrong as this line works for the perl installation on the machine itself... shouldn't this line point to the server's perl interpreter????? but I can't find a likely candidate

I am following a couple of guides: modperlbook.org and the SAMS book "TYPerl in 24 hours"...

when I point my browser to localhost I just get "Internal server error, see the webmaster". Unfortunately the webmaster is incompetent.

do I need to explicitly install mod_perl or sthg? I am floundering!

Mike

Internal server error normally means that there is something wrong with the code itself. You would have to point the line #!/usr/bin/perl -wto where perl is installed. to determine that run this command

whereis perl

After you verify that make sure that you can run the script. To do that go to the directory where it is and type

chmod +x hello.pl

If that doesnt work chances are there is just an error in your code itself.
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am a total Newbie Silverblade Apache Web Server Forum 1 30-May-2004 15:35
linked lists, newbie needs help moltarim C Programming Language 4 06-May-2004 11:32
newbie using Sam's series Skampy CPP / C++ Forum 3 06-Mar-2004 18:51
Help this girl!! PHP NEWBIE! soulja90 MySQL / PHP Forum 3 06-Mar-2004 10:35
Newbie help with unary ops Tony C Programming Language 2 04-Jan-2004 19:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.