php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21056 PHP messes with virtual hosts
Submitted: 2002-12-16 17:58 UTC Modified: 2003-03-09 18:45 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: eugene at squidart dot co dot za Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.2.3 OS: Mandrake 8.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-12-16 17:58 UTC] eugene at squidart dot co dot za
I've try to upgrade my standard Mandrake installation PHP 4.0.4pl1 to PHP4.2.3 which compiled succesfully. The httpd.conf file still reflected the old PHP4.0.4pl1 library. Now, whenever I change my configuration to point to the new library, all my virtual hosts are messed up and nothing works...

Here is some snippets of information:

-- Apache error with PHP4.2.3 loaded

[Tue Dec 17 02:03:00 2002] [warn] Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
[Tue Dec 17 02:03:00 2002] [error] VirtualHost x.x.x.x:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results


-- httpd.conf (GOOD)

<IfDefine HAVE_PHP4>
LoadModule php4_module    extramodules/libphp4.so
</IfDefine>


-- httpd.conf (BAD)

<IfDefine HAVE_PHP4>
LoadModule php4_module    libexec/libphp4.so
</IfDefine>


-- PHP configure

./configure --disable-static --disable-debug --disable-rpath --enable-pic --enable-inline-optimization --prefix=/usr --with-zlib --with-config-file-path=/etc --enable-magic-quotes --enable-debugger --enable-track-vars --enable-safe-mode --with-exec-dir=/usr/bin --with-regex=system --with-versioning --enable-sysvsem --with-mod_charset --enable-force-cgi-redirect --enable-trans-sid --with-dbase --with-filepro --enable-yp --enable-ftp --with-xml --with-gettext --with-mysql --with-bz2 --enable-calender --enable-xslt --with-xslt-sablot --with-apxs=/etc/httpd/bin/apxs --with-deapi

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-16 18:25 UTC] k3nny at univtech dot ac dot za
Eugene forgot to mention the following information on our little error:

Apache 1.3.19 with DSO support enabled...

on every call to make install PHP changes the httpd.conf file, the changes crash the server. we change them back and they crash. PHP 4.2.3 won't run, only PHP4.0.4pl4 will run
 [2002-12-16 19:07 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-12-19 13:57 UTC] eugene at squidart dot co dot za
We tried the CVS snaphsot, but with no avail... If anybody knows how to beat this, please help.

Thanx :(
 [2003-02-27 10:48 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

If the problem persists try the php module with vanilla Apache 1.3X server (1.3.27 is the latest stable iirc).
 [2003-03-09 18:45 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC