4. To test that Apache installed correctly, load http://localhost/ (or http://localhost:8080/ if
Apache works on port 8080) using your web browser. The XAMPP welcome screen like the one in Figure 3-3
should load.
Preparing the tshirtshop Alias
One of the advantages of working with open source, platform-independent technologies is that
you can choose the operating system to use for development. You should be able to develop and
run TShirtShop on Windows, Unix, Linux, Mac OS, and others. However, this also means that
you may struggle a little bit while setting up your environment, especially if you??™re a beginner.
When setting up the project??™s folder, a few details differ depending on the operating system
(mostly because of the different file paths), so we??™ll cover them separately for Windows and for
Linux systems in the following pages. However, the main steps are the same for all platforms:
1. Create a folder tshirtshop on your disk (we use lowercase for folder names), which will
contain the TShirtShop project??™s files (such as PHP code, image files, and so on).
2. Edit Apache??™s configuration file (httpd.conf) to create an alias named tshirtshop that
points to the tshirtshop physical folder created earlier. This way, when pointing a web
browser to http://localhost/tshirtshop, the project in the tshirtshop physical folder
will be loaded.
Pages:
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99