Difference between revisions of "Apache not interpretting php code"

From thelinuxwiki
Jump to: navigation, search
(Pushed from Themanclub.)
 

Latest revision as of 16:52, 12 April 2013

Problem description

php code is being displayed by web browsers because apache is not parsing / interpretting php code.


Solution:

For the latest case, this was solved by:

 1)  add -D PHP5 to the APACHE2_OPTS line in /etc/conf.d/apache2
 Example:
 APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5"
 2)  restart apache