lucid - php not parsed in user directory

Bug #545739 reported by krishna on 2010-03-24
This bug affects 6 people
Affects Status Importance Assigned to Milestone
php5 (Debian)
Fix Released
php5 (Ubuntu)

Bug Description

Binary package hint: firefox

After upgrading to Lucid, PHP files in user directories are not parsed. You get a pop-up to download the php file. PHP files in the server root run fine.

This issue has been solved by another early adopter:

It appears that "php_admin_value_engine On" is no longer working.

ProblemType: Bug
Architecture: i386
Date: Wed Mar 24 01:22:21 2010
DistroRelease: Ubuntu 10.04
 firefox 3.6+nobinonly-0ubuntu6
 firefox-gnome-support 3.6+nobinonly-0ubuntu6
 firefox-branding 3.6+nobinonly-0ubuntu6
 abroswer N/A
 abrowser-branding N/A
NonfreeKernelModules: nvidia
Package: firefox 3.6+nobinonly-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic
SourcePackage: firefox
Uname: Linux 2.6.32-17-generic i686

krishna (kss18) wrote :
Micah Gersten (micahg) wrote :

Not a Firefox issue...moving to php5.

affects: firefox (Ubuntu) → php5 (Ubuntu)
Ondřej Surý (ondrej) wrote :

From NEWS.Debian:

php5 (5.3.1-3) unstable; urgency=low

  * mod_php disabled in userdirs.

  The default Debian libapache2-mod-php5 package now disables the PHP
  engine on ~/public_html directories when mod_userdir is enabled, for
  security reasons. Although discouraged, it can be re-enabled by
  commenting the <IfModule mod_userdir.c> block in

Ondřej Surý (ondrej) wrote :

Also we have added comment to libapache2-mod-php5.conf to 5.3.2-1:

<IfModule mod_php5.c>
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler application/x-httpd-php
    <FilesMatch "\.phps$">
        SetHandler application/x-httpd-php-source
    # To re-enable php in user directories comment the following lines
    # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.
    <IfModule mod_userdir.c>
        <Directory /home/*/public_html>
            php_admin_value engine Off

Chuck Short (zulcss) on 2010-03-29
Changed in php5 (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Changed in php5 (Debian):
status: Unknown → Fix Released
Fenix-TX (jesusvpct) wrote :

I've tried commenting those lines but for me is not working, any suggestion?

Fenix-TX (jesusvpct) wrote :

It happens only on firefox, why????? on konqueror i can see my web :-S

Fenix-TX (jesusvpct) wrote :

Forget it, i had to delete cache and history on firefox, now works.

Clint Byrum (clint-fewbar) wrote :

This was fixed a long, long time ago.

Changed in php5 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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