Download as pdf or txt
Download as pdf or txt
You are on page 1of 0

Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved.

8/24/01
R
PHP Installation
Instructions
R.1 PHP for IIS
This section outlines the process of installing PHP for the Internet Information Services
(IIS) server. To download PHP, visit
http://www.php.net/downloads.php
Figure R.1 shows the download page for the Windows operating system. Select the
latest Win32 binary file (currently PHP 4.0.6). There are two versions of the binary.
Because we are installing for IIS, we do not need the full version and can select the smaller
file.
2 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.1 Fig. R.1 Fig. R.1 Fig. R.1 PHP download page. (Courtesy of The PHP Group.)
Figure R.2 allows you to either save the file to your computer or open it from its current
location. Select the Save this program to disk radio button and click OK.
Fig. R.2 Fig. R.2 Fig. R.2 Fig. R.2 File Download dialog.
Save the file to your desktop (Fig. R.3).
Appendix R PHP Installation Instructions 3
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.3 Fig. R.3 Fig. R.3 Fig. R.3 Saving the PHP installation file.
Once the file has been downloaded, close (or minimize) all active (open) windows and
double click the downloaded file. This initiates the PHP Welcome screen (Fig. R.4). Click
Next to continue.
Fig. R.4 Fig. R.4 Fig. R.4 Fig. R.4 Installation Wizard Welcome screen. (Courtesy of The PHP Group.)
Figure R.5 shows the License Agreement screen. If you agree to the terms and con-
ditions set forth by PHP, then click I Agree.
4 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.5 Fig. R.5 Fig. R.5 Fig. R.5 License Agreement screen. (Courtesy of The PHP Group.)
In the Installation Type (Fig. R.6) screen, choose the type of installation that is
appropriate for your needs. For demonstration purposes, we select the default option
Standard. Click Next to continue.
Fig. R.6 Fig. R.6 Fig. R.6 Fig. R.6 Installation Type screen. (Courtesy of The PHP Group.)
The Choose Destination Location screen (Fig. R.7) allows you to specify the
location where PHP should be installed. The default location is C:\PHP. To specify a dif-
ferent location, select Browse. Click Next to continue.
Appendix R PHP Installation Instructions 5
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.7 Fig. R.7 Fig. R.7 Fig. R.7 Choose Destination Location screen. (Courtesy of The PHP Group.)
Figure R.8 shows the Mail Configuration dialog. Enter your SMTP address and e-
mail address in the boxes provided. Click Next.
Fig. R.8 Fig. R.8 Fig. R.8 Fig. R.8 Mail Configuration dialog. (Courtesy of The PHP Group.)
In the Server Type (Fig. R.9) screen, choose the http server that is configured on your
computer. We select the Microsoft IIS 4 or higher radio button (default). Click Next to
continue.
6 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.9 Fig. R.9 Fig. R.9 Fig. R.9 Server Type screen. (Courtesy of The PHP Group.)
Figure R.10 shows the Start Installation screen. If you are not satisfied with the pre-
viously selected options, then click Back to modify them. Otherwise, click Next to pro-
ceed with the installation.
Fig. R.10 Fig. R.10 Fig. R.10 Fig. R.10 Start Installation screen. (Courtesy of The PHP Group.)
The installation is now complete (Fig. R.11); click OK to exit the Installation
Wizard.
Appendix R PHP Installation Instructions 7
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.11 Fig. R.11 Fig. R.11 Fig. R.11 Installation Complete screen. (Courtesy of The PHP Group.)
R.2 PHP Apache
This section outlines the process of installing the Apache server. To download PHP, visit
http://www.php.net/downloads.php
Figure R.12 shows the download page for the Windows operating system. Select the
latest Win32 binary file (currently PHP 4.0.6). There are two versions of the binary.
Because we are installing for IIS, we do not need the full version and can select the smaller
file.
Fig. R.12 Fig. R.12 Fig. R.12 Fig. R.12 PHP download page. (Courtesy of The PHP Group.)
Figure R.13 allows you to either save the file to your computer or open it from its cur-
rent location. We select the Save this program to disk radio button and click OK.
8 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.13 Fig. R.13 Fig. R.13 Fig. R.13 File Download dialog.
Save the file to your desktop (Fig. R.14).
Fig. R.14 Fig. R.14 Fig. R.14 Fig. R.14 Saving the PHP installation file.
Once the file has been downloaded, close (or minimize) all active (open) windows and
double click the downloaded file. This initiates the PHP Welcome screen (Fig. R.15).
Click Next to continue.
Appendix R PHP Installation Instructions 9
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.15 Fig. R.15 Fig. R.15 Fig. R.15 Installation Wizard Welcome screen. (Courtesy of The PHP Group.)
Figure R.16 shows the License Agreement screen. If you agree to the terms and
conditions set forth by PHP, then click I Agree.
Fig. R.16 Fig. R.16 Fig. R.16 Fig. R.16 License Agreement screen. (Courtesy of The PHP Group.)
In the Installation Type (Fig. R.17) screen, choose the type of installation that is
appropriate for your needs. For demonstration purposes, we select the default option
Standard. Click Next to continue.
10 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.17 Fig. R.17 Fig. R.17 Fig. R.17 Installation Type screen. (Courtesy of The PHP Group.)
The Choose Destination Location screen (Fig. R.18) allows you to specify the
location where PHP should be installed. The default location is C:\PHP. To specify a dif-
ferent location, select Browse. Click Next to continue.
Fig. R.18 Fig. R.18 Fig. R.18 Fig. R.18 Choose Destination Location screen. (Courtesy of The PHP Group.)
Figure R.19 shows the Mail Configuration dialog. Enter your SMTP address and e-
mail address in the boxes provided. Click Next.
Appendix R PHP Installation Instructions 11
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.19 Fig. R.19 Fig. R.19 Fig. R.19 Mail Configuration dialog. (Courtesy of The PHP Group.)
In the Server Type (Fig. R.20) screen, choose the http server that is configured on
your computer. Select the Apache radio button. Click Next to continue.
Fig. R.20 Fig. R.20 Fig. R.20 Fig. R.20 Server Type screen. (Courtesy of The PHP Group.)
Figure R.21 shows the Start Installation screen. If you are not satisfied with the pre-
viously selected options, then click Back to modify them. Otherwise, click Next to pro-
ceed with the installation.
12 PHP Installation Instructions Appendix R
Copyright 19922002 by Deitel & Associates, Inc. All Rights Reserved. 8/24/01
Fig. R.21 Fig. R.21 Fig. R.21 Fig. R.21 Start Installation screen. (Courtesy of The PHP Group.)
The installation is now complete (Fig. R.22); click OK to exit the Installation
Wizard.
Fig. R.22 Fig. R.22 Fig. R.22 Fig. R.22 Installation Complete screen. (Courtesy of The PHP Group.)

You might also like