not sure if we replied on this, but i would suggest to use Monkey
v1.5.1, documentation here:

http://monkey-project.com/documentation/1.5/plugins/fastcgi.html

On Sun, Feb 23, 2014 at 3:17 AM, John Berlet <[email protected]> wrote:
> Hello,
>         I recently installed Monkey HTTPD on my Linux (Mint) machine and
> while the installation went smoothly, I am having a lot of issues trying to
> get the fastcgi (php-fpm) working properly with Monkey. All of the
> configuration is setup according to the various writeups and my
> conf/plugins/fastcgi is as follows:
> [FASTCGI_SERVER]
>         ServerName test_server1
>         ServerAddr 192.168.100.138:9000
>         MaxConnections 5
>
> [FASTCGI_LOCATION]
>         ServerNames test_server1
>         Match /*.php
>         KeepAlive Off
>
> Monkey HTTPD starts without any issues (no errors reading the fastcgi or
> other config. files) however, as soon as I try to access my
> <monkey-1.4.0/htdocs/*.php file from a browser, the PHP executes immediately
> with no apparent error however if I try to access the same PHP file again,
> the request "hangs" in my client browser until eventually the browser gives
> up.
>
> Here is what I am seeing after the initial successful request/load of the
> .php file on my Linux machine running Monkey/PHP-fpm:
> Output from lsof -i:
>
> php5-fpm   3611     root    6u  IPv4 141951      0t0  TCP John-vm-linux:9000
> (LISTEN)
> php5-fpm   3834 www-data    0u  IPv4 141951      0t0  TCP John-vm-linux:9000
> (LISTEN)
> php5-fpm   3869 www-data    0u  IPv4 141951      0t0  TCP John-vm-linux:9000
> (LISTEN)
> php5-fpm   4995 www-data    0u  IPv4 141951      0t0  TCP John-vm-linux:9000
> (LISTEN)
> monkey:    5065     john    3r  IPv4 153245      0t0  TCP John-vm-linux:www
> (LISTEN)
> *****************************---*************
> monkey:    5065     john   16u  IPv4 153258      0t0  TCP
> John-vm-linux:46322->John-vm-linux:9000 (CLOSE_WAIT)
> ****************************------*****************
> php5-fpm   5071 www-data    0u  IPv4 141951      0t0  TCP John-vm-linux:9000
> (LISTEN)
>
> the PID 5065 in the above output appears to be stuck on CLOSE_WAIT forever
> and the only way to get the Monkey server back up is to kill that process
> ID. I don't understand why the initial PHP request executes without issue
> (from the perspective of my client browser) but Monkey just hangs up for all
> subsequent PHP requests.
>
> Also, if I just request regular web content (.html), those pages
> subsequently load with no issue - only PHP scripts get hung up after the
> initial PHP execution.
>
> Here is the body of the PHP file (not doing anything fancy):
> <html>
> <?php
> $my_variable = 5
> ?>
> <b> The variable value is:</b><?=$my_variable?>
> </html>
>
>
> Thank you for any help/guidance you can provide. Let me know if you need
> additional configuration info. from my machine.
>
> John
>
> _______________________________________________
> Monkey mailing list
> [email protected]
> http://lists.monkey-project.com/listinfo/monkey
>



-- 
Eduardo Silva
http://edsiper.linuxchile.cl
http://monkey-project.com
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to