PHP not working with Apache.

Reply

Join Date: May 2005
Posts: 1
Reputation: alexmcavoy is an unknown quantity at this point 
Solved Threads: 0
alexmcavoy alexmcavoy is offline Offline
Newbie Poster

PHP not working with Apache.

 
0
  #1
May 20th, 2005
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)
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 508
Reputation: blud will become famous soon enough blud will become famous soon enough 
Solved Threads: 16
Moderator
Staff Writer
blud blud is offline Offline
Linux Reject

Re: PHP not working with Apache.

 
0
  #2
May 21st, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC