Hello,
I'm try to install PHP 4.2.2 on Apache 2.0.39 on a RedHat 7.3
Downloaded and compiled Apache under /usr/local/apache2
It works
Downloaded and compiled latest stable snaphot of PHP
It compiled and installed with no errors
Then I added these two lines to httpd.conf
AddType application/x-httpd-php .php
LoadModule php4_module modules/libphp4.so
and restarted Apache. When I tru to open a .php file the browser gives me
the source code.
If I look insede http://server.name/server-info i see these lines:
Server Version: Apache/2.0.39 (Unix) DAV/2 PHP/4.2.3-dev
Server Built: Jul 26 2002 09:53:37
API Version: 20020612:1
Hostname/port: 213.92.93.22:80
Timeouts: connection: 300 keep-alive: 300
MPM Name: Worker
MPM Information: Max Daemons: 5 Threaded: yes Forked: yes
Server Root: /usr/local/apache2.0.39
Config File: conf/httpd.conf
Module Name: sapi_apache2.c
Content handlers: none
^^^^^^^ <--- LOOK HERE !!!!
Configuration Phase Participation: Create Directory Config, Merge Directory
Configs
Request Phase Participation: Post-Read Request
Module Directives:
php_value - PHP Value Modifier
php_flag - PHP Flag Modifier
php_admin_value - PHP Value Modifier (Admin)
php_admin_flag - PHP Flag Modifier (Admin)
PHPINIDir - Directory containing the php.ini file
Current Configuration:
It seems like the libphp4.so module is loaded (but I don't know whi it's
called "sapi_apache2.c" but no "Current handlers" is defined !
How can I correct this ?
Leonardo Querzoni