пересобрал пхп с --enable-fastcgi --prefix=/opt/php
делаю
# /bin/su -m -c "/opt/php/bin/php -q -b 127.0.0.1:8888" root &# ps aux | grep php
root 6867 0.0 0.2 3328 1104 pts/1 S 19:22 0:00 /bin/su -m -c /opt/php/bin/php -q -b 127.0.0.1:8888 root
root 6868 0.1 1.0 14596 4804 pts/1 S 19:22 0:00 /opt/php/bin/php -q -b 127.0.0.1:8888
root 6875 0.0 0.1 2680 708 pts/1 R+ 19:23 0:00 grep --colour=auto php
# uname -a
Linux L0n3rL4P 2.6.18-gentoo-r6 #2 Sun Jun 4 06:19:59 EEST 2028 i686 AMD Turion(tm) 64 Mobile Technology MK-36 AuthenticAMD GNU/Linux
# cat /etc/nginx/nginx.conf
user nginx nginx;
worker_processes 1;
error_log /var/log/nginx/error_log info;
events {
worker_connections 8192;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 4 2k;
request_pool_size 4k;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
output_buffers 1 32k;
postpone_output 1460;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 75 20;
ignore_invalid_headers on;
index index.html;
server {
listen 127.0.0.1;
server_name localhost;
access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log;
location /var/www/ {
root stat;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/stat$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
}
}
# /etc/init.d/nginx start
* Checking nginx' configuration ...
2007/06/08 19:25:22 [emerg] 6921#0: unknown directive "fastcgi_pass" in /etc/nginx/nginx.conf:61
2007/06/08 19:25:22 [emerg] 6921#0: the configuration file /etc/nginx/nginx.conf test failed
* failed, please correct errors above [ !! ]
Подскажите что не так. заранее спасибо