I ran the ./configure --with-mysql --with-apxs from my /usr/local/src/php4... directory and it configured fine, so did make & make install, i copied the php.ini-dist to /usr/local/lib/php.ini. I uncommented the AddModule & LoadModule lines and added the AddType to my httpd.conf file, then did killall -9 httpd, restarted httpd -- my problem is my test file php.php with
<?php
phpinfo();
?>
in it doesn't bring up the right info but PHP/FI Version 2.0.1 when i rename it to php.php3 it does???
in my /etc/httpd directory there is a php3.ini file do i need to replace it or what have i done wrong??? i'm running redhat 6.2 i have mysql installed and running from a rpm is there a rpm available for php4? maybe that would get me going, i dieing to try some stuff with php and mysql!!!!
terry

    These are from my working file
    Hope they help.

    In your httpd.conf file

    #

    Dynamic Shared Object (DSO) Support

    #
    ....
    #LoadModule php3_module libexec/libphp3.so
    LoadModule php4_module libexec/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_php3.c
    AddModule mod_php4.c

    For example, the PHP 3.x module (not part of the Apache distribution - see

    http://www.php.net) will typically use:

    #
    #AddType application/x-httpd-php3 .php3 .php
    #AddType application/x-httpd-php3-source .phps
    #

    And for PHP 4.x, use:

    #
    AddType application/x-httpd-php .php .php3
    AddType application/x-httpd-php-source .phps

      I'm having trouble with php4 and RH7. To get passed an unresolved symbol (uncompress) I had to add --with-zlib to my configure command. Now when I look in /etc/httpd/logs/error_log I see "[notice] Apache/1.3.12 ... PHP/4.0.4pll .. -- resuming normal operations" Not exactly an error, infact I'm led to think all is well. Problem is I too can't get PHP to work. Does anyone know how to debug Apache? Is there a log file that might shed some light on what Apache is doing with the "<?php" directive???

        I tried that and when i restarted apache (httpd) it came up with Cannot load /etc/httpd/libexec/libphp4.so ??? Is there something else i need to load???
        terry

          What error message did it give you? I've just managed to break my install myself. With the same compress error that Bob had.

          I'm trying the static build, but it won't even compile as it complains that it can't find "compress" in the libmysqlclient library.

          That's OK because mysql has it configured as an UNDEF (external declaration) which resides in the zlib library.

          The trick is to somewhow tell Apache to find zlib I guess.

            it couldn't find the libexec/php4.? so httpd wouldn't start, i'm not at my system right now but i will telnet in tomorrow so i can copy it exactly, i was trying to do the dynamic install... is that wrong? is there a rpm somewhere??? that's what i ended doing with mysql???
            terry

              Make sure the correct path is given for the php module in httpd.conf.

              LoadModule php4_module libexec/libphp4.so

              Mine uses a relative path from the ServerRoot directive.

              You can also use an absolute path if you like. /usr/local/apache/libexec/libphp4.so

              Check it out.

                I just finished loading the rpm and it seems that i don't have libphp4.so anywhere on my system???
                terry

                  I GOT IT RUNNING!!!!
                  you have to change the line
                  LoadModule php4_module libexec/libphp4.so
                  to
                  LoadModule php4_module modules/libphp4.so
                  i used the rpms at
                  http://rpms.arvin.dk/php/
                  once i figured out what to do :-) i'm really new at this!!!
                  well now i get to start playing!!!!
                  terry

                    Write a Reply...