From owner-freebsd-questions@FreeBSD.ORG Sat Sep 8 22:31:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3A1716A47A for ; Sat, 8 Sep 2007 22:31:59 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2468513C49D for ; Sat, 8 Sep 2007 22:31:58 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so963199fka for ; Sat, 08 Sep 2007 15:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=vER0WtXOt6z+vwWjTK/AKlj1IjnaSok7rTaPumrCQJ4=; b=XDoh8fqPNkfq86g5iBxIK1fyaLo2qy/dMxGwJd3APiocEiEbIZfiDzvbaoERD66XXPfmYPukfVu99u3xFRmhgYUcswiAv/oP7QozsaC2iFqHbfcFGESv4L0yxiMugIr59irdFFpOn7eQWf9ZwED3pKXlprgXgrmvDH5rUrv9giI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=dJuNXXOuBBoJe9J7LF4nXYLpxdbJrPSmSN2Pe5jVfYHrw8s1SYbd8mKKvUngYlxVoig930+0rqmCf/+s9N8CTKxvXwhC1Eq6BpwTO7mZ+EQDDX0Wmez3bT0qqqFqGUCZkzjtaURvUwEyEWSqfw/1G60Rn/jNc2PlgzhUdjREKc0= Received: by 10.86.70.8 with SMTP id s8mr2507424fga.1189290717672; Sat, 08 Sep 2007 15:31:57 -0700 (PDT) Received: from ?192.168.1.3? ( [85.130.25.147]) by mx.google.com with ESMTPS id p38sm4598386fke.2007.09.08.15.31.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Sep 2007 15:31:56 -0700 (PDT) From: OutBackDingo To: Peter Pluta In-Reply-To: <12533660.post@talk.nabble.com> References: <12513880.post@talk.nabble.com> <12533660.post@talk.nabble.com> Content-Type: text/plain Date: Sun, 09 Sep 2007 01:32:06 +0300 Message-Id: <1189290726.8850.6.camel@dingo-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.11.92 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Nginx + FastCGI + PHP5 on FreeBSD 7.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2007 22:31:59 -0000 Ok wizards.... Nginx Lighttpd Fast-cgi and PHP5 seems all configured, yet when i point a browser at a php page it tries to download the file, instead of render it in the browser, any ideas what i missed ------nginx.conf-------------- #user nobody; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; location / { root /usr/local/www/nginx; index index.html index.php index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } # .php5 sent to php5 location ~ .*\.php5$ { include /usr/local/etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:10005; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name; } } and.... /usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p 9000 -u www