Datasheet

874
Creating Your Own Server with XAMPP
Testing your XAMPP configuration
Ensure that Apache and MySQL are running, and then open your Web
browser. Set the address to http://localhost, and you see a screen like
the one shown in Figure 1-2.
Figure 1-2:
The XAMPP
main page.
This page indicates that XAMPP is installed and working. Feel free to experi-
ment with the various items in the Demos section. Even though you may not
know yet what they do, you should know what some of their capabilities are.
Adding your own files
Of course, the point of having a Web server is to put your own files in it. Use
your file management tool to find the XAMPP directory in your file system.
Right under the XAMPP directory is the htdocs folder, the primary Web
directory. Apache serves only files that are in this directory or under it.
(That way, you don’t have to worry about your love letters being distributed
over the Internet.)
All the files you want Apache to serve must be in htdocs or in a subdirec-
tory of it.
When you specified http://localhost as the address in your browser,
you were telling the browser to look on your local machine in the main
53_9780470537558-bk08ch01.indd 87453_9780470537558-bk08ch01.indd 874 10/7/10 8:58 PM10/7/10 8:58 PM