Public bug reported:

Binary package hint: apache2

Previously under 9.10 my local installation of SilverStripe (a CMS) was
served up correctly by apache2. Now, if I visit http://localhost/bean or
http://localhost/bean/admin, the index.php files in those directories
are served up as ascii files and not executed. I have modified
/etc/apache2/mods-enabled/php5.conf to enable user directory php but
this does not fix the problem.

Other detail:
1. In /etc/apache2/apache2.conf I have set my DocumentRoot to be 
/home/adam/public_html
2. The directories /home/adam/public_html/bean and 
/home/adam/public_html/bean/admin both have accessible index.php files
3. If I visit http://localhost/bean/index.php the page will render correctly 
but not if I visit http://localhost/bean/

/etc/apache2/mods-enabled/php5.conf:
<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>


php5 is enabled and running in apache2

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apache2 2.2.14-5ubuntu6
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic i686
Architecture: i386
Date: Sun Apr  4 09:28:31 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: apache2

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


** Tags: apport-bug i386 lucid

-- 
apache2 with mod php5 does not execute index.php
https://bugs.launchpad.net/bugs/554903
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.

-- 
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