php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7148 PHP 4.0.3 | Apache's VirtualHosts | Segfault if .html is called.
Submitted: 2000-10-12 00:55 UTC Modified: 2000-12-05 02:04 UTC
From: jd at linuxgod dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3RC2 OS: Linux 2.2.16
Private report: No CVE-ID: None
 [2000-10-12 00:55 UTC] jd at linuxgod dot net
When installing from PHP 4.0.0 to 4.0.3 with Apache/1.3.12 (Unix) PHP/4.0.3 mod_perl/1.24 on Linux 2.2.16. Calling VirtualHost will cause Apache to crash/Segfault.  

EX: Your main site is www.somthing.com this main site runs PHP 4.0.3 with mysql 3.22. You have a virtual host site named www.somthing1.com that does not use php, but html. if www.somthing1.com is called Apache will segfault if its running with PHP 4.0.3. And shows "Document contains no data" in netscape.

error_log: [Wed Oct 11 23:37:28 2000] [notice] child pid 28988 exit signal Segmentation fault (11)
[Wed Oct 11 23:37:39 2000] [notice] child pid 28987 exit signal Segmentation fault (11)

This was made when calling http://bellsouth.linuxgod.net/
and http://www.hookupwithus.com in the following httpd.conf file.

<VirtualHost www.linuxgod.net>
ServerAdmin jd@linuxgod.net
ServerName www.linuxgod.net
DocumentRoot /home/WWW/public/htdocs/
ServerPath /
</VirtualHost>

<VirtualHost bellsouth.linuxgod.net>
NameVirtualHost bellsouth.linuxgod.net
ServerAdmin jd@linuxgod.net
ServerName bellsouth.linuxgod.net
DocumentRoot /home/WWW/domains/bellsouth/
ServerPath /
</VirtualHost>

<VirtualHost www.hookupwithus.com>
ServerAdmin jd@hookupwithus.com
ServerName www.hookupwithus.com
DocumentRoot /home/WWW/domains/hookupwithus.com/
ServerPath /
</VirtualHost>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-04 09:12 UTC] sniper@php.net
Could you please try PHP4.0.4RC3 to check if this
problem still exists:

http://www.php.net/distributions/php-4.0.4RC3.tar.gz
 [2000-12-05 02:04 UTC] sniper@php.net
There was a fix after my last comment (related to mod_perl) so please
try latest snapshot from http://snaps.php.net/ instead. Reopen this bug
report if problem still persists with snapshot or PHP 4.0.4.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC