|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|