PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > PHP isn't parsed anymore
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

PHP isn't parsed anymore

Réponse
 
LinkBack Outils de la discussion
Vieux 14/05/2007, 16h27   #1
NickDG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PHP isn't parsed anymore

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

  Réponse avec citation
Vieux 14/05/2007, 19h28   #2
Jerim79
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP isn't parsed anymore

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.

  Réponse avec citation
Vieux 15/05/2007, 07h40   #3
NickDG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

>
> > PHP is version 4
> > Apache is 1.3

>
> 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.


It appears that the PHP module of Apache was uninstalled somehow and I
can't get it installed again:

moria:/var/www# apt-get install libapache-mod-php4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely
that
the package is simply not installable and a bug report against
that package should be filed.
The following information may to resolve the situation:

The following packages have unmet dependencies:
libapache-mod-php4: Depends: libc6 (>= 2.3.6-6) but
2.3.2.ds1-22sarge6 is to be installed
Depends: libdb4.4 but it is not installable
Depends: libkrb53 (>= 1.4.2) but 1.3.6-2sarge4
is to be installed
Depends: libssl0.9.8 (>= 0.9.8c-1) but it is not
installable
Depends: apache-common (>= 1.3.34) but
1.3.33-6sarge3 is to be installed
E: Broken packages

I fear I messed up my system a bit as I notice that in the
sources.list I got an entry of Stable and one of Sarge and since begin
April Stable is Etch instead of Sarge:

moria:/var/www# cat /etc/apt/sources.list

deb http://security.debian.org/ stable/updates main contrib
deb http://ftp.nl.debian.org/debian sarge main contrib

I think I'll head over to the Debian groups and ask there what I can
do to rescue my system.


Thanks,

Nick.

  Réponse avec citation
Vieux 16/05/2007, 09h02   #4
NickDG
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h22.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14767 seconds with 12 queries