954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP not working with Apache.

I have the latest version of Apache and PHP, and run both on Microsoft Windows XP Home Edition. I have installed PHP and edited the Apache configuration file to recognize PHP, but when I load a page (on my server) in PHP, it comes up the same as if I had opened it in a text editor.

http://img28.echo.cx/img28/8052/php9fq.jpg

Above is a link to a screenshot of my browser. Apache doesn't seem to work with PHP the way I set it up (exactly as said on the PHP website). Any suggestions?

Thanks for your help.

--Alex (alexmcavoy@gmail.com)

alexmcavoy
Newbie Poster
1 post since May 2005
Reputation Points: 10
Solved Threads: 0
 

From the looks of the screenshot either the AddType and AddHandler for php was not added to the httpd.conf file, or apache wasn't restarted after they were added. You may just want to verify the following lines exsist:
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps

blud
Linux Reject
Staff Writer
830 posts since Apr 2004
Reputation Points: 154
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: