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
nawhaley
Forum Commoner
Posts: 85 Joined: Wed May 18, 2005 11:43 am
Post
by nawhaley » Wed May 18, 2005 12:41 pm
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 "e;C:/Program Files/Apache Group/Apache"e;
LoadModule php5_module "e;C:\php\php5apache.dll"e;
AddModule mod_php5.c
DocumentRoot "e;C:/Program Files/Apache Group/Apache/htdocs"e;
<Directory "e;C:/Program Files/Apache Group/Apache/htdocs"e;>
ScriptAlias /php/ "e;c:/php/"e;
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 "e;/php/php.exe"e;
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"e;
extension_dir = "e;c:\php"e;
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
.
Last edited by
nawhaley on Wed May 18, 2005 12:52 pm, edited 1 time in total.
andre_c
Forum Contributor
Posts: 412 Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah
Post
by andre_c » Wed May 18, 2005 12:47 pm
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 » Wed May 18, 2005 12:53 pm
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
.