CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Can't Start Cgi101 problem

 



clubber2k
Novice

Sep 27, 2005, 9:21 AM

Post #1 of 13 (2081 views)
Can't Start Cgi101 problem Can't Post

   

I'm starting up on CGI, I though to take cgi101.com toturials but failed to even do the first

which is simply installing and configuring perl and apache.

after following with the orders in: http://www.cgi101.com/book/connect/winxp.html

when I try to go to http://localhost/~Avi as ordered in the last part of that page

instead of getting my starting folder I get a cannot find page, in the error log I see:

[error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/~Avi

I dubbled checked to make sure I did everything as I should, but can't find where I have gone wrong

Did anyone else encounter this problem, has anyone manged to fix it ?



Thanks Avi.


KevinR
Veteran


Sep 27, 2005, 9:34 AM

Post #2 of 13 (2079 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

try without the tilde:

http://localhost/Avi
-------------------------------------------------


clubber2k
Novice

Sep 27, 2005, 10:48 AM

Post #3 of 13 (2077 views)
Re: [KevinR] Can't Start Cgi101 problem [In reply to] Can't Post

Sorry I should state what I have also tried out

I tried it without the tilde, I also tried changing all the directory references in apache to the full c:\documents and settings etc... I have tried to enter the full path ie: http://localhost/c:/documents ... and other variations

anything else ? didn't anyone have the same problem using this toturial ? Pirate

Thanks


KevinR
Veteran


Sep 27, 2005, 3:11 PM

Post #4 of 13 (2075 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

Sorry, I never used that tutorial. The tilde just looked suspicious since you didn't seem to be using the same setup the tutorial did.
What happens if you start the server and type only http://localhost into the browser address box?
-------------------------------------------------


kencl
User

Sep 28, 2005, 12:55 AM

Post #5 of 13 (2073 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

This is an Apache configuration issue. See: http://httpd.apache.org/docs/2.0/urlmapping.html

>> If you can't control it, improve it, correlate it or disseminate it with PERL, it doesn't exist!


rork
User

Sep 28, 2005, 6:59 AM

Post #6 of 13 (2071 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

I can't find that part in the tutorial you're linking to but I guess you started working on aliasses.

Didn't you forget to make the target directory of the alias and is there an index.html or index.htm file? (I'm not sure if apache shows a list of files if no index.html is found)

I guess you have the alias code right, but you might give us a view.
--
Don't reinvent the wheel, use it, abuse it or hack it.


clubber2k
Novice

Sep 28, 2005, 8:31 AM

Post #7 of 13 (2067 views)
Re: [rork] Can't Start Cgi101 problem [In reply to] Can't Post

Thanks for all your help !! I'm not realy sure what you just said since Im just starting on CGI

the linke works for me its on cgi101.com ->click here to get started->windowsXP and at the bottom of the page after following all the orders in the "Viewing Your Site" section. it would help if you would look at the orders to see if they're correct, maybe they're out of date, thanks :)

I read what kencl and I guess this is a an apache issues since in the error log I see it looks for the root folder

ServerRoot "C:/Program Files/Apache Group/Apache2"

in the error log I see [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/~Avi

from the site kencl redirected me It does look like its something to do with aliasses since Im calling a location outside the serverroot, but since I'm just starting out its all greek to me.

what changes should I make to the httpd.conf file inorder to work on apache on my XP using the localhost/~Avi adress


Plus, maybe these toturials aren't the best. if you know of any good/simple toturial on CGI while working on my own computer I would like to know, thanks :)


davorg
Thaumaturge / Moderator

Sep 28, 2005, 9:05 AM

Post #8 of 13 (2063 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

What version of Apache did you install? And what version is the tutorial aimed at? I'd guess that you've installed Apache 2.x and the tutorial is aimed at 1.x. There may be significant differences between the two.

It sounds like the problems you are experiencing are in the user directories part of the configuration file. What changes have you made there? Can you show us what that part of the configuration file looks like.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


clubber2k
Novice

Sep 29, 2005, 2:32 AM

Post #9 of 13 (2060 views)
Re: [davorg] Can't Start Cgi101 problem [In reply to] Can't Post

I'll upload it, it's a small conf file

didn't any of you used a toturial to learn cgi ? how did everyone learn it ?

has anyone installed an apache server on theyre computer ? for learning porperses ?

maybe you can direct me to a diffrent toturial ?

I realy wanted to learn CGI, but If I can make the apache work, that does show much about my skill Tongue

thanks Crazy
Attachments: httpd.conf (33.4 KB)


davorg
Thaumaturge / Moderator

Sep 29, 2005, 2:48 AM

Post #10 of 13 (2058 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

Ok, so it looks like you are using Apache 2 and I'll bet that tutorial hasn't been updated for Apache 2 yet.

I know the CGI101 tutorial. I did some work on the second edition of the book that is based on the tutorial. You'll learn good habits from following that site.

However. The problems that you are currently having are nothing to do with Perl or CGI. It's purely an Apache configuration problem. This isn't really the best place to ask questions about Apache configuration. There may be people here who can help you, but you'd be far better off looking for somewhere where Apache experts gather.

I know a bit about Apache configuration, but all of my knowledge is Unix/Linux based. I can't really be much help to you as you seem to be using Windows and the directory structure is completely different on Windows.

My advice would be to install Linux on the computer which you want to use to learn CGI programming. The vast majority of web sites are hosted on servers running Unix or Linux and you would learn far more useful skills if you used what most other people do. I understand that it's completely possible to get the right environment working on Windows, but I've never had to do it.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


rork
User

Sep 30, 2005, 1:30 AM

Post #11 of 13 (2056 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post

I used apache on a win32 system, but never used a tutorial just found out how to do it myself. I used other directories like d:/www/htdocs and d:/www/cgi-bin instead of this my documents stuff. And I never got into administration, just programming.

Later I used Abyss Web Server which is lightweight and more easy to configure. I didn't need a far developed server for testing my cgi-scripts and broadcast them over my small LAN.

Looking at your config file I see a problem:

You didn't reset your documentroot (line 228), it should be the same as in line 253 (in the tutorial you didn't even have to adapt line 253)
--
Don't reinvent the wheel, use it, abuse it or hack it.


clubber2k
Novice

Oct 6, 2005, 4:26 PM

Post #12 of 13 (2044 views)
Re: [rork] Can't Start Cgi101 problem [In reply to] Can't Post

thanks for your great help, I was on a break so I just saw the answars

I'll try changning that line, and maybe find a more up2date toturial



thanks alot :)



Avi.Tongue


davorg
Thaumaturge / Moderator

Oct 7, 2005, 1:50 AM

Post #13 of 13 (2042 views)
Re: [clubber2k] Can't Start Cgi101 problem [In reply to] Can't Post


In Reply To
thanks for your great help, I was on a break so I just saw the answars

I'll try changning that line, and maybe find a more up2date toturial


It's worth pointing out that the Perl in that tutorial is really pretty good. If you can get your Apache problems sorted out then I'd recommend the CGI101 tutorial for learning Perl and CGI.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives