URL not found problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SergeantJoe
Forum Newbie
Posts: 6
Joined: Thu Jun 29, 2006 9:52 pm

URL not found problem

Post by SergeantJoe »

Everytime I put the link to my file into my browser, this pops up.

Not Found

The requested URL /hello.php was not found on this server.

What does this mean, and how do I fix it?
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Please post the link. It means that the file you are requesting isn't at the expected location.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Dude... don't title a thread "Problem"
Every thread here is dedicated to a problem. If everybody titled their threads "Problem"... you can see where things would get confusing...?

And like dude above me said... how can we possible see where the problem is with that little information? The error means exactly what it says. "Not found". It couldn't find your file. Probably isn't there. :roll:
SergeantJoe
Forum Newbie
Posts: 6
Joined: Thu Jun 29, 2006 9:52 pm

Post by SergeantJoe »

How am I supposed to configure it properly then?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

configure what properly? You need to give us more information, bud!

/hello.php tells me nothing. How am I supposed to help you with that little information? Tell me more, and I would be happy to help. :D

What EXACTLY are you trying to do? Did you just install php?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
SergeantJoe
Forum Newbie
Posts: 6
Joined: Thu Jun 29, 2006 9:52 pm

Post by SergeantJoe »

I've configured my Apache Web Browser so that the "document root" is set to, C:/HTML, which is a folder I created. I've put the file that I want to view into that folder. M Apache sytem is working properly, I know that much. When I enter this URL, http://localhost/hello.php, A "Not Found" page pops up that says this:

Not Found

The requested URL /hello.php was not found on this server.
Apache/2.0.58 (Win32) Server at localhost Port 80

I don't know what I've done wrong....
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Apache web browser?

A web browser is what you use to surf the internet such as internet explorer or firefox. Apache is a server. If you have installed Apache on your machine, you are not going to be browsing anything with it. It will be serving pages if you have installed it properly.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Typical Apache root directory is at c:\Program Files\Apache Group\Apache\htdocs\.

Have you tried to type in http://localhost/ in your browser to see what is served from that URL?
SergeantJoe
Forum Newbie
Posts: 6
Joined: Thu Jun 29, 2006 9:52 pm

Post by SergeantJoe »

The Ninja Space Goat wrote:Apache web browser?

A web browser is what you use to surf the internet such as internet explorer or firefox. Apache is a server. If you have installed Apache on your machine, you are not going to be browsing anything with it. It will be serving pages if you have installed it properly.
It was a typing mistake, but thanks alot for all of the helpful information pertaining to my problem! /sarcasm

When I type http://localhost into my browser, it shows the Apache2 folder. What does that mean?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That means there are problems with your installation of Apache. A fresh install of apache would show the apache generic start page when you type in localhost into the URL bar.
SergeantJoe
Forum Newbie
Posts: 6
Joined: Thu Jun 29, 2006 9:52 pm

Post by SergeantJoe »

Ok. I reinstalled my Apache. Now, when I type http://localhost into the URL bar, a page comes up that says, "Open With" in the right hand corner, and gives me the option of either "Save to Disk" or "Browse" for a correct file to open it with. Is that what should happen?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

SergeantJoe wrote:
The Ninja Space Goat wrote:Apache web browser?

A web browser is what you use to surf the internet such as internet explorer or firefox. Apache is a server. If you have installed Apache on your machine, you are not going to be browsing anything with it. It will be serving pages if you have installed it properly.
It was a typing mistake, but thanks alot for all of the helpful information pertaining to my problem! /sarcasm

When I type http://localhost into my browser, it shows the Apache2 folder. What does that mean?
:lol: OK
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Are you having fun Ninja?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

SergeantJoe wrote:Ok. I reinstalled my Apache. Now, when I type http://localhost into the URL bar, a page comes up that says, "Open With" in the right hand corner, and gives me the option of either "Save to Disk" or "Browse" for a correct file to open it with. Is that what should happen?
That is totally not what should happen. What this means is there is a setting in your httpd.conf that needs to be edited to allow .html files to be interpreted by the server. But that usually comes set by default.

What OS are you on?
Post Reply