Prev | Current Page 85 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

Regardless of what you choose, keep in mind that
the latter is used here for the sake of convention. Click Next.
8. Click Install to complete the installation. That??™s it for Apache. Next you??™ll
install PHP.
CHAPTER 2 ?–  CONFIGURING YOUR EN V IRONMENT 19
9. Unzip the PHP package, placing the contents into C:\php6\. You??™re free to choose
any installation directory you please, but avoid choosing a path that contains
spaces. Regardless, the installation directory C:\php6\ will be used throughout
this chapter for consistency.
10. Navigate to C:\apache2\conf and open httpd.conf for editing.
11. Add the following three lines to the httpd.conf file. Consider adding them
directly below the block of LoadModule entries located in the bottom of the
Global Environment section:
LoadModule php6_module c:/php6/php6apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "c:\php6"
Because at the time of publication PHP 6 wasn??™t yet official, you should use the latest
stable version of PHP 5 if you??™re planning on running any production applications. To
do so, you??™ll need to make some minor changes to the previous lines, as follows:
LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "c:\php5"
?– Tip The AddType directive in step 11 binds a MIME type to a particular extension or extensions. The
.php extension is only a suggestion; you can use any extension you like, including .


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