|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
Set Owner to Execute
Oops!
Of course.In that case grant Execute permission to Owner only. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Perl beginner - Jenny needs help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|