eousphoros / mod-spdy

OpenSSL 1.0.2 and Apache 2.4.12 port for mod-spdy
Other
79 stars 23 forks source link

Issue with phpMyAdmin #24

Closed frankmayer closed 10 years ago

frankmayer commented 10 years ago

I am having an issue when mod_spdy is used with PHP (tested with PHP-FPM & FASTCGI)

This installation is on an Ubuntu 14.04.1 Server with Apache 2.4.10 and PHP 5.5.16. mod_spdy is at commit bfc0fb777f81a638ace992552c6f3a9445d7f8fd.

phpMyAdmin is at: 4.0.10deb1

I noticed the problem while trying to access phpMyAdmin over https, after having enabled mod_spdy.

Chrome reports the following errors in the console:

GET https://mytesthost/phpmyadmin/js/messages.php?lang=en&db=&token=1c39c6387a7fe7ff724de5100ece242d net::ERR_CONNECTION_RESET mytesthost/:1
GET https://mytesthost/phpmyadmin/js/get_image.js.php?theme=pmahomme net::ERR_CONNECTION_RESET mytesthost/:1
GET https://mytesthost/phpmyadmin/js/get_scripts.js.php?scripts[]=jq…ts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/mysql/mysql.js net::ERR_CONNECTION_RESET mytesthost/:1
Uncaught ReferenceError: PMA_commonParams is not defined (index):2
GET https://mytesthost/phpmyadmin/themes/dot.gif net::ERR_CONNECTION_RESET (index):15
GET https://mytesthost/phpmyadmin/themes/pmahomme/img/logo_right.png net::ERR_CONNECTION_RESET (index):7

When spdy is disabled, phpmyadmin runs normally, without any errors on the console.

The Apache2 error log has some of those kind of lines around the time of the request:

[Mon Sep 01 23:12:02.652553 2014] [core:notice] [pid 26544] AH00094: Command line: '/usr/sbin/apache2'
[Mon Sep 01 23:12:48.716361 2014] [core:notice] [pid 26544] AH00051: child pid 26556 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 01 23:13:07.736759 2014] [core:notice] [pid 26544] AH00051: child pid 26575 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 01 23:13:08.737918 2014] [core:notice] [pid 26544] AH00051: child pid 26578 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 01 23:13:46.827000 2014] [core:notice] [pid 26544] AH00051: child pid 26581 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Sep 01 23:13:47.828411 2014] [core:notice] [pid 26544] AH00051: child pid 26630 exit signal Bus error (7), possible coredump in /etc/apache2

On a first look, it seems that there is something happening, when, in the case of the first three errors, php is generating js. Not sure, why the error also happens when loading images (llast two errors), though.

Any ideas?

v998 commented 10 years ago

please make sure you are NOT using MPM event, as this always cause SegFault with mod-spdy

frankmayer commented 10 years ago

Hi @v998. Thanks for the tip, good to know :+1:
However, I am using MPM Prefork, so this probably is not the problem. :smile:

v998 commented 10 years ago

well, when using mod-spdy, you should only use MPM worker...

frankmayer commented 10 years ago

Interesting... Well, i'll try that. Didn't read any of this in any docs though... Maybe I missed a spot :) I'll report back.

eousphoros commented 10 years ago

Just following up. Is this still an issue?

eousphoros commented 10 years ago

Closing out for now. Please re-open if this is still an issue.