This is really beginning to annoy!
I have recently installed Redhat 8 on my system. Everthing works perfect as expected. EXCEPT: Apache does not parse the PHP. All the correct modules are loaded. I have found instances of this occurring (sp) on google. Alas there have been no resolutions. If you have any suggestions short of reinstalling please let me know.

Regards,
--transfix-->

Technology is like an axe in the hands of a pathological killer
[Alber Einstein]

    This may be really silly but does PHP 4.2.2 fully support Apache 2.x? I have stuck with Apache 1.x because PHP is still kinda lagging behind is Apache 2 support. I may be wrong when it comes to PHP 4.3 but you problem may be a comptibility issue.

    mikeplemmo

      I have checked with Apache 2 and PHP 4.2.2 and there are no postings regarding compatibility issues. However that does not mean they do not exist. Like I said I have seen multiple occurences of this on several other boards and searches in google but nothing to resolve. I am not ready to go back to an early Apache release yet.

      --transfix-->
      Technology is like an axe in the hands of a pathalogical murderer
      [Albert Einstein]

        I have installed Apache 2.0.43 and php4.3.0 by hand and everything is working. I'm using Mandrake 8.1. If you like I'll post my configure scripts.

          a month later

          Hi

          I am having the same problems, but I installed redhat 8 as a desktop and then added the modules afterwards.

          Do I need to install the server config?

          Thanks in advance

          Emmasiss.🙂

            I have Apache 2.0.44 with PHP 4.3.0 on Red Hat 7.3.

            The output of the PHP script is being filtered out, eg, the output for <?php phpinfo(); ?> appears to be filtered out, nothing prints, I only see HTML in the output.

              I'm running RedHat 7.2, Apache 2.0.44, PHP 4.3.1.

              First, if you've compiled PHP as a DSO (compile option: -with-apxs2=/path/to/apache/bin/apxs), make sure you load the module:

              LoadModule php4_module modules/libphp4.so

              That should be in your httpd.conf file along with:

              AddType application/x-httpd-php .php

              Then restart the server: apachectl restart

              -a9

                This is how I've configured Apache

                /configure --with-apxs2=/usr/local/apache/bin/apxs \
                --with-mysql \
                --prefix=/usr/local/apache/php \
                --with-config-file-path=/usr/local/apache/php \
                --enable-track-vars \
                --enable-force-cgi-redirect \
                --disable-cgi \
                --with-zlib \
                --with-gettext \
                --with-gdbm > config.out 2>&1

                  15 days later

                  I'm having the same problem. Not absolutely sure of versions but I know it's Apache 2.x and PHP4.x and Redhat 8.

                  I'm new to Linux, but I managed to install Apache 2 and PHP4 on my W2K computer without this much difficulty.

                  Apache and PHP were installed using the RPM and I have checked most things mentioned in this forum (httpd.conf and php.ini) so far and what I could find elsewhere. I am at a loss as to how to troubleshoot because of my unfamiliararity with Linux. The Apache server seems to be running fine as I can get regular html pages when pointing to the ip address. No parsing of the PHP is happening tho when I tried the <?php phpinfo(); ?> thing.

                  I am uncertain how to use the ./configure. Is that something for when you are compiling the package for installation? It doesn't seem to work from the command line.

                  Any ideas on how to troubleshoot this would be greatly appreciated.

                  -Labrat

                    OK, I knew it had to be something stupid...

                    I had the html formatted badly... once I fixed it everything worked great!

                    Also just for the heck of it, I turned on the short tags in the php.ini after that I got an error rather than the blank page... for some reason that made me discover the bad html...

                    YAY! it's working now.

                      Write a Reply...