modern-web-design-and-development

(Brent) #1

are performing correctly, but there is a programming error or
misconfiguration. Check the Apache error log for clues.


Otherwise, you’ll need to run some commands to determine the cause. On
a Mac with OS X or above, go to Applications → Utilities and run Terminal.
On a PC with Windows, go to Start → All Programs → Accessories and
choose “Command Prompt.” If you use Linux, you probably already know
about the terminal; but just in case, on Ubuntu, it’s under Applications →
Accessories.


The first command is ping, which sends a quick message to a server to
check that it’s okay. Type the following, replacing the Web address with
something meaningful to you, and press “Enter.” For all of the commands in
this article, just type the stuff in the grey monospaced font. The preceding
characters are the command prompt and are just there to let you know who
and where you are.


C:\> ping http://www.stockashop.co.uk

If the server is alive and reachable, then the result will be something like
this:


Reply from 92.52.106.33:
bytes=32 time=12ms TTL=53
Free download pdf