From owner-freebsd-questions@FreeBSD.ORG Sat Sep 8 22:38:42 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 B886A16A41A for ; Sat, 8 Sep 2007 22:38:42 +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 3CB0413C45E for ; Sat, 8 Sep 2007 22:38:42 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so964623fka for ; Sat, 08 Sep 2007 15:38:41 -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:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=8EF7uUhmpZlAYOShF7vB0iaXAdIPMeDIxtpNVsUs3IA=; b=BZ+aL8ClbRrxtAsj5H8rzmPJmDXymWZNzhlyPuq/F6jRUP8c/cc7aomtmStMj5RqJ2nXciEWKmyB4waBaM8V9M8m16sROQAdm1hs4U9+WeB5R+Fde+arvbtBGMC2/kax7I9ByKAPlQDR3SAPc22eAONrS0WfIzNNfsjQ7s/4B/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=WHa7UTRzQNVPxtoKOlHy7McdWtPji03vokb5DrWlLm1nw5ADFTU/v/TPQyeWUpXupqKFUY38g57NvJMH4tBMkmMm+ZD6yr2mIt/C0sHsH0KFp+KoyR4iLZW9rIET8QsaTckoBUxDuar9ihkzQZgO10/j/+Fdq6Vtbbu9WncE0IA= Received: by 10.86.79.19 with SMTP id c19mr2499473fgb.1189291120927; Sat, 08 Sep 2007 15:38:40 -0700 (PDT) Received: from ?192.168.1.3? ( [85.130.25.147]) by mx.google.com with ESMTPS id b17sm4595239fka.2007.09.08.15.38.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Sep 2007 15:38:40 -0700 (PDT) From: OutBackDingo To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Sun, 09 Sep 2007 01:38:50 +0300 Message-Id: <1189291130.8850.8.camel@dingo-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.11.92 Content-Transfer-Encoding: 7bit Subject: Nginx PHP5 Fast-CGI FreeBSD CURRENT 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:38:42 -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