https://bugzilla.novell.com/show_bug.cgi?id=783843 https://bugzilla.novell.com/show_bug.cgi?id=783843#c0 Summary: regression: conf.d/php5.conf does not apply the right handler to all files Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Apache AssignedTo: bnc-team-apache@forge.provo.novell.com ReportedBy: per@computer.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 Hardware: kzinti @ Hetzner About a week ago, I upgraded our production webserver to 12.2. I had a harddisk replaced anyway, so it seemed like a good time to move from 12.1 to 12.2. Unfortunately I was a little too confident in openSUSE, so I didn't check that the webserver actually still worked. It didn't - it did not invoke the PHP handler for the right files anymore. The problem appears to be in conf.d/php5.conf: Earlier version: <IfModule mod_php5.c> AddHandler application/x-httpd-php .php4 AddHandler application/x-httpd-php .php5 AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php .phtml AddHandler application/x-httpd-php-source .php4s AddHandler application/x-httpd-php-source .php5s AddHandler application/x-httpd-php-source .phps DirectoryIndex index.php4 DirectoryIndex index.php5 DirectoryIndex index.php </IfModule> Version from 12.2: <IfModule mod_php5.c> <FilesMatch "\.ph(p[345]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.php[345]?s$"> SetHandler application/x-httpd-php-source </FilesMatch> DirectoryIndex index.php4 DirectoryIndex index.php5 DirectoryIndex index.php </IfModule> Change this section: <FilesMatch "\.ph(p[345]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> to this: <FilesMatch "\.ph(p[345]?|tml)"> SetHandler application/x-httpd-php </FilesMatch> and it works again. I'm serving files named e.g. "index.phtml.en" (language-negotiated through type-map=index.var). The '$' in the regex makes the difference. I'm not sure if using Sethandler instead of Addhandler is correct either, but I sofar I haven't seen any problems with it. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.