php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mybugreports at somesites dot com
New email:
PHP Version: OS:

 

 [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
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0

Connection closed by foreign host.
$ telnet localhost 80
Trying 127.0.0.1...
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

<HTML><HEAD><TITLE>GO AWAY!</TITLE></HEAD>
<BODY>
<H1>MOVE ALONG, NOTHING TO SEE HERE!</H1>
</BODY>
</HTML>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani
 [2000-12-05 02:06 UTC] sniper@php.net
Please try latest snapshot from http://snaps.php.net/
Reopen this bug report if problem still exists with snapshot or PHP 4.0.4.

--Jani
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jan 19 22:01:23 2021 UTC