Re: PHP isn't parsed anymore
On May 14, 8:28 pm, Jerim79 <m...@hotmail.com> wrote:
> On May 14, 10:27 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 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
>
> I had the same issue last week. My problem was a missing .so file in
> the module directory. Once I got the correct .so file to go in there,
> I just restart Apache and suddenly PHP was working again. Might want
> to try replacing your current file if there is one already in there.
> It my have become damaged.
I updated the system and now I was able to install libapache-mod-php4.
Some surfing learned me to put "LoadModule php4_module /usr/lib/apache/
1.3/libphp4.so" in /etc/apache/modules.conf and restart Apache. I did
it but still no PHP parsing.
Any more ideas?
Thanks,
Nick.
|