I am totally lost. I can get Apache to open the test page. But the PHP doesn't seem to have installed.

It said I have to manually configure Apache and I am not clear on what I have to do to make it work with Apache.

I am lost on whether I need a DLL - whether I move something somewhere, and what I have to add to the httpd.conf file.

Can someone point me to an article or tutorial that will make sense. I am running windows XP pro.

Thanks

    Unless you're good with server configurations, etc., just stick to pre-built PHP servers. Like Foxserv (http://www.foxserv.net/ ). It does it all for you and you don't have to worry about the details, just about your scripts.

      3 months later

      Hey, i have the same problem did you get yours fixed by the above link from the other guy or did you work out the deal with php and apache, and if you did, please help me, i am desperate, i would kill to get php running, thank you, have a nice day

        Hi,

        on Windows you can do it the following way.

        First make sure that you use the zip package and not the installer version of php.

        Unzip the file to a folder of your choice, e.g. c:\php. Do not use a path with white spaces.

        Copy php4ts.dll and all files from the dlls folder to the system32 folder. Copy php.ini-dist to the windows folder and rename it to php.ini

        Edit the httpd.conf and add the following line to the end of the LoadModule block.

        LoadModule php4_module c:\php\sapi\php4apache2.dll

        Add the following two line somewhere below that line:

        AddType application/x-httpd-php .php .phtml
        AddType application/x-httpd-php-source .phps

        Restart Apache and it should work 🙂

        Thomas

          Thanks for your help, i will try that.

            Well, now that I have installed PHP4 as a module, how can I test it, to make sure that it is working properly? I am actually not a programmer, but someone who is getting started...I just got a book that I want to practice with, and I need these things installed. So, is there any way I can test the installation to make sure that it is working?

            Your help will be greatly appreciated.

              Why don't you try an all-in-one solution like AMP. It installs Apache, MySQL, PHP, and phpMyAdmin from a single exe file. Get more information at http://www.basementventures.com/amp.html. I know this seems like a shameless plug, but I really think it will ease your pain ;-)

              Thanks,

              Ernest

                Ok,

                create a little script that just contains the following lines:

                <?PHP
                phpinfo();
                ?>
                

                Put it in the htdocs directory. Then request it through the browser, e.g. http://localhost/info.php.

                It should display a php info page with lots of information.

                Thomas

                  Write a Reply...