<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">execute bellow commands to check that it is runnung properly or not:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif">ps axu | grep php</div><div class="gmail_default" style="font-family:tahoma,sans-serif">or</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
netstat -napt | grep LIST | grep :9000</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div style="text-align:center"><span style="font-family:tahoma,sans-serif"><br>
</span></div><div style="text-align:center"><span style="font-family:tahoma,sans-serif">======================</span>======================</div><div><div><div><div><div><div><div><div><font face="tahoma, sans-serif"></font><font face="tahoma, sans-serif"></font></div>
</div></div></div></div></div></div></div></div></div>
<br><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 9:21 PM, dumorim <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/etc/php5/fpm/pool.d www.conf<br>
<br>
; Start a new pool named 'www'.<br>
; the variable $pool can we used in any directive and will be replaced by<br>
the<br>
; pool name ('www' here)<br>
[www]<br>
<br>
; Per pool prefix<br>
; It only applies on the following directives:<br>
; - 'slowlog'<br>
; - 'listen' (unixsocket)<br>
; - 'chroot'<br>
; - 'chdir'<br>
; - 'php_values'<br>
; - 'php_admin_values'<br>
; When not set, the global prefix (or /usr) applies instead.<br>
; Note: This directive can also be relative to the global prefix.<br>
; Default Value: none<br>
;prefix = /path/to/pools/$pool<br>
<br>
; Unix user/group of processes<br>
; Note: The user is mandatory. If the group is not set, the default user's<br>
group<br>
; will be used.<br>
user = www-data<br>
group = www-data<br>
<br>
; The address on which to accept FastCGI requests.<br>
; Valid syntaxes are:<br>
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address<br>
on<br>
; a specific port;<br>
; 'port' - to listen on a TCP socket to all addresses on<br>
a<br>
; specific port;<br>
; '/path/to/unix/socket' - to listen on a unix socket.<br>
; Note: This value is mandatory.<br>
listen = localhost:9000<br>
<br>
; Set listen(2) backlog.<br>
; Default Value: 128 (-1 on FreeBSD and OpenBSD)<br>
;listen.backlog = 128<br>
<br>
; Set permissions for unix socket, if one is used. In Linux, read/write<br>
; permissions must be set in order to allow connections from a web server.<br>
Many<br>
; BSD-derived systems allow connections regardless of permissions.<br>
; Default Values: user and group are set as the running user<br>
; mode is set to 0666<br>
;listen.owner = www-data<br>
;listen.group = www-data<br>
;listen.mode = 0666<br>
<br>
; List of ipv4 addresses of FastCGI clients which are allowed to connect.<br>
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the<br>
original<br>
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each<br>
address<br>
; must be separated by a comma. If this value is left blank, connections<br>
will be<br>
; accepted from any ip address.<br>
; Default Value: any<br>
;listen.allowed_clients = 127.0.0.1<br>
<br>
; Choose how the process manager will control the number of child<br>
processes.<br>
; Possible Values:<br>
; static - a fixed number (pm.max_children) of child processes;<br>
; dynamic - the number of child processes are set dynamically based on<br>
the<br>
; following directives. With this process management, there will<br>
be<br>
; always at least 1 children.<br>
; pm.max_children - the maximum number of children that<br>
can<br>
; be alive at the same time.<br>
; pm.start_servers - the number of children created on<br>
startup.<br>
; pm.min_spare_servers - the minimum number of children in<br>
'idle'<br>
; state (waiting to process). If the<br>
number<br>
; of 'idle' processes is less than this<br>
; number then some children will be<br>
created.<br>
; pm.max_spare_servers - the maximum number of children in<br>
'idle'<br>
; state (waiting to process). If the<br>
number<br>
; of 'idle' processes is greater than<br>
this<br>
; number then some children will be<br>
killed.<br>
; ondemand - no children are created at startup. Children will be forked<br>
when<br>
; new requests will connect. The following parameter are used:<br>
; pm.max_children - the maximum number of children<br>
that<br>
; can be alive at the same time.<br>
; pm.process_idle_timeout - The number of seconds after which<br>
; an idle process will be killed.<br>
; Note: This value is mandatory.<br>
pm = dynamic<br>
<br>
; The number of child processes to be created when pm is set to 'static' and<br>
the<br>
; maximum number of child processes when pm is set to 'dynamic' or<br>
'ondemand'.<br>
; This value sets the limit on the number of simultaneous requests that will<br>
be<br>
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.<br>
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original<br>
PHP<br>
; CGI. The below defaults are based on a server without much resources.<br>
Don't<br>
; forget to tweak pm.* to fit your needs.<br>
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'<br>
; Note: This value is mandatory.<br>
pm.max_children = 900<br>
<br>
; The number of child processes created on startup.<br>
; Note: Used only when pm is set to 'dynamic'<br>
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers)<br>
/ 2<br>
pm.start_servers = 70<br>
<br>
; The desired minimum number of idle server processes.<br>
; Note: Used only when pm is set to 'dynamic'<br>
; Note: Mandatory when pm is set to 'dynamic'<br>
pm.min_spare_servers = 40<br>
<br>
; The desired maximum number of idle server processes.<br>
; Note: Used only when pm is set to 'dynamic'<br>
; Note: Mandatory when pm is set to 'dynamic'<br>
pm.max_spare_servers = 80<br>
<br>
; The number of seconds after which an idle process will be killed.<br>
; Note: Used only when pm is set to 'ondemand'<br>
; Default Value: 10s<br>
;pm.process_idle_timeout = 10s;<br>
<br>
; The number of requests each child process should execute before<br>
respawning.<br>
; This can be useful to work around memory leaks in 3rd party libraries.<br>
For<br>
; endless request processing specify '0'. Equivalent to<br>
PHP_FCGI_MAX_REQUESTS.<br>
; Default Value: 0<br>
pm.max_requests = 10000<br>
<br>
; The URI to view the FPM status page. If this value is not set, no URI will<br>
be<br>
; recognized as a status page. It shows the following informations:<br>
; pool - the name of the pool;<br>
; process manager - static, dynamic or ondemand;<br>
; start time - the date and time FPM has started;<br>
; start since - number of seconds since FPM has started;<br>
; accepted conn - the number of request accepted by the pool;<br>
; listen queue - the number of request in the queue of pending<br>
; connections (see backlog in listen(2));<br>
; max listen queue - the maximum number of requests in the queue<br>
; of pending connections since FPM has started;<br>
; listen queue len - the size of the socket queue of pending<br>
connections;<br>
; idle processes - the number of idle processes;<br>
; active processes - the number of active processes;<br>
; total processes - the number of idle + active processes;<br>
; max active processes - the maximum number of active processes since FPM<br>
; has started;<br>
; max children reached - number of times, the process limit has been<br>
reached,<br>
; when pm tries to start more children (works only<br>
for<br>
; pm 'dynamic' and 'ondemand');<br>
; Value are updated in real time.<br>
; Example output:<br>
; pool: www<br>
; process manager: static<br>
; start time: 01/Jul/2011:17:53:49 +0200<br>
; start since: 62636<br>
; accepted conn: 190460<br>
; listen queue: 0<br>
; max listen queue: 1<br>
; listen queue len: 42<br>
; idle processes: 4<br>
; active processes: 11<br>
; total processes: 15<br>
; max active processes: 12<br>
; max children reached: 0<br>
;<br>
; By default the status page output is formatted as text/plain. Passing<br>
either<br>
; 'html', 'xml' or 'json' in the query string will return the corresponding<br>
; output syntax. Example:<br>
; <a href="http://www.foo.bar/status" target="_blank">http://www.foo.bar/status</a><br>
; <a href="http://www.foo.bar/status?json" target="_blank">http://www.foo.bar/status?json</a><br>
; <a href="http://www.foo.bar/status?html" target="_blank">http://www.foo.bar/status?html</a><br>
; <a href="http://www.foo.bar/status?xml" target="_blank">http://www.foo.bar/status?xml</a><br>
;<br>
; By default the status page only outputs short status. Passing 'full' in<br>
the<br>
; query string will also return status for each pool process.<br>
; Example:<br>
; <a href="http://www.foo.bar/status?full" target="_blank">http://www.foo.bar/status?full</a><br>
; <a href="http://www.foo.bar/status?json&full" target="_blank">http://www.foo.bar/status?json&full</a><br>
; <a href="http://www.foo.bar/status?html&full" target="_blank">http://www.foo.bar/status?html&full</a><br>
; <a href="http://www.foo.bar/status?xml&full" target="_blank">http://www.foo.bar/status?xml&full</a><br>
; The Full status returns for each process:<br>
; pid - the PID of the process;<br>
; state - the state of the process (Idle, Running, ...);<br>
; start time - the date and time the process has started;<br>
; start since - the number of seconds since the process has<br>
started;<br>
; requests - the number of requests the process has served;<br>
; request duration - the duration in Āµs of the requests;<br>
; request method - the request method (GET, POST, ...);<br>
; request URI - the request URI with the query string;<br>
; content length - the content length of the request (only with<br>
POST);<br>
; user - the user (PHP_AUTH_USER) (or '-' if not set);<br>
; script - the main script called (or '-' if not set);<br>
; last request cpu - the %cpu the last request consumed<br>
; it's always 0 if the process is not in Idle<br>
state<br>
; because CPU calculation is done when the request<br>
; processing has terminated;<br>
; last request memory - the max amount of memory the last request<br>
consumed<br>
; it's always 0 if the process is not in Idle<br>
state<br>
; because memory calculation is done when the<br>
request<br>
; processing has terminated;<br>
; If the process is in Idle state, then informations are related to the<br>
; last request the process has served. Otherwise informations are related<br>
to<br>
; the current request being served.<br>
; Example output:<br>
; ************************<br>
; pid: 31330<br>
; state: Running<br>
; start time: 01/Jul/2011:17:53:49 +0200<br>
; start since: 63087<br>
; requests: 12808<br>
; request duration: 1250261<br>
; request method: GET<br>
; request URI: /test_mem.php?N=10000<br>
; content length: 0<br>
; user: -<br>
; script: /home/fat/web/docs/php/test_mem.php<br>
; last request cpu: 0.00<br>
; last request memory: 0<br>
;<br>
; Note: There is a real-time FPM status monitoring sample web page<br>
available<br>
; It's available in: ${prefix}/share/fpm/status.html<br>
;<br>
; Note: The value must start with a leading slash (/). The value can be<br>
; anything, but it may not be a good idea to use the .php extension or<br>
it<br>
; may conflict with a real PHP file.<br>
; Default Value: not set<br>
;pm.status_path = /status<br>
<br>
; The ping URI to call the monitoring page of FPM. If this value is not set,<br>
no<br>
; URI will be recognized as a ping page. This could be used to test from<br>
outside<br>
; that FPM is alive and responding, or to<br>
; - create a graph of FPM availability (rrd or such);<br>
; - remove a server from a group if it is not responding (load balancing);<br>
; - trigger alerts for the operating team (24/7).<br>
; Note: The value must start with a leading slash (/). The value can be<br>
; anything, but it may not be a good idea to use the .php extension or<br>
it<br>
; may conflict with a real PHP file.<br>
; Default Value: not set<br>
;ping.path = /ping<br>
<br>
; This directive may be used to customize the response of a ping request.<br>
The<br>
; response is formatted as text/plain with a 200 response code.<br>
; Default Value: pong<br>
;ping.response = pong<br>
<br>
; The access log file<br>
; Default: not set<br>
;access.log = log/$pool.access.log<br>
<br>
; The access log format.<br>
; The following syntax is allowed<br>
; %%: the '%' character<br>
; %C: %CPU used by the request<br>
; it can accept the following format:<br>
; - %{user}C for user CPU only<br>
; - %{system}C for system CPU only<br>
; - %{total}C for user + system CPU (default)<br>
; %d: time taken to serve the request<br>
; it can accept the following format:<br>
; - %{seconds}d (default)<br>
; - %{miliseconds}d<br>
; - %{mili}d<br>
; - %{microseconds}d<br>
; - %{micro}d<br>
; %e: an environment variable (same as $_ENV or $_SERVER)<br>
; it must be associated with embraces to specify the name of the env<br>
; variable. Some exemples:<br>
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e<br>
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e<br>
; %f: script filename<br>
; %l: content-length of the request (for POST request only)<br>
; %m: request method<br>
; %M: peak of memory allocated by PHP<br>
; it can accept the following format:<br>
; - %{bytes}M (default)<br>
; - %{kilobytes}M<br>
; - %{kilo}M<br>
; - %{megabytes}M<br>
; - %{mega}M<br>
; %n: pool name<br>
; %o: ouput header<br>
; it must be associated with embraces to specify the name of the<br>
header:<br>
; - %{Content-Type}o<br>
; - %{X-Powered-By}o<br>
; - %{Transfert-Encoding}o<br>
; - ....<br>
; %p: PID of the child that serviced the request<br>
; %P: PID of the parent of the child that serviced the request<br>
; %q: the query string<br>
; %Q: the '?' character if query string exists<br>
; %r: the request URI (without the query string, see %q and %Q)<br>
; %R: remote IP address<br>
; %s: status (response code)<br>
; %t: server time the request was received<br>
; it can accept a strftime(3) format:<br>
; %d/%b/%Y:%H:%M:%S %z (default)<br>
; %T: time the log has been written (the request has finished)<br>
; it can accept a strftime(3) format:<br>
; %d/%b/%Y:%H:%M:%S %z (default)<br>
; %u: remote user<br>
;<br>
; Default: "%R - %u %t \"%m %r\" %s"<br>
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"<br>
<br>
; The log file for slow requests<br>
; Default Value: not set<br>
; Note: slowlog is mandatory if request_slowlog_timeout is set<br>
;slowlog = log/$pool.log.slow<br>
<br>
; The timeout for serving a single request after which a PHP backtrace will<br>
be<br>
; dumped to the 'slowlog' file. A value of '0s' means 'off'.<br>
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)<br>
; Default Value: 0<br>
;request_slowlog_timeout = 0<br>
<br>
; The timeout for serving a single request after which the worker process<br>
will<br>
; be killed. This option should be used when the 'max_execution_time' ini<br>
option<br>
; does not stop script execution for some reason. A value of '0' means<br>
'off'.<br>
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)<br>
; Default Value: 0<br>
;request_terminate_timeout = 0<br>
<br>
; Set open file descriptor rlimit.<br>
; Default Value: system defined value<br>
;rlimit_files = 1024<br>
<br>
; Set max core size rlimit.<br>
; Possible Values: 'unlimited' or an integer greater or equal to 0<br>
; Default Value: system defined value<br>
;rlimit_core = 0<br>
<br>
; Chroot to this directory at the start. This value must be defined as an<br>
; absolute path. When this value is not set, chroot is not used.<br>
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one<br>
; of its subdirectories. If the pool prefix is not set, the global prefix<br>
; will be used instead.<br>
; Note: chrooting is a great security feature and should be used whenever<br>
; possible. However, all PHP paths will be relative to the chroot<br>
; (error_log, sessions.save_path, ...).<br>
; Default Value: not set<br>
;chroot =<br>
<br>
; Chdir to this directory at the start.<br>
; Note: relative path can be used.<br>
; Default Value: current directory or / when chroot<br>
chdir = /<br>
<br>
; Redirect worker stdout and stderr into main error log. If not set, stdout<br>
and<br>
; stderr will be redirected to /dev/null according to FastCGI specs.<br>
; Note: on highloaded environement, this can cause some delay in the page<br>
; process time (several ms).<br>
; Default Value: no<br>
;catch_workers_output = yes<br>
<br>
; Limits the extensions of the main script FPM will allow to parse. This<br>
can<br>
; prevent configuration mistakes on the web server side. You should only<br>
limit<br>
; FPM to .php extensions to prevent malicious users to use other extensions<br>
to<br>
; exectute php code.<br>
; Note: set an empty value to allow all extensions.<br>
; Default Value: .php<br>
;security.limit_extensions = .php .php3 .php4 .php5<br>
<br>
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken<br>
from<br>
; the current environment.<br>
; Default Value: clean env<br>
;env[HOSTNAME] = $HOSTNAME<br>
;env[PATH] = /usr/local/bin:/usr/bin:/bin<br>
;env[TMP] = /tmp<br>
;env[TMPDIR] = /tmp<br>
;env[TEMP] = /tmp<br>
<br>
; Additional php.ini defines, specific to this pool of workers. These<br>
settings<br>
; overwrite the values previously defined in the php.ini. The directives are<br>
the<br>
; same as the PHP SAPI:<br>
; php_value/php_flag - you can set classic ini defines which<br>
can<br>
; be overwritten from PHP call 'ini_set'.<br>
<br>
; php_admin_value/php_admin_flag - these directives won't be overwritten<br>
by<br>
; PHP call 'ini_set'<br>
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.<br>
<br>
; Defining 'extension' will load the corresponding shared extension from<br>
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not<br>
; overwrite previously defined php.ini values, but will append the new<br>
value<br>
; instead.<br>
<br>
; Note: path INI options can be relative and will be expanded with the<br>
prefix<br>
; (pool, global or /usr)<br>
<br>
; Default Value: nothing is defined by default except the values in php.ini<br>
and<br>
; specified at startup with the -d argument<br>
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f<br>
<a href="mailto:www@my.domain.com">www@my.domain.com</a><br>
;php_flag[display_errors] = off<br>
;php_admin_value[error_log] = /var/log/fpm-php.www.log<br>
;php_admin_flag[log_errors] = on<br>
;php_admin_value[memory_limit] = 32M<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,240765,240790#msg-240790" target="_blank">http://forum.nginx.org/read.php?2,240765,240790#msg-240790</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></blockquote></div><br></div>