I think I followed the necessary steps but I can't get this working.

php-fpm.conf includes "include=/etc/php5/fpm/pool.d/*.conf" which contains:

  1. www.conf
  2. domain.tld.conf

The only difference between the default www.conf and the domain.tld.conf that I am trying to get to work:

[www] to [domain.tld]
listen = 127.0.0.1:9000 to :9001
pm.max_children = 2
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1

The lighttpd vhost:

fastcgi.server = ( ".php" =>
                    ( "localhost" =>
                        (
                            "host" => "127.0.0.1",
                            "port" => "9001"
                        )
                    )
                 )

Result:

503 - Service Not Available
or
500 - Internal Server Error

Setting the port back to 9000 in the vhost and it works again. What am I doing wrong in the config? User/group in both configs has not been touched (www-data)

link|improve this question

67% accept rate
I am not that familiar with lighttpd, but nothing seems obviously wrong with the php-fpm conf. I would suggest checking your lighttpd error logs - they should have some information about what caused the 50x errors. Also, check the php-fpm log (possibly at /var/log/php-fpm.log) which might have some clues. Verify (e.g. with netstat) that php-fpm is actually listening on port 9001. Edit your question with any additional details you find. (Restart both lighttpd and php-fpm between tests to update the loaded configs.) – cyberx86 Oct 29 '11 at 2:45
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.