Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256941 - dev-lang/php-5.2.8-r2 - multiviews don't work (AddType to SetHandler migration)
Summary: dev-lang/php-5.2.8-r2 - multiviews don't work (AddType to SetHandler migration)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
: 256708 (view as bug list)
Depends on:
Reported: 2009-01-30 14:54 UTC by Cedric Godin
Modified: 2011-04-27 14:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

config.php file from my websvn (config.php,438 bytes, text/plain)
2011-03-21 10:43 UTC, Cedric Godin
vhost config file for the svn (01_svn_vhost.conf,202 bytes, text/plain)
2011-03-21 14:13 UTC, Cedric Godin
vhost config file for the svn (part 2, include) (svn_vhost.include,608 bytes, text/plain)
2011-03-21 14:14 UTC, Cedric Godin

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Godin 2009-01-30 14:54:10 UTC
I use websvn with multiviews. After the upgrade of php to 5.2.8-r2, i can't go into a subversion repos. Main page is OK because the index is wsvn.php. The repos are accessed via "/wsvn/" url (thnaks to multiviews).
In the error_log file I have :

[Fri Jan 30 15:43:20 2009] [error] [client x.x.x.x] Negotiation: discovered file(s) matching request: /var/www/svn/htdocs/wsvn (None could be negotiated).

If I put back a AddType line for php in the /etc/apache2/modules.d/70_mod_php5.conf file, everything is back. Seems that the .php extension is not recognized by MultiViews without it.

Reproducible: Always

Steps to Reproduce:

Portage (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 i686)
System uname: Linux-2.6.27-gentoo-r7-i686-Pentium_III_-Coppermine-with-glibc2.0                     
Timestamp of tree: Fri, 30 Jan 2009 07:15:02 +0000                                                  
app-shells/bash:     3.2_p39                                                                        
dev-lang/python:     2.5.2-r7                                                                       
sys-devel/autoconf:  2.63                                                                           
sys-devel/automake:  1.5, 1.10.2                                                                    
sys-devel/binutils:  2.18-r3                                                                        
sys-devel/gcc-config: 1.4.0-r4                                                                      
sys-devel/libtool:   1.5.26                                                                         
virtual/os-headers:  2.6.27-r2                                                                      
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=1 -fprefetch-loop-arrays -maccumulate-outgoing-args"                                                            
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=16 -falign-jumps=16 -falign-loops=16-falign-labels=1 -fprefetch-loop-arrays -maccumulate-outgoing-args"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
LINGUAS="en en_US fr fr_BE"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="acl acpi apache2 bash-completion boundschecking chroot crypt enscript expat fbcondecor fbsplash ftp imagemagick imap innodb ipv6 ithreads jpeg maildir memlimit mmx ncurses nls nocxx nonfsv4 pam pam_chroot pcntl pcre pdflib pdo perl php png postgres readline session soap sql sqlite sqlite3 sse ssl subversion threads tidy tiff truetype unicode vhosts x86 xml xml2 xmlreader xmlrpc xmlwriter xsl zlib" ALSA_CARDS="es1968" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr fr_BE" USERLAND="GNU" VIDEO_CARDS="mach64"
Comment 1 Michael Palimaka (kensington) gentoo-dev 2009-02-21 14:46:38 UTC
I am experiencing the exact same issue.

For anyone too lazy to look up the relevant AddType directive mentioned in the previous comment, "AddType application/x-httpd-php .php" is the workaround I used.
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2009-06-21 23:31:00 UTC
*** Bug 256708 has been marked as a duplicate of this bug. ***
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2009-06-21 23:31:37 UTC
I'm still unsure what to do, I'm planning to do some testing myself and maybe contact upstream, as this was the suggested setup, afaik.
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-07-09 14:23:02 UTC
php-5.3.2 now uses AddType as a default. Does using php-5.3.2 fix your issue?
Comment 5 Cedric Godin 2010-07-20 09:07:51 UTC
Sorry for late answer. The problem is still there. Maybe it's a subversion only problem ?
Comment 6 Ole Markus With (RETIRED) gentoo-dev 2011-03-12 10:03:04 UTC
This bug has been around a bit too long. If anyone can confirm that this is still a problem using the latest stable versions of the relevant packages, I will try to reproduce and see if I can fix this issue.

Sorry for the delay.
Comment 7 Cedric Godin 2011-03-17 16:15:01 UTC
I can confirm that the bug is still alive here. Without the addtype, websvn doesn't work anymore.
Comment 8 Ole Markus With (RETIRED) gentoo-dev 2011-03-17 16:32:00 UTC
(In reply to comment #7)
> I can confirm that the bug is still alive here. Without the addtype, websvn
> doesn't work anymore.

Okay. Sorry for taking so long with the bug. I will try to reproduce as soon as I get php 5.3.6 out the door.
Comment 9 Cedric Godin 2011-03-17 20:32:42 UTC
Don't be sorry, it's the way gentoo is meant to work (with the help of volunteers) and i have a workaround ;-) So thank you for your support.
If you need some more infos or config file, i can provide them, just ask.
Comment 10 Ole Markus With (RETIRED) gentoo-dev 2011-03-18 12:56:25 UTC
(In reply to comment #9)
> Don't be sorry, it's the way gentoo is meant to work (with the help of
> volunteers) and i have a workaround ;-) So thank you for your support.
> If you need some more infos or config file, i can provide them, just ask.

Please do. I am unsure how to set this up correctly. 

Anyways,  I would not hold my hopes up since it seems like a lot of other people struggle with sethandler and multiviews too. It may be that this is just one of those cases that the default configs won't work.
Comment 11 Cedric Godin 2011-03-21 10:43:04 UTC
Created attachment 266703 [details]
config.php file from my websvn

A 'grep -v -e ^// -e ^$ include/config.php' from my websvn
Comment 12 Cedric Godin 2011-03-21 10:47:51 UTC
in my wsvn.php file, I have:

$locwebsvnhttp = '';

Do you need other files ?
Comment 13 Ole Markus With (RETIRED) gentoo-dev 2011-03-21 10:56:45 UTC
Relevant apache config files would be nice.
Comment 14 Cedric Godin 2011-03-21 14:13:22 UTC
Created attachment 266727 [details]
vhost config file for the svn
Comment 15 Cedric Godin 2011-03-21 14:14:30 UTC
Created attachment 266731 [details]
vhost config file for the svn (part 2, include)
Comment 16 Ole Markus With (RETIRED) gentoo-dev 2011-04-23 15:18:26 UTC
It seems like this problem is unsolveable. I guess you really have to modify your config files in order for this to word as expected, accepting the security risks this may cause.

Sorry it took so long.
Comment 17 Cedric Godin 2011-04-27 13:16:48 UTC
It's ok for me. We may close this bug.
Comment 18 Ole Markus With (RETIRED) gentoo-dev 2011-04-27 14:07:21 UTC
Okay. Sorry this could not be resolved. Thanks for all your help.