Note:
If Apache's apxs tool is not installed yet, the tool has to be installed
before compiling PHP. In SuSE Linux, this package is called
apache devel
.
6. Compiling PHP
After configuring the source files, the compile process is started using the
make
command. We piped the output to a log file in order to check for failure
afterwards:
bash$ make > make.out
7. Installing PHP
Once PHP has compiled successfully, it can be installed as the root user:
bash$ su root
Password>
bash$ make install
8. Configuring Apache
As Apache already was configured for the PHP used in our case, only some
changes have to be made. As part of the installation process PHP
automatically modifies Apache's configuration file /etc/httpd/httpd.conf by
inserting two lines. It has to be checked if the installer placed this two lines in
the right section, and if the provided path to the modules matches the path
definition of the other modules in this section (see Example 4 3).
Example 4 3 Correct section for the libphp4.so and mod_php4.c
# Dynamic Shared Object (DSO) Support
# Example:
# LoadModule foo_module libexec/mod_foo.so
loadModule ...
.
.
loadModule php4_module /usr/lib/apache/libphp4.so
.
.
# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
.
.
AddModule mod_php4.c
9. Checking for php.ini.
86
MySQL to DB2 UDB Conversion Guide
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved