English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

OK, I have Apache and it is running.

It's configured to process php5 code.

The Document root is a folder called "htdocs" in the program files.

I have named my server "joeblow".

I made a test php program and saved it as test.php in the htdocs folder.

When I open up my browser and type in http://joeblow/test.php, it says "The page cannot be displayed" it can't find the server/blah blah, yadda yadda. What am I doing wrong? Is the address wrong in the browser? HELP!!

2006-11-05 16:49:57 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

First, you might be running into a problem with the DNS configuration (that is, your browser may not "know" that "joeblow" is your own computer).

I would first try:

http://localhost/test.php

"localhost" is a special name that typically refers to "the current machine".

Second, is there a firewall running on your machine that might be blocking the webserver's port (which, by default, is port 80).

Third, is the webserver actually up and running?

Fourth, don't use IE's "nice errors" messages [I'm assuming you are on windows using IE]. If you can, turn off nice errors (somewhere in the long list of checkbox options) or better yet use a browser that is more developer friendly (personally I use Firefox and the LiveHTTPHeaders plugin to view the browser's request/response stream).

An alternative to using a browser is to use the command line and to connect directly to your webserver (just to see if it is up and responding) with the command:

telnet localhost 80

If you get an error message back, then the server is not responding or is running on a non-standard port (port 80 is the standard). However if the screen appears to be "hung:, then try typing in the request:

GET /test.php HTTP/1.0

(followed by one or more presses of the ENTER key). If you see a bunch of HTML get spit back at you, you know it is "working".

2006-11-05 17:07:20 · answer #1 · answered by RGB_Mars 3 · 1 0

You have named your server "joeblow", but does anything else besides you and the server know about this? Is there an IP address that corresponds to "joeblow" on your local network?

For starters, try opening a browser on your server and accessing

http://localhost/test.php

If you can see the script's output, everything in Apache works as it should and the problem is in your network routing.

2006-11-06 05:30:31 · answer #2 · answered by NC 7 · 0 0

man ive had nothing but trouble trying to configure apache..maybe try leaving it as "index.html" instead of renaming it "joeblow" or maybe even try "joeblow.html".. if u give up on apache go and try abyss web server way easier to configure with a user interface, but im not sure if it supports php, and mysql.. hope this is usefull

2006-11-05 16:58:12 · answer #3 · answered by fat85crxzc 2 · 0 0

a million) you % the binaries ( own residing house page executables ) 2) Apache mirror sites are only the servers the place you easily are going to acquire the utility, there are a number of international with a view to decrease the acquire time. do you comprehend a thank you to configure this?

2016-10-21 08:26:27 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers