Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache - PHP fails 1

Status
Not open for further replies.

pjharren

Programmer
Mar 13, 2004
2
US
I am trying to learn PHP and gave up onIIS after continually running into PHP limitations. I installed Apache 2.0.55 on my XP Pro system. Apache seems to be working properly, html is OK. But it does not recognize PHP. When I attempt to access a .php page, I get a message box "Do you want to open or save this file". I re-checked the install instructions and don't see what I missed. Can anyone tell me what I did wrong? Thanks.
 
Hi

In the Apache configuration file :

Load the PHP module :
[tt]LoadModule php5_module lib/httpd/libphp5.so[/tt]

Associate the .php extension to the MIME type, to be processed be PHP :
[tt]AddType application/x-httpd-php .php[/tt]

Additionally, to be served as index if there is no file name in URL :
[tt]DirectoryIndex index.html index.php[/tt]

After editing the configuration file, restart the Apache.

If still no success, tell us with what content-type HTTP header are those files delivered by the server ?

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top