Apache -php 5 issue on windows

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
nawhaley
Forum Commoner
Posts: 85
Joined: Wed May 18, 2005 11:43 am

Apache -php 5 issue on windows

Post 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: .
Last edited by nawhaley on Wed May 18, 2005 12:52 pm, edited 1 time in total.
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

Did you add the addtype:

Code: Select all

AddType application/x-httpd-php .php
or something like that
nawhaley
Forum Commoner
Posts: 85
Joined: Wed May 18, 2005 11:43 am

Post 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: .
Post Reply