libapache2-mod-php5 is no longer working correctly on lucid

Bug #531150 reported by Grizzly(Francis Smit)
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Opinion
Medium
Unassigned

Bug Description

Binary package hint: libapache2-mod-php5

I ran update manager it ran the distribution upgrade it pulled out a bunch of php things now mod-php doesn't work on my server instead the browser tries to down load the php file

1). root@pern:~# lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

2). root@pern:~# apt-cache policy libapache2-mod-php5
libapache2-mod-php5:
  Installed: 5.3.1-5ubuntu1
  Candidate: 5.3.1-5ubuntu1
  Version table:
 *** 5.3.1-5ubuntu1 0
        500 http://mirror.aarnet.edu.au lucid/main Packages
        100 /var/lib/dpkg/status

3). I expected the server to interpret the php file

4). instead the browser ask me did I want to download the php file

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for reporting the bug, can you supply the following:

1. The output of the following command: sudo dpkg -l | grep php
2. The output of the command: sudo /etc/init.d/apache2 restart
3. The contents of /var/log/apache2/error.log.

Thanks
chuck

Changed in php5 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :
Download full text (6.9 KiB)

1). grizzlysmit@pern:~$ sudo dpkg -l | grep php
[sudo] password for grizzlysmit:
ii libapache2-mod-php5 5.3.1-5ubuntu1 server-side, HTML-embedded scripting languag
ii libhtml-wikiconverter-phpwiki-perl 0.51-2 HTML to wiki markup converter - PhpWiki dial
ii libphp-jabber 0.4.3-3 Object-oriented PHP interface for the Jabber
ii libphp-pclzip 2.8.2-1 zip archive manager class for PHP
ii libphp-serialization-perl 0.33-1 Perl module to manipulate serialized PHP dat
ii libxmpp-php 0~svn53-1.1 PHP library allowing communication with XMPP
ii php-auth 1.6.2-1ubuntu1 PHP PEAR modules for creating an authenticat
ii php-crypt-gpg 1.0.0-2 PHP PEAR module for encrypting and decryptin
ii php-date 1.4.7-1 PHP PEAR module for date and time manipulati
ii php-db 1.7.13-2 PHP PEAR Database Abstraction Layer
ii php-doc 20081024-1 Documentation for PHP5
ii php-geshi 1.0.8.4-1 Generic Syntax Highlighter
ii php-http 1.4.1-1 PHP PEAR module for HTTP related stuff
ii php-http-upload 0.9.1-1 Easy and secure managment of files submitted
ii php-mdb2 2.5.0b2-1 PHP PEAR module to provide a common API for
ii php-mdb2-driver-pgsql 1.5.0b2-1 PHP PEAR module to provide a PostgreSQL driv
ii php-pear 5.3.1-5ubuntu1 PEAR - PHP Extension and Application Reposit
ii php5 5.3.1-5ubuntu1 server-side, HTML-embedded scripting languag
ii php5-cli 5.3.1-5ubuntu1 command-line interpreter for the php5 script
ii php5-common 5.3.1-5ubuntu1 Common files for packages built from the php
ii php5-curl 5.3.1-5ubuntu1 CURL module for php5
ii php5-dev 5...

Read more...

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

3). see attached bellow

Revision history for this message
Raphael Geissert (atomo64) wrote :

Does by any chance your script is under ~/public_html? if that's so, it is not a bug, check /usr/share/doc/php5-common/NEWS.Debian.gz

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote : Re: [Bug 531150] Re: libapache2-mod-php5 is no longer working correctly on lucid

On 03/05/10 17:33, Raphael Geissert wrote:
> Does by any chance your script is under ~/public_html? if that's so, it
> is not a bug, check /usr/share/doc/php5-common/NEWS.Debian.gz
>
>
hmmm that's at least part of the problem except my page that has php
pages in frames still doesn't work have they disabled some thing else???

--
   In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.google.com/profiles/grizzlysmit

Revision history for this message
jacquesh (jhullu) wrote :

I've the same problem with cherokee and apache2.
I've try to uninstall and purge all apache2 and php packages... that doesn't solve the problem.

Changed in php5 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

It looks like you caught in the transition. I was wondering if you were still having problems?

Thanks
chuck

Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in php5 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
BigBadBassMan (d-reiche) wrote :

this can be circumvented when setting

short_tags = On

within the php.ini used by the apache moduel (usually /etc/php5/apache2/php.ini).
PHP-Module works only, if this directive is enabled, no matter if your code (or the code of the apps you're using) actually uses short tags.
Very annoying to find out, especially since short_tags have been deprecated for a while! None of todays php projects relies on short_tags!

Changed in php5 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
BigBadBassMan (d-reiche) wrote :

any news on this one?

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

ok it was a cahe prob with my broswer the comment out the stuff in /etc/apache2/mods-available/php5.conf still works

Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

this problem is back cannot fix as b4

Andrey (andru-1986)
Changed in php5 (Ubuntu):
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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