You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark A Framness <fr...@athenet.net> on 2006/03/07 17:11:47 UTC

[users@httpd] Apache 2.2.0 Sends No More Than 255 Bytes.

Greetings,

I have an Apache 2.2.0 MySQL and PHP 5.1.2 installation setup. In addition I 
have an Apache 2.0.52 installation as well.

The symptom:
Apache 2.2.0 is unable to send more than 255 bytes of HTML data to the 
requesting client. As long as the file is small Apache 2.2.0 sends it on, but 
any useful file is not properly served.

Apache 2.0.52 no problems behaves as expected.

Expected:
Apache 2.2.0 sends the entire file so the client can display the file.

Log Files:
All attempts to access a given file yield an access log entry with an HTTP 200 
result along with the expected file size.

The server and client are on the same physical PC.

A telnet session with Apache 2.2.0 went like:
====================================================
telnet www.hometitle_t.com 80
Trying 192.168.1.4...
Connected to www.hometitle_t.com.
Escape character is '^]'.

GET http://www.hometitle_t.com/index.html HTTP/1.1
HOST: www.hometitle_t.com

HTTP/1.1 200 OK
Date: Tue, 07 Mar 2006 02:58:12 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a PHP/5.1.2
Last-Modified: Sun, 22 May 2005 19:18:07 GMT
ETag: "3c8159-794-d0a959c0"
Accept-Ranges: bytes
Content-Length: 1940
Content-Type: text/html

Connection closed by foreign host.
================================================

Apache is bound to my eth0 card which an ifconfig shows:
================================================
eth0      Link encap:Ethernet  HWaddr 00:07:95:36:F1:A4
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3055175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3070402 errors:0 dropped:10 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2413018378 (2301.2 Mb)  TX bytes:469176624 (447.4 Mb)
          Interrupt:5 Base address:0xd000
================================================
This card also deal with my DSL connection (however, Apache 2.0.52 binds to 
the same card).

Someone suggested the MTU on the card may be the source of this problem but I 
suspect I am missing an important directive in my httpd.conf file. The conf 
file has some modifications but is pretty close to stock:
=================================
ServerRoot "/usr/local/apache220"
Listen 192.168.1.4:80
LoadModule php5_module        modules/libphp5.so
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
[the below section was lifted from the my 2.0.52 HTTPD.CONF file]
----------------------------------
User nobody 
Group #-1
KeepAlive On
MaxKeepAliveRequests 100
Timeout 300
KeepAliveTimeout 15
----------------------------------
</IfModule>
</IfModule>
ServerAdmin mark@localhost 
UseCanonicalName Off
DocumentRoot "/usr/local/apache220/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
<Directory "/usr/local/apache220/htdocs">
 MultiViews
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>
ErrorLog logs/error_log
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" 
%I %O" combinedio
    </IfModule>
    CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/local/apache220/cgi-bin/"
</IfModule>
<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>
<Directory "/usr/local/apache220/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
<Directory /home/hometitle>
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<Files *.php>
 SetOutputFilter PHP
 SetInputFilter PHP
</Files> 
NameVirtualHost 192.168.1.4:80 
<VirtualHost 192.168.1.4:80>
   DocumentRoot /usr/local/apache220/htdocs
   ServerAdmin mark@localhost
   ErrorLog   /usr/local/apache220/logs/error_log
   CustomLog /usr/local/apache220/logs/access_log  common 
</VirtualHost>
<VirtualHost 192.168.1.4:80>
	ServerName www.hometitle_t.com
        DocumentRoot /home/hometitle
        DirectoryIndex index.html
</VirtualHost>
=============================================

Thanks
-- 
From: Mark A Framness <fr...@athenet.net>
http: http://www.framnett.net/
http://www.newbayanihan.org/ 
http://www.ustomas.com/                 The UST-Singers in Wisconsin
http://www.wi-ski.com/                  The Wisconsin Skier
http://www.flickr.com/photos/framness/  Our Photographs

With all of thy getting, get understanding!
Proverbs 4:7


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2.0 Sends No More Than 255 Bytes.

Posted by Mark A Framness <fr...@athenet.net>.
On Tuesday 07 March 2006 04:40 pm, Nick Withers wrote:
> On Tue, 7 Mar 2006 10:11:47 -0600

>
> From an earlier thread:
> > Dick Middleton wrote:
> > > I've been having real trouble getting apache2.2 to work on Devil-Linux
> > > 1.2.9.  Apache has upgraded from 2.0.53 to 2.2.0  and the linux kernel
> > > to 2.4.32. The older version of Apache worked fine.
> > >
> > > However if I increase the size of index.html (by adding characters
> > > anywhere) it fails to send the file if the file has a size of 256 bytes
> > > or more.  It is definitely size rather than content related.
> >
> > It seems turning off EnableSendFile resolves the problem.
> >
> > Dick
>
> Hope this helps!

Yes it did! Thanks tons, especially with the previous thread situation, for 
helping out.

-- 
From: Mark A Framness <fr...@athenet.net>
http: http://www.framnett.net/
http://www.newbayanihan.org/ 
http://www.ustomas.com/                 The UST-Singers in Wisconsin
http://www.wi-ski.com/                  The Wisconsin Skier
http://www.flickr.com/photos/framness/  Our Photographs

With all of thy getting, get understanding!
Proverbs 4:7


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2.0 Sends No More Than 255 Bytes.

Posted by Nick Withers <ni...@nickwithers.com>.
On Tue, 7 Mar 2006 10:11:47 -0600
Mark A Framness <fr...@athenet.net> wrote:

> Greetings,
> 
> I have an Apache 2.2.0 MySQL and PHP 5.1.2 installation setup. In addition I 
> have an Apache 2.0.52 installation as well.
> 
> The symptom:
> Apache 2.2.0 is unable to send more than 255 bytes of HTML data to the 
> requesting client. As long as the file is small Apache 2.2.0 sends it on, but 
> any useful file is not properly served.

(snip)

>From an earlier thread:

> Dick Middleton wrote:
> > I've been having real trouble getting apache2.2 to work on Devil-Linux 
> > 1.2.9.  Apache has upgraded from 2.0.53 to 2.2.0  and the linux kernel 
> > to 2.4.32. The older version of Apache worked fine.
> 
> > However if I increase the size of index.html (by adding characters 
> > anywhere) it fails to send the file if the file has a size of 256 bytes 
> > or more.  It is definitely size rather than content related.
> 
> It seems turning off EnableSendFile resolves the problem.
> 
> Dick

Hope this helps!
-- 
Nick Withers
email: nick@nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org