Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to enable PHP in 10.6.6 server and it keeps loading the php text (I can see the php code on my .php file).

I've enabled the php5 module in server admin (and verified that it's in the httpd.conf).. anything else I can try?

alt text

I also blew away the current httpd.conf and started again, no luck....

share|improve this question

You also need to make sure that the config for executing php code is in place

AddHandler php5-script .php
AddType text/html .php
share|improve this answer
Just added that in and still nothing :( thanks for the suggestion. – christo16 Jan 19 '11 at 11:31
up vote 1 down vote accepted

Turns out I was using php short tags and didn't have it turned on in the php.ini:

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
short_open_tag = On
share|improve this answer

Don't forget to clean your browser cache or try with another browser.

share|improve this answer
Thanks, gave that a try and no luck. – christo16 Jan 19 '11 at 11:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.