I have a problem running PHP 4.2.2 on Apache 1.3.26 running under red hat linux. I have compiled and installed all packages successfully with no errors.
The problem is that Apache does not process the php script , so any php scripts just appear as blank html files with view source displaying the PHP code. I have read that this is a server configuration problem so I have gone through the step to configure the httpd.conf file and everything is in place (AddType, LoadModule etc..) so now I'm really stuck. Can anyone help me in trying to find the cause of this problem or maybe point me in the right direction ...

Thanks

James

    hmm... if the httpd.conf stuff is all good, then I'd be interested to know if Apache is even loading the php module. go in the libexec folder in your apache install, and rename the "libphp4.so" file, and stop and restart apache. did it start with no errors?... if so then PHP wasn't configured and installed correctly.

    if your apache is compiled with modssl, then there's another possibility that i've seen in the past-- php alters the httpd.conf in a funny way, so that the LoadModule and AddModule calls are inside an <IfDefine SSL> block. if that were true, and you started apache w/o ssl, you would get the behavior you describe.

      Thanks for all your help but I got so annoyed with PHP not working that I rebuilt the whole linux box and reinstalled apache and PHP. Now it works!!
      I don't know what went wrong with the other installation especially as there were no error messages to go by.

      thanks for your help

      JimmyG 🙂

        Write a Reply...