Apache -php 5 issue on windows
Posted: 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
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.
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
.
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;Code: Select all
doc_root =c:\Program Files\Apache Group\Apache\htdocs"e;
extension_dir = "e;c:\php"e;edited for me being a twit and leaving out the Addtype lines from my configuration