I just follow the instruction installing php 4 like editing httpd-php.conf on apache folder,,

when i type "localhost" on the browser it says it works! but when i changeit to "localhost/phpino.php" it did not display the settings of my php it just display the content of phpinfo.php which is "<?php phpinfo();?>"

can you help me plss,, i only need a setup for php4.4.7 and apache 2 only tnx πŸ™‚

    Okay, what does your conf file look like? Did you add the AddType directives?

      Also, just to clarify... Apache 2.* isn't descriptive, as there are two distinct subversions: 2.0.x and 2.2.x -- it DOES matter which one you're using. So... which is it?

        yes i also add the AddType directives but still the same happening,, oh! my apache version is the latest version of apache 2.2.x πŸ™‚

          1.) What does your httpd.conf file look like?
          2.) What does your php.ini file look like?

          What OS are you using? Windows, Mac, Linux?

            this is my php.ini and httpd.conf attached as .txt and im using windows XP service pack 2

            i place my php.ini to c:\php
            and my httpd.conf file at C:\Program Files\Apache Software Foundation\Apache2.2\conf

            anything wrong with these? πŸ™

              In your httpd.conf file, there's no AddType application/x-httpd-php .php line.
              You also don't load the php module. You need LoadModule php4_module /path/to/your/mod_php.so as well.

              Apache 2.2 now allows for the PHPIniDir directive. You can use this to place php.ini in your c:\php folder. That line would look like: PHPIniDir "C:/php/php.ini"

              Fix those three things, and you should at least have php working. Whether it's secure is another thing.

                oh im sorry but still cant understand

                i place in my httpd.conf but still not working
                where can i find my mod_php.so i already search on my computer but cannot find this mod_php.so file am i going to create it or it is missing

                take a look at my new httpd.conf file tnx πŸ™‚

                #PHPIniDir "C:/php/php.ini"
                #LoadModule php4_module /modules/mod_php.so
                #AddType application/x-httpd-php .php

                oh wait is it my php4apache2.dll placed in mysapi folder is it look like these

                #Load Module php4_module c:/php/sapi/php4apache2.dll

                  The # character at teh beginning of lines comments out the line. So your three lines will never be executed πŸ™

                  THe module is actually probably in your C:\php folder. Probably something like: C:\php\php4apache2.dll

                  However, please note that the php4apache2.dll WILL NOT work with apache 2.2.x. For that you need to get php4apache2_2.dll. In my stickied post, you can see this toward the top:

                  Get Apache 2 handler for php4
                  [indent]PHP 4 does not have a native apache 2 handler. We need to download a new handler for it. You can do this by downloading from this site [Image][/indent]

                  You need to get that dll, extract it to your c:\php folder, and then use that as the module. So your LoadModule line would look like:
                  LoadModule php4_module C:/php/php4apache2_2.dll

                  Hope that helps.

                    great its working now thankyou bpat 1434 it really helpsπŸ™‚ πŸ™‚ πŸ™‚ πŸ˜ƒ

                      Write a Reply...