Gossamer Forum
Home : General : Perl Programming :

running perl locally

Quote Reply
running perl locally
Hello all. I'm hoping you folks can help me with this problem. I installed Apache server on my win 98 system along with activestate perl, instalation wen fine, everything is working. so I went in and said up my cgi-bin as the instructions I found stated. No major problems yet. So going to my cgi-bin via http://localhost/cgi-bin I get a 403 (forbidden) error. This to I expected. Heres where the wierd stuff comes in. Now I added a small perl cgi script into the cgi-bin and when trying to call it (http://localhost/cgi-bin/calender/calender.pl) I get an error-- Can not find server or DNS error. I double checked the directory for the file, the spelling etc and all was correct. The I noticed IT. It seems its calling up a domain name that I registered a few years ago and no longer own? I noticed it in the status bar of my browser.

I am trying to get perl running on my system so I can work with LINKS and get it customized before uploading it to a server. Can anyone help me with this? I know it is a bit off topic but I have looked high and low (including in this forum) and have come up with nill. But I know this forum holds some pretty savvy people who propably could help me with this.

Thanks,
Ian Galloway
Quote Reply
Re: running perl locally In reply to
Try using the non-routable IP address of your local web server rather than localhost:

http://127.0.0.1/

Hope this helps.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: running perl locally In reply to
Thanks for the advice Eliot, I tried that and still nothing. This (http://www.gallowaysnet.com/cgi-bin/ri404.cgi) appeared in the address bar of my browser after typing the url http://127.0.0.1/cgi-bin/calender/calender.pl
which brought up a 404 error page. Any idea why it is searching for that domain name? This is the first time I've ever ran Apache from my home and do not have a DNS server. nor do I reference it in httpd.conf. httpd.conf is basically as it is out of the box, minus setting up SSi's and the cgi-bin. I did have a hosting company host that ddomain for me, but as I mentioned that was a while ago and I no longer have that domain name. I am stumped

Thanks again you're always a great help
Ian Galloway
igalloway@mediaone.net



[This message has been edited by Nofatals (edited February 28, 2000).]
Quote Reply
Re: running perl locally In reply to
You will have to contact the hosting company who used to host your domain and ask them to remove the domain from their DNS tables.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: running perl locally In reply to
Thanks again, I sent a request to the hosting company, hopefully they will remove it. Just curious:
Why would it be searching for that domain name? I am serving the pages now from my home PC and have nothing to do with my old host at all. Thats a bit odd isn't it? I am in no way connected to there servers, like I said I am using my own Windows PC to serve the pages through a cable internet connection..When going to the root directory which would be my IP address http://24.147.131.6/test.shtml the page loads of of my computer, but when accessing the cgi-bin directory it searches for that domain name. A complete mystery to me. Maybe you could shed some light on it for me.

Thanks again,
Ian Galloway
P.S. I could send you a copy of my httpd.conf if you needed to see it
Quote Reply
Re: running perl locally In reply to
Is there any reference in the httpd.conf file to a redirection to another IP Address or Domain Address?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: running perl locally In reply to
I know this might sound obvious, but did you try emptying your cache?

adam