Prev | Current Page 81 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

tar.gz
%>tar xvf httpd-2_X_XX.tar
%>gunzip php-XX.tar.gz
%>tar xvf php-XX.tar
16 CHAPTER 2 ?–  CONFIGURING YOUR ENV IRONMENT
2. Configure and build Apache. At a minimum, you??™ll want to pass the option
--enable-so, which tells Apache to enable the ability to load shared modules:
%>cd httpd-2_X_XX
%>./configure --enable-so [other options]
%>make
3. Install Apache:
%>make install
4. Configure, build, and install PHP (see the section ???Configuring PHP at Build
Time on Linux??? for information regarding modifying installation defaults
and incorporating third-party extensions into PHP). In the following steps,
APACHE_INSTALL_DIR is a placeholder for the path to Apache??™s installed location,
for instance /usr/local/apache2:
%>cd ../php-X_XX
%>./configure --with-apxs2=APACHE_INSTALL_DIR/bin/apxs [other options]
%>make
%>make install
5. PHP comes bundled with a configuration file that controls many aspects of
PHP??™s behavior. This file is known as php.ini, but it was originally named
php.ini-dist. You need to copy this file to its appropriate location and rename
it php.ini. The later section ???Configuring PHP??? examines php.ini??™s purpose
and contents in detail. Note that you can place this configuration file anywhere
you please, but if you choose a nondefault location, you also need to configure
PHP using the --with-config-file-path option. Also note that there is another
default configuration file at your disposal, php.


Pages:
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93