php as the recognizable
extension, don??™t try to embed PHP code in an .html file.
??? Make sure that you??™ve delimited the PHP code within the file. Neglecting to do
this will cause the code to output to the browser.
??? You??™ve created a file named index.php and are trying unsuccessfully to call it as
you would a default directory index. Remember that by default, Apache only
recognizes index.html in this fashion. Therefore, you need to add index.php to
Apache??™s DirectoryIndex directive.
??? If you??™re running IIS, make sure the appropriate mapping is available, as shown
in Figure 2-2. If not, something went awry during the FastCGI installation process.
Try removing that mapping and installing FastCGI anew.
Configuring PHP
Although the base PHP installation is sufficient for most beginning users, chances are
you??™ll soon want to make adjustments to the default configuration settings and possibly
experiment with some of the third-party extensions that are not built into the distribution
by default. In this section you??™ll learn all about how to tweak PHP??™s behavior
and features to your specific needs.
Configuring PHP at Build Time on Linux
Building PHP as described earlier in the chapter is sufficient for getting started; however,
you should keep in mind many other build-time options are at your disposal. You can
view a complete list of configuration flags (there are more than 200) by executing the
following:
26 CHAPTER 2 ?– CONFIGURING YOUR ENV IRONMENT
%>.
Pages:
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104