View Single Post
  #1   (View Single Post)  
Old 5th June 2008
pormogo pormogo is offline
Port Guard
 
Join Date: Jun 2008
Posts: 10
Default Problems getting lighttpd working with php and fcgi

Below is a post I posted recently on the old apparently dying freebsd forums. I thank everyone over there for letting me know that place was dead and that this was the new preferred hangout. I really like the look of this place

I've been using the guide over at nixcraft to install php and lighttpd

http://www.cyberciti.biz/faq/howto-...cgi-php-server/

Everything compiles and installs as expected but I get an error after I uncomment the fcgi section in lighttpd.conf

#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php-cgi"
)
)
)


I think the bold line is the issue as there is no socket in the location that it is referring to. Unfortunately I have no idea how to create the socket. Below is the output from the php-cgi -v command if that is any help at all.

root@weltall:/usr/ports# php-cgi -v
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: May 24 2008 17:25:53)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies



Thanks in advance for any help.
Reply With Quote