On Thu, 08 Nov 2012 15:50:51 +0000, Marty wrote:
> Know of any newsgroups that could help with a localhost
> problem?
First of all, there is no such thing as a localhost problem, the problem
is either with your local webserver configuration, or with your html. Do
you even have a local webserver running?
Please try the following shell command:
sudo ps -A | grep apache
You should see something like:
1269 ? 00:03:17 apache2
9231 ? 00:00:00 apache2
9232 ? 00:00:00 apache2
9238 ? 00:00:00 apache2
9239 ? 00:00:00 apache2
9243 ? 00:00:00 apache2
9661 ? 00:00:00 apache2
9750 ? 00:00:00 apache2
10175 ? 00:00:00 apache2
10176 ? 00:00:00 apache2
10597 ? 00:00:00 apache2
If that shows several entries, then the webserver seems to be running.
Try typing the following 2 lines, both followed by return (note there may
be no visible response to the 'nc localhost 80', just type the GET
anyway.):
nc localhost 80
GET /webpage.php
This should display the content that your php file generates and delivers
via the webserver.
If the 'nc localhost 80' returns a normal (eg name@host$) prompt, then
it's possible your webserver, although running, isn't active on the
expected port.
Try the following command:
sudo netstat -t -l -p -v | grep http
This should output a line similar to the one below (the 1269 will
probably be a different number, and I've trimmed some whitespace):
tcp 0 0 *:http *:* LISTEN 1269/apache2
Finally, try opening the browser and enter the following in the location
bar:
http://localhost/name.ext
Where name.ext is the name and extension of your image file. If the image
file is in the root directory of the web server, then it should display
in the browser. If it does not display, then either:
a) There's no browser running
b) The file is not where the server is looking for it
Rgds
Denis McMahon