Specifications

certificate from VeriSign or Thawte, the browser would not prompt you because their certifi-
cates come from a trusted Certification Authority (CA). In our case, we created and signed our
own certificates. We didnt want to purchase one right away. We wanted to ensure that we
could get everything working properly, first.
If you are using Internet Explorer or Netscape, you will see a padlock symbol in the status bar.
This tells you that a secure connection has been established. The icon used by Netscape is
shown in Figure A.3.
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
793
FIGURE A.3
Web browsers display an icon to indicate the page you are viewing came via an SSL connection.
Installing Apache, PHP, and MySQL Under
Windows
With Windows the installation process is a little bit different because PHP is set up either as a
CGI (php.exe) script or as a ISAPI (php4isapi.dll) module. However, Apache and MySQL are
installed in a similar fashion to the way they are installed under UNIX. Make sure you have the
latest operating system service patches applied to the machine before you begin the Windows
installation.
You should start by downloading all the latest source files to a temporary directory with ample
space. For our installation we will use C:\TEMP\DOWNLOAD as our temp directory.
Installing MySQL Under Windows
Lets begin by setting up MySQL. Because you have already downloaded all sources, begin by
unzipping the files to the temp directory and run the Setup.exe program. Note, that the default
directory where MySQL will install itself will be the
C:\mysql directory. You can move it to a
different directory if needed, after its fully installed.
If you do move MySQL, you must tell
mysqld where everything is by supplying options to
mysqld. Use C:\mysql\bin\mysqld --help to display all options. For example, if you have
moved the MySQL distribution to
‘D:\programs\mysql’, you must start mysqld with
‘D:\programs\mysql\bin\mysqld --basedir D:\programs\mysql’.
With the newest versions of MySQL, you can create a
‘C:\my.cnf’ file that holds any default
option for the MySQL server. Copy the file
‘C:\mysql\my-xxxxx.cnf’ to ‘C:\my.cnf’ and
edit it to suit your custom setup.
38 7842 app a 3/6/01 3:40 PM Page 793