apache2-common: wrong behaviour when downloading .php files using webdav and mod_dav

Bug #6957 reported by Debian Bug Importer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Debian)
Fix Released
Unknown
apache2 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #257945 http://bugs.debian.org/257945

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 06 Jul 2004 22:30:35 +0200
From: Alessandro Polverini <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: apache2-common: wrong behaviour when downloading .php files using webdav and
 mod_dav

Package: apache2-common
Version: 2.0.49-1
Severity: grave
Justification: renders package unusable

I recently upgraded from apache1 to apache2, mainly due the fact that
apache2 is needed for subversion.

Anyway, I use mod_dav to access the files on my virtual hosts, but I
experienced this bad behaviour: when I download a .php file, the source
is not downloaded but instead it seems like the output of the php
processing is taken, as if it was a normal http request.

The same configuration worked well with apache1 and mod_dav.

Here is an excerpt of my config:

<VirtualHost *:80>
  ServerName mysite.com

  <Location />
    Dav On
    AuthType Basic
    AuthName "Auth Required"
    AuthUserFile users.basic
    Options Indexes FollowSymLinks
    <Limit DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
      Require user myuser
    </Limit>
  </Location>

</VirtualHost>

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (600, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages apache2-common depends on:
ii debconf 1.4.28 Debian configuration management sy
ii debianutils 2.8.3 Miscellaneous utilities specific t
ii libapr0 2.0.49-1 The Apache Portable Runtime
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-16 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.6-8 XML parsing C library - runtime li
ii libldap2 2.1.23-1 OpenLDAP libraries
ii libmagic1 4.09-1 File type determination library us
ii libssl0.9.7 0.9.7d-3 SSL shared libraries
ii mime-support 3.26-1 MIME files 'mime.types' & 'mailcap
ii net-tools 1.60-10 The NET-3 networking toolkit
ii openssl 0.9.7d-3 Secure Socket Layer (SSL) binary a
ii ssl-cert 1.0-7 Simple debconf wrapper for openssl
ii zlib1g 1:1.2.1.1-3 compression library - runtime

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 8 Jul 2004 11:46:56 +0100
From: Thom May <email address hidden>
To: <email address hidden>
Cc: Adam Conrad <adconrad@0c3.net>

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

package apache2-common
severity 257945 wishlist
reassign 257945 libapache2-mod-php4
thanks

Ok. so, you're reporting a bug that basically says "when i request a PHP
page, it gets processed by PHP".=20
It seems that the real bug you're reporting is, 'php should deactivate
itself during dav requests', which is why I'm dropping this to wishlist and
reassigning to PHP, which is where it belongs.
I strongly recommend that you go and re-read the description of severity
levels at bugs.debian.org; and also that you think about setting up a
different virtual host for uploads and turning off php for that.
Cheers,
-Thom

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQIVAwUBQO0mILVnlGdHP376AQIb/g//fgHl+CD5DsQQ1vSRkHh2F5k/wv/Atvxy
GR8w/Z0tA1upoOXiaEhmUPcSuZRYP5R/Bqro6NAy6E5QfbwXxDJTjH6CfGaOfiL5
+fiTPIGfEiVKFVHvLNhHCQT4UuezpIHhsPoUEdJWp4/ilGj+hkcR+18m4o4hZJM1
o2GsrvcA9GF6C0JkPfWvVGGsYkWJhhkr0Fb4v+zpdtbJa9J7L5fdo6a8Sv0U4vzb
cAMEYASdjbENBqC96nct1+TvrJQA/z7UdCBuNOvrQD0qcGDzxOMHalVoU4b0ylFi
JWLVDI53iOa0ok2ffce3nC9XM/by57urH9CuElMXRPinmDFnMa9kO89+wrZR07dA
QVii6+cuoBnF3WKbn18epE3XdxOLA4p/q2hwQI4J7XV8BY6uxE27AbB17uOkJnRp
vwFmuVrDLhEWudAb5j8oQhdoDCIXyOuk3PslPQ3A8kT1WsWcagdT3sKbrH2Z1kNW
YJxiieLztTvJ4u0qyBUtDZBXEOTp0NbVP272dem33qSr0FpEN4mgo1djQurz2KTo
7meqvVphuNvbYkoXQuawT91jfMGAxB+e7OqWraBGfbSRPEcbMlhc7zUg1t32L+mh
kCNwRHSIAQcOouXFjzOm7+8yqX5sYMMUmt7Pk+hcfKmVnGTnZlDXaTYe0z+EUn3+
/svTD/UuuOQ=
=RW60
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <10cd01c47edd$50f0d850$0300000a@0c3.net>
Date: Tue, 10 Aug 2004 23:24:05 +1000
From: "Adam Conrad" <adconrad@0c3.net>
To: <email address hidden>
Cc: <email address hidden>
Subject: apache2-common: wrong behaviour when downloading .php files using webdav and mod_dav

reassign 257945 apache2-common
thanks

<infinity> thom : Also, I'm thinking I should bounce that dav bug back
to you.
<infinity> thom : dav_svn DTRT and serves the source, so why can't dav?
<thom> which one?
<thom> oh, right
<thom> dav_svn DTRT with php4 loaded?
<infinity> Yup.
<infinity> Confirmed today at work.
<thom> interesting, so it must remove all other handlers
<infinity> Which would make sense.
<thom> i guess so, yes
<thom> ok, ping it back to me at wishlist :-)
<infinity> Done.

... Adam

Revision history for this message
daniel (danny0085) wrote :

If you want to learn more about apache2 download "Apache2 bible"

<a href="http://tips-debian.blogspot.com/2008/04/apache-bible.html">http://tips-debian.blogspot.com/2008/04/apache-bible.html</a>

Changed in apache2 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.