PDA

View Full Version : Weird Apache2 behaviour after remastering with 2.6.23Kernel



Amo666
02-07-2008, 01:34 PM
HI Community!

I "patched" a Knoppix 5.1 Live CD with a 2.6.23 Kernel.
There's an Apache2 service running.

If I want to open the website hosted on the LiveCD it delivers me a blank page.
If I try the standard apache Testpage "http://host/apache2-default/", "It works" appears on the webbrowser.
I tried to open an index.html with a Frameset with <title>text</title> -> blank page.
I removed the Frameset from the index.html source -> title was shown ...

It seems, that apache cant deliver a larger amount of data ... weird

Everything is ok with the standard 2.6.19 Kernel.

there's just one error during boot:


Starting init process.
mount failed for selinuxfs on /selinux: No such file or directory

did I forgot something to enable in the Kernelconfig ?
btw.: SElinuxfs is enabled

Amo666
02-07-2008, 04:58 PM
hmmm could there be a Problem with the new Kernel settings:
Dynamic Ticks
High Resolution Timers

Timer Ticks -> from 250 -> 1000 Hz

?

TIA

Amo666
02-07-2008, 11:56 PM
I used Wireshark for debugging:

Following happens to the http Session:

Should be: HTTP ["HTTP/1.1 200 OK (text/html)"]


0000 00 11 2f 10 c4 da 00 02 e3 05 5f a8 08 00 45 00 ../..... .._...E.
0010 02 75 b8 1f 00 00 40 06 a2 4b 0a 0a 05 02 0a 0a .u....@. .K......
0020 05 03 00 50 09 e4 55 a5 7c 73 01 85 6b 16 50 18 ...P..U. |s..k.P.
0030 19 20 44 9b 00 00 48 54 54 50 2f 31 2e 31 20 32 . D...HT TP/1.1 2
0040 30 30 20 4f 4b 0d 0a 44 61 74 65 3a 20 46 72 69 00 OK..D ate: Fri
0050 2c 20 30 38 20 46 65 62 20 32 30 30 38 20 30 33 , 08 Feb 2008 03
0060 3a 33 37 3a 30 38 20 47 4d 54 0d 0a 53 65 72 76 :37:08 G MT..Serv
0070 65 72 3a 20 41 70 61 63 68 65 2f 32 2e 32 2e 33 er: Apac he/2.2.3
0080 20 28 44 65 62 69 61 6e 29 20 50 48 50 2f 34 2e (Debian ) PHP/4.
0090 34 2e 34 2d 38 0d 0a 4c 61 73 74 2d 4d 6f 64 69 4.4-8..L ast-Modi
00a0 66 69 65 64 3a 20 53 75 6e 2c 20 32 37 20 4a 75 fied: Su n, 27 Ju
00b0 6c 20 32 30 30 33 20 31 31 3a 35 33 3a 34 36 20 l 2003 1 1:53:46
00c0 47 4d 54 0d 0a 45 54 61 67 3a 20 22 35 35 66 2d GMT..ETa g: "55f-
00d0 31 31 36 2d 31 37 31 32 36 36 38 30 22 0d 0a 41 116-1712 6680"..A
00e0 63 63 65 70 74 2d 52 61 6e 67 65 73 3a 20 62 79 ccept-Ra nges: by
00f0 74 65 73 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e tes..Con tent-Len
0100 67 74 68 3a 20 32 37 38 0d 0a 4b 65 65 70 2d 41 gth: 278 ..Keep-A
0110 6c 69 76 65 3a 20 74 69 6d 65 6f 75 74 3d 31 35 live: ti meout=15
0120 2c 20 6d 61 78 3d 31 30 30 0d 0a 43 6f 6e 6e 65 , max=10 0..Conne
0130 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76 ction: K eep-Aliv
0140 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a e..Conte nt-Type:
0150 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 text/ht ml; char
0160 73 65 74 3d 55 54 46 2d 38 0d 0a 0d 0a 3c 48 54 set=UTF- 8....<HT
0170 4d 4c 3e 0a 3c 48 45 41 44 3e 0a 3c 54 49 54 4c ML>.<HEA D>.<TITL
0180 45 3e 57 41 4e 45 4d 20 3a 20 54 68 65 20 57 69 E>Test aTEstTEst
.
.
. [Output cut]
.

0270 46 52 41 4d 45 53 45 54 3e 0a 0a 3c 2f 48 54 4d FRAMESET >..</HTM
0280 4c 3e 0a L>.

Whats happening: TCP ["TCP Segment of a reassembled PDU"]


0000 00 11 2f 10 c4 da 00 02 e3 05 5f a8 08 00 45 00 ../..... .._...E.
0010 02 75 b8 1f 00 00 40 06 a2 4b 0a 0a 05 02 0a 0a .u....@. .K......
0020 05 03 00 50 09 e4 55 a5 7c 73 01 85 6b 16 50 18 ...P..U. |s..k.P.
0030 19 20 44 9b 00 00 48 54 54 50 2f 31 2e 31 20 32 . D...HT TP/1.1 2
0040 30 30 20 4f 4b 0d 0a 44 61 74 65 3a 20 46 72 69 00 OK..D ate: Fri
0050 2c 20 30 38 20 46 65 62 20 32 30 30 38 20 30 33 , 08 Feb 2008 03
0060 3a 33 37 3a 30 38 20 47 4d 54 0d 0a 53 65 72 76 :37:08 G MT..Serv
0070 65 72 3a 20 41 70 61 63 68 65 2f 32 2e 32 2e 33 er: Apac he/2.2.3
0080 20 28 44 65 62 69 61 6e 29 20 50 48 50 2f 34 2e (Debian ) PHP/4.
0090 34 2e 34 2d 38 0d 0a 4c 61 73 74 2d 4d 6f 64 69 4.4-8..L ast-Modi
00a0 66 69 65 64 3a 20 53 75 6e 2c 20 32 37 20 4a 75 fied: Su n, 27 Ju
00b0 6c 20 32 30 30 33 20 31 31 3a 35 33 3a 34 36 20 l 2003 1 1:53:46
00c0 47 4d 54 0d 0a 45 54 61 67 3a 20 22 35 35 66 2d GMT..ETa g: "55f-
00d0 31 31 36 2d 31 37 31 32 36 36 38 30 22 0d 0a 41 116-1712 6680"..A
00e0 63 63 65 70 74 2d 52 61 6e 67 65 73 3a 20 62 79 ccept-Ra nges: by
00f0 74 65 73 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e tes..Con tent-Len
0100 67 74 68 3a 20 32 37 38 0d 0a 4b 65 65 70 2d 41 gth: 278 ..Keep-A
0110 6c 69 76 65 3a 20 74 69 6d 65 6f 75 74 3d 31 35 live: ti meout=15
0120 2c 20 6d 61 78 3d 31 30 30 0d 0a 43 6f 6e 6e 65 , max=10 0..Conne
0130 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76 ction: K eep-Aliv
0140 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a e..Conte nt-Type:
0150 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 text/ht ml; char
0160 73 65 74 3d 55 54 46 2d 38 0d 0a 0d 0a 3c 48 54 set=UTF- 8....

Apache seems to snip the TCP Data at 0160. really weird :roll: