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

    Hi!

    Could you please send me your configures ? i'm trying to compile Apache 2.0.39 & PHP 4.2.2 and getting an error while compiling apache2filter.

    Vitalka

      Sure !

      Apache:
      ./configure --prefix=/usr/local/apache2.0.39 --with-mpm=worker --enable-so --enable-mods-shared=all

      PHP4:
      ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=/usr/oracle/product/9.2.0 --with-gd --with-png --with-jpeg --enable-inline-optimization --prefix=/usr --with-zlib --with-config-file-path=/etc --enable-magic-quotes --enable-debugger --with-versioning --enable-sysvsem --enable-sysvshm --with-mod_charset --enable-force-cgi-redirect --enable-trans-sid --enable-yp --enable-ftp --with-xml --with-gettext --enable-sigchild --without-mysql

        thanks 🙂
        MAGIC fix helped too 🙂)

          Write a Reply...