Ajax software
Free javascripts
↑
Main Page
Figure 1-4
6.
To test that Apache installed correctly, load
http://localhost/
using your web browser. An
XAMPP welcome screen like the one in Figure 1-5 should load.
7.
Finally, after you’ve tested that both Apache and PHP work, it’s recommended to turn on PHP
error reporting. Apache logs errors in a file named
error.log
, located in the
xampp\apache\
logs
folder; looking at the latest entries of this file when something goes wrong with your appli-
cation can be very helpful at times. To enable PHP error reporting, open for editing the
php.ini
configuration file, located by default in the
xampp\apache\bin\
folder. There, locate this entry:
display_errors = Off
and change it to:
display_errors = On
8.
To configure what kind of errors you want reported, you can alter the value of the PHP
error_reporting
value. We recommend the following setting to report all errors, except
for PHP notices:
error_reporting = E_ALL & ~E_NOTICE
Preparing the Working Folder
Now you’ll create a virtual host named
seophp.example.com
on your local machine, which will point
to a local folder named
seophp
. The
seophp
folder will be your working folder for all the exercises in
this book, and you’ll load the sample pages through
http://seophp.example.com
.
The
seophp.example.com
as virtual host won’t interfere with any existing online applications,
because
example.com
is a special domain name reserved by IANA to be used for documentation and
demonstration purposes. See
http://example.com
for the official information.
The XAMPP Control Panel is particularly useful when you need to stop or start the
Apache server. Every time you make a change to the Apache configuration files,
you’ll need to restart Apache.
8
Chapter 1: You: Programmer and Search Engine Marketer
c01.qxd:c01 10:38 8
Ajax software
Free javascripts
→ R7