Page 1 of 1

Running s9y with gatling

Posted: Thu Mar 03, 2011 8:36 pm
by SvOlli
Hello,

I want to migrate my blog from an Apache webserver to a rather nice webserver called gatling available at http://www.fefe.de/gatling/ . It uses fast-cgi for the PHP integration. As a first test I wanted to set up a vanilla blog to see if it works, and I ran into the following problem: when using with https, the first two pages of the setup work fine, but instead of seeing the "setup completed" page I get a 0-byte reply, without any error message from PHP. On pure http without ssl this works fine.

Any idea what could be missing, or what could be broken?

P.S.: The output of the phpinfo()-command is available at:
https://svolli.dynxs.de/phpinfo.php
and
http://svolli.dynxs.de:81/phpinfo.php

Re: Running s9y with gatling

Posted: Fri Mar 04, 2011 11:42 am
by garvinhicking
Hi!

Upon install, s9y tries to perform a PHP-based fsockopen command to see if the .htaccess it creates breaks the webserver. Some kind of mod_php/CGI detection as well takes place.

When using SSL for the installation, it could be that your PHP is incapable to perform that fsockopen and stalls?

Sadly I don't currently have the time to try the server on my own, but if you'd like to get your hands dirty I could show to the functions that s9y calls on the installation progress. the one that's most likely causing the trouble is found in include/functions_installer.inc.php, serendipity_installFiles().

You might want to place a die('blabla') in there to see at which point it stalls?

Regards,
Garvin

Re: Running s9y with gatling

Posted: Fri Mar 04, 2011 6:23 pm
by SvOlli
Hello Garvin,

thanks for the help. I just sent a PM to you with more details.

SvOlli

Re: Running s9y with gatling

Posted: Sat Mar 05, 2011 9:51 am
by SvOlli
I found the cause of my problems: gatling seems to have a bug in the FastCGI interface.

When using SSL, the payload of the POST request gets dropped after CONTENT_LENGTH.