Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.77 sec)
Apache isnt displaying PHP but just the files

I just see text from PHP files and not proper PHP pages in my new Apache when I open them up in a browser.

Any tips would really help me out.

Cheers.
Asked by:
wazza
25 points
 Report Abuse
 Share Page - Category: Programming - Tags: Apache isnt displaying PHP but just the files
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

You need at the minimum the following directives in your Apache configuration:

AddHandler application/x-httpd-php .php

DirectoryIndex index.php

Plus of course make sure you're loading php5_module.

The above assumes your php files have a .php extension.

Response by:
lgretton
215 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle