lucid - php not parsed in user directory

Bug #545739 reported by krishna
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
php5 (Debian)
Fix Released
Unknown
php5 (Ubuntu)
Fix Released
Wishlist
Unassigned

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: http://marco.tondela.org/2010/03/your-public_html-with-php5-isnt-working-in-ubuntu-lucid/

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
FirefoxPackages:
 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
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
SourcePackage: firefox
Uname: Linux 2.6.32-17-generic i686

Revision history for this message
krishna (kss18) wrote :
Revision history for this message
Micah Gersten (micahg) wrote :

Not a Firefox issue...moving to php5.

affects: firefox (Ubuntu) → php5 (Ubuntu)
Revision history for this message
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
  /etc/apache2/mods-available/php5.conf

Revision history for this message
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>
    <FilesMatch "\.phps$">
        SetHandler application/x-httpd-php-source
    </FilesMatch>
    # 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
        </Directory>
    </IfModule>
</IfModule>

Chuck Short (zulcss)
Changed in php5 (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Changed in php5 (Debian):
status: Unknown → Fix Released
Revision history for this message
Fenix-TX (jesusvpct) wrote :

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

Revision history for this message
Fenix-TX (jesusvpct) wrote :

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

Revision history for this message
Fenix-TX (jesusvpct) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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