|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7364 Apache doesn't send .html or .php but does send graphics/.txt when php loaded
Submitted: 2000-10-20 07:26 UTC Modified: 2000-12-05 02:06 UTC
From: mybugreports at somesites dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: Mandrake 7.1/Linux 2.2.17/Apache
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
32 - 18 = ?
Subscribe to this entry?

 [2000-10-20 07:26 UTC] mybugreports at somesites dot com
Background info:

Mandrake 7.1, kernel 2.2.17

Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.5a 

MySQL 3.23.26 from RPM (can't get latest stable or beta to compile using --with-mit-threads, help?)

PHP/4.0.3pl1 compiled --with-apxs=(path/apxs) --with-gd --with-zlib --with-xml --with-mysql=/usr (no known errors on build).  Default php.ini.

When the module is loaded, Apache will not send any data back in response to a "GET /foo.html HTTP/1.0\n\n" or for foo.php, but will deliver entire graphics, /server-status, 404 pages, etc where specifically requested, including simple .pl scripts.  This behaviour is the same if Apache is started with or without SSL (mod_perl is statically linked in).

This is to illustrate what I mean (.shtml works with or without the AddType directive in httpd.conf):

$ telnet localhost 80
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0

Connection closed by foreign host.
$ telnet localhost 80
Connected to localhost.
Escape character is '^]'.
GET /index.shtml HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 20 Oct 2000 10:34:14 GMT
Server: Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.5a PHP/4.0.3pl1
Last-Modified: Fri, 20 Oct 2000 10:11:42 GMT
ETag: "92946-6c-39f01a5e"
Accept-Ranges: bytes
Content-Length: 108
Connection: close
Content-Type: text/html


I've no idea what's going on, but if any developer wants to see this first-hand or whatever please email me.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-19 22:50 UTC]
Does the apache work without PHP ?
You propably have misconfigured apache (httpd.conf).

 [2000-12-05 02:06 UTC]
Please try latest snapshot from
Reopen this bug report if problem still exists with snapshot or PHP 4.0.4.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 02 09:05:52 2023 UTC