Welcome! Log In Create A New Profile

Advanced

Re: A new way called DWS to run php script on nginx 0.8.x !

All files from this thread

File Name File Size   Posted by Date  
nginx_aio_opened_filedescriptors.png 41.8 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_status_rate.png 32.5 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_status_clients.png 29.7 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_vmstat_memory.png 46.7 KB open | download Brane F. Gračnar 10/07/2010 Read message
October 09, 2010 05:30AM
How does this compare to php-fpm? What are its main benefits? Security? Performance? I'd like more comparison points with existing solutions.

On Oct 9, 2010, at 1:47 AM, hightman <hightman@zuaa.zju.edu.cn> wrote:

> PHP-DWS is the abbreviation for "PHP Direct Web Server". It works much like fastcgi server with nginx,
>
> But nginx pass the request header of HTTP and socket file description of this connection to it via
> calling sendmsg(), and then PHP-dws read request body data from http connection , send response
> data to the http connection directly.
>
> I simply draw their work in the following flow diagram:
>
> [PHP-CGI]
> ============
>
> i)request header+body ii)request header+body
> +~~~~>~~~~>~~~~>~~~+ +~~~~~>~~~~~>~~~~>~~~~~+
> | | | |
> /|\ \|/ / \ \|/
> WebVisitor Web Server FastCGIServer
> (user) (nginx) (php-cgi)
> /|\ \ / /|\ \ /
> | | | |
> +~~~<~~~~<~~~~<~~~~+ +~~~~~<~~~~~<~~~~<~~~~~+
> iv)response header+body iii)response header+body
>
> [PHP-DWS]
> ============
>
> i)request header ii)request header
> +~~~~>~~~~>~~~~>~~~+ +~~~~~>~~~~~>~~~~>~~~~~+
> | | | |
> /|\ \|/ / \ \|/
> WebVisitor Web Server DWSCGI Server
> (user) (nginx) (php-dws)
> /|\ \ / /|\ \ /
> | | | |
> | +~~~~~~~~>~~~~~~~~~~~~>~~~~~~~~~~~~>~~~~~~~~+ |
> | iii) request body |
> | |
> +~~~~~~~~~~~~~<~~~~~~~~~~~<~~~~~~~~~~~~~<~~~~~~~~~~~~~~+
> iv)response header+body
>
> I think that php-dws will save much more IO operator and become more efficient.
> In addition, we can send partial data to browser during script running, i.e:
> http://root.twomice.net/dws-test/sleep.phpd
>
> Welcome to give me some suggestions or comments!
>
> ===
>
> I have completed the preliminary work, including two part.
>
> The first is ngx_http_dwsgi_module, download source codes from:
> http://www.hightman.cn/down/nginx_0.8_dwsgi_module_beta1.tgz
>
> Extract it to top source directory of nginx, it will be looked like:
> nginx-0.8.x/src/addon/dwsgi/
>
> then recompile the nginx with option: --add-module=src/addon/dwsgi
>
> config sample can be found in src/addon/dwsgi/*.conf
>
>
> The second is a new sapi module for php, develop under 5.3.3, get the source
> code package from:
> http://www.hightman.cn/down/php53_sapi_dws_beta1.tgz
>
> Extract it to top source directory of php5, it will be looked like:
> php-5.3.x/sapi/dws/
>
> then run following commands to rebuild the php:
> ./buildconf --force
> ./config.nice --disable-fpm --disable-cgi --enable-dws
> make && make install
>
> Run $prefix/bin/php-dwsctl to start or stop php-dws,
> or try $prefix/bin/php-dws -h for more options and its description.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

0.8.52 AIO problem

Brane F. Gračnar October 07, 2010 06:16AM

Re: 0.8.52 AIO problem

Maxim Dounin October 07, 2010 07:48AM

Re: 0.8.52 AIO problem

Brane F. Gračnar October 07, 2010 08:24AM

Re: 0.8.52 AIO problem Attachments

Brane F. Gračnar October 07, 2010 10:34AM

Re: 0.8.52 AIO problem

Maxim Dounin October 07, 2010 11:30AM

Re: 0.8.52 AIO problem

"Brane F. Gračnar" October 08, 2010 12:52PM

Re: 0.8.52 AIO problem

Maxim Dounin October 08, 2010 02:24PM

Re: 0.8.52 AIO problem

Maxim Dounin October 08, 2010 10:50PM

A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 04:54AM

Re: A new way called DWS to run php script on nginx 0.8.x !

lhmwzy October 09, 2010 05:08AM

Re: A new way called DWS to run php script on nginx 0.8.x !

mike October 09, 2010 05:30AM

Re: A new way called DWS to run php script on nginx 0.8.x !

Piotr Sikora October 09, 2010 06:24AM

Re: A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 06:46AM

Re: A new way called DWS to run php script on nginx 0.8.x !

Igor Sysoev October 09, 2010 07:32AM

Re: A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 11:58PM

Re: 0.8.52 AIO problem

Maxim Dounin October 11, 2010 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready