diff --git a/chapters/install.apache.xml b/chapters/install.apache.xml index 93da3ce151..05f16d9d3f 100644 --- a/chapters/install.apache.xml +++ b/chapters/install.apache.xml @@ -1,5 +1,5 @@ - + Servers-Apache @@ -119,7 +119,7 @@ stop and start: This will create a libphp4.so shared library that is loaded into Apache using a LoadModule line in - Apache's httpd.conf file. The PostgreSQL + Apache's &httpd.conf; file. The PostgreSQL support is embedded into this libphp4.so library. @@ -189,7 +189,7 @@ stop and start: - Apache's default http.conf currently ships with a section that looks + Apache's default &httpd.conf; currently ships with a section that looks like this: @@ -205,9 +205,10 @@ Group "#-1" - Make sure you specify the installed version of apxs when using --with-apxs=/path/to/apxs. - You must NOT use the apxs version that is in the apache sources but the one that is actually - installed on your system. + Make sure you specify the installed version of apxs when using + . + You must NOT use the apxs version that is in the apache sources but the one + that is actually installed on your system. @@ -219,8 +220,7 @@ Group "#-1" on Windows. One is to use the CGI binary (php.exe), the other is to use the Apache module DLL. In either case you need to stop the Apache server, and edit your - srm.conf or httpd.conf - to configure Apache to work with PHP. + &httpd.conf; to configure Apache to work with PHP. It is worth noting here that now the SAPI module has been @@ -235,7 +235,7 @@ Group "#-1" - If you unziped the PHP package to c:\php\ as described + If you unziped the PHP package to c:\php\ as described in the Manual Installation Steps section, you need to insert these lines to your Apache configuration file to set @@ -264,9 +264,9 @@ Group "#-1" Note that the second line in the list above can be found - in the actual versions of httpd.conf, - but it is commented out. Remember also to substitute the - c:/php/ for your actual path to PHP. + in the actual versions of &httpd.conf;, but it is commented out. Remember + also to substitute the c:/php/ for your actual path to + PHP. @@ -279,61 +279,63 @@ Group "#-1" - If you would like to use PHP as a module in Apache, - be sure to move php4ts.dll to - the windows/system (for Windows 9x/Me) or winnt/system32 - (for Windows NT/2000/XP) directory, overwriting any older file. - Then you should add the following two lines to your Apache - httpd.conf file: + If you would like to use PHP as a module in Apache, be sure to copy + php4ts.dll to the windows/system + (for Windows 9x/Me), winnt/system32 (for Windows + NT/2000) or windows/system32 (for Windows XP) + directory, overwriting any older file. Then you should add the following + lines to your Apache &httpd.conf; file: - - LoadModule php4_module c:/php/sapi/php4apache.dll - + Open &httpd.conf; with your favorite editor and locate the + LoadModule directive and add the following line + at the end of the list: + LoadModule php4_module c:/php/sapi/php4apache.dll - - AddType application/x-httpd-php .php .phtml - + You may find after using the windows installer for Apache that you need + to define the AddModule directive for + mod_php4.c. This is especially important if the + ClearModuleList directive is defined, which you will + find by scrolling down a few lines. You will see a list of + AddModule entries, add the following line + at the end of the list: + AddModule mod_php4.c + + + + + Search for a phrase similar to + # AddType allows you to tweak mime.types. You will + see some AddType entries, add the following line + at the end of the list: + AddType application/x-httpd-php .php. + You can choose any extension you want to parse through PHP here. .php + is simply the one we suggest. You can even include .html, and .php3 + can be added for backwards compatibility. - After changing the configuration - file, remember to restart the server, for example, - NET STOP APACHE followed by - NET START APACHE, if you run Apache - as a Windows Service, or use your regular shortcuts. + After changing the configuration file, remember to restart the server, for + example, NET STOP APACHE followed by + NET START APACHE, if you run Apache as a Windows + Service, or use your regular shortcuts. - - - You may find after using the windows installer for Apache - that you need to define the AddModule - directive for mod_php4.c in the - configuration file (httpd.conf). - This is done by adding AddModule mod_php4.c - to the AddModule list, near the beginning - of the configuration file. This is especially important if - the ClearModuleList directive is defined. - Failure to do this may mean PHP will not be registered as an - Apache module. - - - There are two ways you can use the source code highlighting feature, - however their ability to work depends on your installation. - If you have configured Apache to use PHP as an SAPI module, then by - adding the following line to your configuration file - (httpd.conf) you can use this feature: - AddType application/x-httpd-php-source .phps - + however their ability to work depends on your installation. If you have + configured Apache to use PHP as an SAPI module, then by adding the + following line to your &httpd.conf; (at the same place you inserted + AddType application/x-httpd-php .php, see above) you can + use this feature: + AddType application/x-httpd-php-source .phps. If you chose to configure Apache to use PHP as a CGI binary, you