On Sat, 2004-08-21 at 12:46, Steffen Heil wrote: > Hi > > > Yes, but it is where you put it. Searching the archives gives this > solution for two httpd instances: > > http://marc.theaimsgroup.com/?l=php-install&m=109165694131420&w=2 > > but it should be possible to separate them out with <Directory> or > (VirtualHost> sections. Unfortunately I do not have time to try it for you. > > This is no solution for me. I need both in ONE apache server. > I think I cannot do "Load-Module" inside a virtual host, can I?
It took me a couple of minutes to both try this out, and to look it up in the manual. You could have done that. Unfortunately, LoadModule is applicable to the main server configuration only. > My biggest problem is to tell ONE php to listen to application/x-httpd-php > and the OTHER to application/x-httpd-php5. Can this be archieved in any way? After getting both modules to load, you would need to modify the mime-type of one of the versions. > > Is something known about the segmentation faults, that occur when both are > enabled? I've just tried having LoadModule lines for both PHP4 and PHP5 (this is on Fedora Core 2, httpd 2.0.49). I don't get any segmentation faults or errors reported when starting up Apache httpd. A .php file seems to be parsed by whichever is the second of the LoadModule lines, or simply not parsed at all. I don't think Apache httpd likes this. You could always use the way that PHP3 and PHP4 were used together by having one as a DSO and the other as a CGI. I have not tried this but it was well documented for PHP3 and PHP4. The bottom of the INSTALL file states that it is possible to use both PHP3 and PHP4 as DSOs if compiled with --enable-versioning but I've not found much else about it. There is little in the php manual and that tends to point towards autoconf, but it does state for PHP3 only. Regards Chris