Help getting PHP5 to work with apache v1.3 in Etch



Back when I was running Sarge I had apache v1.3 and php5 working just fine. I did a clean install when I switched to Etch, instead of using 'dist-upgrade.' When I did the install I installed apache2, instead of apache v1.3.

I just tried to access the local copy of my site and I get a 404 Error from apache2. I couldn't figure out why it did not find the site. Figuring that it was probably a configuration problem, I looked in /etc/apache2/apache2.conf. That didn't help. So I installed apache2-doc, but could not view the docs properly. Firefox just displayed the contents of the files, instead of rendering them. I decided to give up on apache2, so I purged all of the apache2 packages and installed apache, apache-doc, and php, along with their dependencies. This got apache running again, and it will find and correctly find and render my site (and its own docs), but when I try to access the lone .php file on my site I get a prompt saying:

You have chosen to open

gallery.php

which is a: PHP File
from http://xander

What should Firefox do with this file?

Then it gives me the option to select a program to open it with, or save to disk. Obviously, neither of these options is correct. If I save the file, however, and then look at it, I see that apache has NOT preprocessed the file, but has served it up as is. Apparently, apache does not think that php is installed and so is not processing the file. Then Firefox receives it and it should display it as html. Of course, since it hasn't been preprocessed by apache Firefox will barf on the php code embedded in the file, but it should still try to render it, shouldn't it?

Can anyone help me in getting this to work? It all worked fine under Sarge, but not now, under Etch.

The applicable entries from dpkg -l are:

mns@xander:~$ dpkg -l | grep apache
ii apache 1.3.34-4 versatile, high-performance HTTP server
ii apache-common 1.3.34-4 support files for all Apache webservers
ii apache-doc 1.3.34-4 documentation for the Apache webserver
ii apache2-utils 2.2.3-3.2 utility programs for webservers
ii libapache-mod-php5 5.2.0-8 server-side, HTML-embedded scripting language (apache 1.3 module

--
Marc Shapiro
mshapiro_42@xxxxxxxxx



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: [PHP] Question before upgrading to 5
    ... We only use php for intranet applications I create, ... so the server is basically dead at nights, which is when I do most of my ... so your going to shut down apache on ... install of apache would allow you to do. ...
    (php.general)
  • Re: [SLE] updating to PHP5
    ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
    (SuSE)
  • RE: Problem with apache, php and mysql after FC4 upgrade: SegmentationFault ...
    ... the config options are that php/apache is seeing for php... ... this will install in the default dirs.... ... i'm curious to know if the rpms for php with FC4 are somehow screwed up... ... > Group apache ...
    (Fedora)
  • Re: Can not get Php (4.4 - Windows) configured to open secure URLs (https)
    ... to do something more in php or in Apache httpd.conf? ... To use the CSR and key generation functions from PHP, you will need to install an openssl.cnf file. ... The Windows environment variable OPENSSL_CONF is set to C:\OpenSSL\bin\openssl.cnf (and that is where I have installed OpenSSL. ...
    (comp.lang.php)
  • Re: PHP4 - Apache2 - MySQL What am I missing *FIXED*
    ... Now, i am working on a network management system using php4,mysql and apache, ... so that our form variables could be send to php ... >> Can someone queue me in on what I missed on the MySQL capability install? ... Faculty Of Computer Science, ...
    (Debian-User)