Page 1 of 1

Apache -php 5 issue on windows

Posted: Wed May 18, 2005 12:41 pm
by nawhaley
Ok I'm trying to get Apache 1.3 and PhP 5 running on my box heres what I've put in my configuration files

Code: Select all

ServerRoot &quote;C:/Program Files/Apache Group/Apache&quote;
       LoadModule php5_module &quote;C:\php\php5apache.dll&quote;
       AddModule mod_php5.c
       DocumentRoot &quote;C:/Program Files/Apache Group/Apache/htdocs&quote;
       <Directory &quote;C:/Program Files/Apache Group/Apache/htdocs&quote;>
        ScriptAlias /php/ &quote;c:/php/&quote;
    AddType applicaton/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .htm
    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .phtml
    Action application/x-httpd-php &quote;/php/php.exe&quote;
those are the changes made to the httpd fil.Only changed lines were put above for readabilty sake the rest is just like it was when the file was unaltered. Below is my changes to the Apache server php-reccomended file which I renamed php.ini and put into my winnt directory as instructed.

Code: Select all

doc_root =c:\Program Files\Apache Group\Apache\htdocs&quote;
     extension_dir = &quote;c:\php&quote;
now what happens is when I open my test.php document on my apache server is I get plain text it does not run the PHP code what am I configuring wrong?

edited for me being a twit and leaving out the Addtype lines from my configuration :oops: .

Posted: Wed May 18, 2005 12:47 pm
by andre_c
Did you add the addtype:

Code: Select all

AddType application/x-httpd-php .php
or something like that

Posted: Wed May 18, 2005 12:53 pm
by nawhaley
thanks for the quick response I did actually have those in but I forgot to put them up along with the rest of my code its fixed now ...sorry :oops: .