Prev | Current Page 86 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

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.
CHAPTER 3 ?–  STARTING THE TSHIRTSHOP PROJECT 32
Figure 3-3. Testing XAMPP installation
Exercise: Installing XAMPP on Linux
Here are the steps you should follow:
1. Visit http://www.apachefriends.org/en/xampp-linux.html, and download the XAMPP package,
which should be an archive file named something like xampp-linux-X.Y.Z.tar.gz.
2. Execute the following command from a Linux shell logged as the system administrator root:
tar xvfz xampp-linux-X.Y.Z.tar.gz -C /opt
This will extract the downloaded archive file to /opt.
?– Note You can??™t have more web servers working on port 80 (the default port used for HTTP communication).
If you already have a web server on your machine, you should make it use another port, uninstall it, or
deactivate it. Otherwise, Apache won??™t work. To make Apache work on another port, you should edit
/opt/lampp/etc/httpd.conf, locate the lines containing Listen 80 and ServerName localhost:80,
and replace the value 80 with the port number of your choice (usually the 8080 is used).
CHAPTER 3 ?–  STARTING THE TSHIRTSHOP PROJECT 33
3. To start XAMPP simply call the following command:
/opt/lampp/lampp start
To restart XAMPP replace start in the previous command with restart, and to stop XAMPP, replace it
with stop.


Pages:
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98