If you intend to use PHP4 server-side scripting language support with your Apache web server don't forget to include in your /etc/httpd/conf/httpd.conf file the following lines to enable this feature:
Edit the
httpd.conffile, vi/etc/httpd/conf/httpd.conf, and add the following lines between the section tags <IfModule mod_mime.c> and </IfModule>:AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phpsYou must restart the Apache web server for the changes to take effect, using the following commands:
[root@deep ]/# /etc/rc.d/init.d/httpd restartShutting down http: [ OK ] Starting httpd: [ OK ]Once the above lines have been included in our
httpd.conffile, we must test the new PHP4 feature to be sure it's working. We'll create a small PHP file namedphp.phpin our DocumentRoot, and then point our web browser to this PHP document to see if PHP4 work on the server. Create thephp.phpfile in your DocumentRoot, touch/home/httpd/ona/php.phpand add the following lines in the PHP file:<body bgcolor="#FFFFFF"> <?php phpinfo()?> </body>These lines will inform PHP4 program to display various pieces of information about the configuration of our Linux server.
Now, point your web browser to the following address:
http://my-web-server/php.phpThe <my-web-server> is the address where your Apache web server resides, and <php.php> is the PHP document we have created above to display the information and configuration of our Linux server.

If you see something like the above page appearing in your web browser congratulations! Your PHP module is working.