Appendix B. Setting Up 3 Tier Client Server Environment

Table of Contents

Apache, MySQL, PHP
Prerequisites
MySQL setup under Windows
Installation of a Sample Database

The client environment is already present on your computer, otherwise you couldn't use it. You need software for the tiers 2 and 3. In practical terms this means downloading and installing a package. The current recommendation is XAMPP for Windows, MAC and Linux based computers. The A is the web server Apache, , the M is the Database Management System MySQL , and the P is the programming language PHP.

In case you only need the Database Management System you may choose to get MySQL only. In that case you can still follow this guide, just ignore the references to Apache and PHP.

In the opposite case where you don't need the Database Management System you may install the package anyway. In that case you can still follow this guide through the installation. You don't make any of the adaptations for MySQL.

XAMPP may be downloaded from here .

When you are on the download page follo the instructions for download and installation. If you work on Windows, choose installation method A.

Stop all running programs (ie SKYPE) and install. If asked, make sure that you indicate that Apache and/or MySQL are cheked to run as services . It is free in terms of computer resources until you need the services.

Experience show that if you will do web work with PHP of the installation, you may experience permissions problems on Windows systems, even though you have designated yourself an administrator . My sources say that installing the package directly in C:\ will circumvent those problems.

We now need to tweak a couple of settings for easier use along the way.