Public bug reported:

Unsure if package should be apache2 or php5. Setting to apache2 for now.

At first this appeared to be some sort of apache-2.4.6 configuration problem
and the deeper down the Rabbit Hole I go... the more I think this may be some
sort of bug.

-------

After upgrading from 13.04 to 13.10 + adding "Require all granted" where 
appropriate,
all php files are returned as text rather than executing.

No info in error.log (with LogLevel debug) only access.log shows the
file returned.

It appears the relationship between .php files + x-httpd-php handler is
somehow broken.

I've tried debugging via strace + apache2 -X with no joy.

Questions are...

1) What's the best way to debug this situation?

2) If this is a known problem, what's the fix?

---------

server-status shows...

Server Version: Apache/2.4.6 (Ubuntu) PHP/5.5.3-1ubuntu2
Server MPM: prefork
Server Built: Aug 9 2013 14:28:56

server-info shows...

In file: /etc/apache2/mods-enabled/php5.conf
   1: <FilesMatch ".+\.ph(p[345]?|t|tml)$">
   2:   SetHandler application/x-httpd-php
    : </FilesMatch>
   5: <FilesMatch ".+\.phps$">
   6:   SetHandler application/x-httpd-php-source
    : </FilesMatch>

net1# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Config for directory in question...

    <Directory /.../phptest>
        AllowOverride All 
        Options +ExecCGI
        AddHandler cgi-script .php .cgi .pl .sh 
        Require all granted
    </Directory>

In the directory is a file phpinfo.php with following characteristics...

net1# find phptest -ls
9835575    4 drwxr-xr-x   2 www-data www-data     4096 Oct 23 11:41 phptest
9835573    4 -rwxr-xr-x   1 www-data www-data       17 Oct 23 10:36 
phptest/phpinfo.php

The file contains...

net1# cat phptest/phpinfo.php 
<? phpinfo() ?>;

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in Ubuntu.
https://bugs.launchpad.net/bugs/1243850

Title:
  php5 broken after Saucy 13.10 upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1243850/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to