Hi guys,
I have installed Apache. Its working fine.
I have also PHP 5.2.1 installed.
I have enabled load module in http.conf also
I have also added following in mime.types
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
But Still I am .php page along with php code. It gets executed but also shows the php code same as written. What else configuration remaining?
Solutions: Add SetHandler in http.conf file
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
-
Have you installed php?
Or you can try other popular packages for basic web server functionality:
KoolKabin : Yeah I do Have installed PHP. Its in c:\php folder. I am trying to do it manually... not using xampp or zend serverKoolKabin : thnx.. addhandler worked.... Actually i found out that i placed my add type code placed in next file. -
Did you make sure to restart Apache after making the config changes?
Also clear your browser's cache - this was the problem the last time I had this issue. I went so far as using another browser to make sure.
KoolKabin : yeah fine its working now... I use addhandler method -
While you seem to have fixed it (as posted in other comments), I think I see your problem.
The
AddTypedirective seems to like having a dot in the extension. Your posted configuration is missing them.AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phpsKoolKabin : Should we add the given code in mime.types or http.confFrom Charles
0 comments:
Post a Comment