PHP Documents Served as Plain Text

Giganews Newsgroups
Subject: PHP Documents Served as Plain Text
Posted by:  Macray Blackhand (stevenjamesfra…@gmail.com)
Date: Tue, 12 Jul 2011

I have a Gentoo linux box running Apache 2.2.16 and PHP5.3.  It is also run=
ning SubVersion.

The basic problem is that, although Apache is running and serving pages, PH=
P pages are being served as plain text.

The httpd.conf file is set to load a series of modules with an Include dire=
ctive:
Include /etc/apache2/modules.d/*.conf

The modules to be loaded are as follows:
00_default_settings.conf
00_error_documents.conf
00_languages.conf
00_mod_autoindex.conf
00_mod_info.conf
00_mod_log_config.conf
00_mod_mime.conf
00_mod_status.conf
00_mod_userdir.conf
00_mpm.conf
10_mod_mem_cache.conf
40_mod_ssl.conf
45_mod_dav.conf
46_mod_ldap.conf
47_mod_dav_svn.conf
70_mod_php5.conf

As you can see, mod_php5 is setup to load.  The only overtly odd thing (and=
coincidentally the reason I can't tell if mod_php5 is in fact loaded) is t=
hat the apache2 command line utility doesn't like the mod_dav_svn (SubVersi=
on) conf file (the line just before mod_php5 loads:

linux1 modules.d # apache2 -M
Syntax error on line 9 of /etc/apache2/modules.d/47_mod_dav_svn.conf:
Invalid command 'DAV', perhaps misspelled or defined by a module not includ=
ed in the server configuration

I do not know if this issue is preventing mod_php5 from being loaded, but r=
ight now that is all I have to go on.

I have only limit authority over this server and removing SubVersion from t=
he equation is not really an option.

Any suggestions would be welcome.

Replies