Since this morning all PHP files are returned as there original code
instead of parsed to HTML.
The server (a Debian) was installed by one of my long gone
predecessors and has been running flawlessly for several years.
Although I know my way around Linux, I don't know enough PHP or Apache
to figure out what's wrong.
As far as I can tell, nothing has happened over the weekend. The
server didn't go down. I didn't upgrade the system on Friday, either.
What more info do you need to be able to help me?
Thanks,
Nick.
Example of return text:
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - ken@300baud.org
# Copyright (C) 2002 - 2004 Mantis Team - mantisbt-
d@lists.sourceforge.net
# This program is distributed under the terms and conditions of the
GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id: index.php,v 1.15.18.1 2006/07/22 20:03:00 vboctor Exp $
# --------------------------------------------------------
?>
<?php require_once( 'core.php' ) ?>
<?php
if ( auth_is_user_authenticated() ) {
print_header_redirect( config_get( 'default_home_page' ) );
} else {
print_header_redirect( 'login_page.php' );
}
?>
PHP is version 4:
moria:~# apt-show-versions | grep php
php4-common/stable uptodate 6:4.4.4-8+etch2
php4-dev/stable uptodate 6:4.4.4-8+etch2
Apache is 1.3:
moria:~# apt-show-versions | grep apache
apache/oldstable uptodate 1.3.33-6sarge3
apache-utils/oldstable uptodate 1.3.33-6sarge3
apache2-utils/oldstable uptodate 2.0.54-5sarge1
apache-doc/oldstable uptodate 1.3.33-6sarge3
apache-common/oldstable uptodate 1.3.33-6sarge3
On May 14, 4:29 am, NickDG <nick.degra
@gmail.com> wrote:
> Since this morning all PHP files are returned as there original code
> instead of parsed to HTML.
> The server (a Debian) was installed by one of my long gone
> predecessors and has been running flawlessly for several years.
> Although I know my way around Linux, I don't know enough PHP or Apache
> to figure out what's wrong.
> As far as I can tell, nothing has happened over the weekend. The
> server didn't go down. I didn't upgrade the system on Friday, either.
> What more info do you need to be able to help me?
> Thanks,
> Nick.
Check your Apache .htaccess files (in directories in your webroot) to
make sure PHP is registered as the .php handler.
Please post a copy of the .htacess file in your root directory (or
secure parts of it you don't mind sharing) if you're not sure what to
look for.
-Mike PII
-----------------------------------------------Reply-----------------------------------------------
On May 14, 8:11 pm, Mike P2 <sumguyovrt
@gmail.com> wrote:
> On May 14, 4:29 am, NickDG <nick.degra
@gmail.com> wrote:
> > Since this morning all PHP files are returned as there original code
> > instead of parsed to HTML.
> > The server (a Debian) was installed by one of my long gone
> > predecessors and has been running flawlessly for several years.
> > Although I know my way around Linux, I don't know enough PHP or Apache
> > to figure out what's wrong.
> > As far as I can tell, nothing has happened over the weekend. The
> > server didn't go down. I didn't upgrade the system on Friday, either.
> > What more info do you need to be able to help me?
> Check your Apache .htaccess files (in directories in your webroot) to
> make sure PHP is registered as the .php handler.
> Please post a copy of the .htacess file in your root directory (or
> secure parts of it you don't mind sharing) if you're not sure what to
> look for.
Apparently, it was an update issue. The PHP module seems to be
uninstalled and I can't get in installed again. It seems I got Debian
Sarge and Etch packages mixed.
Strange that it didn't come up earlier 'cause on Friday I didn't
update but earlier in the week I did.
Anyway, I'll head over to the Debian groups to see what I need to do
to salvage my system.
Thanks,
Nick