Specifications
FIGURE A.4
The Services Control Manager allows you to configure the services running on your machine.
To test whether or not MySQL is working, you can execute the following commands:
C:\mysql\bin\mysqlshow
C:\mysql\bin\mysqlshow -u root mysql
C:\mysql\bin\mysqladmin version status proc
C:\mysql\bin\mysqladmin -u root shutdown
These commands all work the same with the various Windows operating systems.
MySQL will create two databases, the mysql and test databases. The mysql database will be
used for storing the permissions and access to the server. The test database is not required,
but gives you a safe place to execute commands to see if things are configured correctly.
If you need more information, please refer to the MySQL Web site, http://www.MySQL.com.
We are now ready to install Apache under Windows. Let’s begin!
Installing Apache Under Windows
Apache 1.3 and later is designed to run on Windows NT 4.0 and Windows 2000. The installer
will only work with the x86 family of processors, such as Intel’s. However, Apache can also
run on Windows 95 and 98, but these have not been tested. In all cases TCP/IP networking
must be installed. Make sure you use the Winsock 2 library if you decide to install it under
either Win95 or Win98.
It is recommended that you download the version of Apache for Windows with the .exe exten-
sion if you are a beginner and don’t want to compile the source code. This single file contains
the Apache server ready to be installed.
Run the file you downloaded, apache_1_3_x_win32.exe by double-clicking on it.
The installation process should look familiar to you. As shown in Figure A.5, it looks similar
to many other Windows installers.
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
795
38 7842 app a 3/6/01 3:40 PM Page 795