Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 16th, 2001, 01:09 PM
JennyW JennyW is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 15 JennyW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Perl beginner - Jenny needs help!

Hi,
I’m a VERY new beginner.

I have Perl and Apache on my computer.
I want to start testing CGI scripts for my website, but I don’t know where to go from here.

In order to get Apache to run a CGI script I was told to add ExecCGI to the “Options” line in the httpd.conf file.

I added it, then I made a script called, simple.cgi. I tested the script in IE at the http://127.0.0.1/cgi-bin/simple.cgi address, but I got the “Connection Refused” window.

Does anyone know what I’m doing wrong?

Thanks for your time,
Jenny

Reply With Quote
  #2  
Old May 17th, 2001, 08:01 AM
Pressly Pressly is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 48 Pressly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Execute Permission

I've never done exactly what you are doing, so this may be a case of the blind leading the blind.

It sounds like you need to set Execute Permission to Everyone. I use my FTP program to set this on the remote server that hosts my scripts. You might give it a try.

Reply With Quote
  #3  
Old May 17th, 2001, 08:37 AM
JennyW JennyW is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 15 JennyW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Pressly,

No, that's not what I mean, I just want to test CGI scripts on my own. I don't want anyone logging on my PC.

Thanks anyhow,
Jenny

Reply With Quote
  #4  
Old May 17th, 2001, 10:26 AM
Pressly Pressly is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 48 Pressly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Set Owner to Execute

Oops! Of course.

In that case grant Execute permission to Owner only.

Reply With Quote
  #5  
Old May 17th, 2001, 09:08 PM
JennyW JennyW is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 15 JennyW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi people!

Pressly, thanks for the responses.
I already added the ExecCGI command to the options line in my httpd.conf file.

Is that what you meat when you wrote...
"In that case grant Execute permission to Owner only."

I still can't get my CGI scripts to work.

I'm pulling my hair out!

Thanks,
Jenny

Reply With Quote
  #6  
Old May 17th, 2001, 09:34 PM
electricmonk electricmonk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 0 electricmonk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to electricmonk
Actually, if you are getting "Connection Refused" messages, odds are that it is not an Apache configuration problem. "Connection Refused" could mean that Apache simply isn't running or you could possibly have some kind of local firewall rules that prevent you from connecting to localhost (doubtful). If it just wasn't executing CGI scripts, it would either output the source of the script, or, at the most, give you a 404: Not Found message.

Reply With Quote
  #7  
Old May 18th, 2001, 12:05 AM
Jessman72 Jessman72 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Centreville, Alabama
Posts: 25 Jessman72 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m 3 sec
Reputation Power: 0
Send a message via AIM to Jessman72
If you are running the web server from a windows platform, the you should be using .pl and not .cgi. Also make sure that you have an entry in your path statement such as c:\perl\bin and you'll need to associate .pl files to c:\perl\bin\perl.exe...help menu can walk you thru this.



AddHandler entry in httpd.conf should look like this

AddHandler cgi-wrapper .pl

make sure that add handler is not commented out.

Reply With Quote
  #8  
Old May 18th, 2001, 06:38 PM
JennyW JennyW is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 15 JennyW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Jessman72, electricmonk and Pressly!

I have another thread that's taking the same route as this one.
I find all of your comments informative and useful and was wondering if you could possibly check out this thread...

http://forums.devshed.com/showthrea...51241#post51241

I don't want to clog this great forum with double posts.

If you have the time I'd appreciate your help with my new problems.

Thanks guys,
Jenny

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Perl beginner - Jenny needs help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway