Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2012, 03:51
bluethundr bluethundr is offline
Junior Member
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default lighttpd with fastcgi on centos

Hello,

I am trying to setup lighttpd with fastcgi on centos 6.3 using this howto:

http://www.howtoforge.com/installing...-on-centos-5.6

I'm not positive of any differences in setting this up under 6.3 vs 5.6 but I am giving it a shot.

I'm using lighttpd 1.4.31 on a centos 6.3 box:
Code:
[root@centos:/etc/lighttpd] #lighttpd -v
lighttpd/1.4.31 (ssl) - a light and fast webserver
Build-Date: Jun  6 2012 13:26:00

[root@centos:/etc/lighttpd] #cat /etc/redhat-release 
CentOS release 6.3 (Final)
And the only changes I made to get fastcgi working are as follows. in php.ini

Code:
cgi.fix_pathinfo = 1
In modules.conf I have:
Code:
## FastCGI (mod_fastcgi)
##
include "conf.d/fastcgi.conf"
In conf.d/fastcgi.conf I have:
Code:
fastcgi.server = ( ".php" =>
                   ( "php-local" =>
                     (
                       "socket" =>  "/tmp/php-fastcgi.socket",
                      "bin-path" => "/usr/bin/php-cgi",
                       "max-procs" => 1,
                       "broken-scriptfilename" => "enable",
                     )
                   ),
                  ( "php-tcp" =>
                     (
                       "host" => "xx.xx.xx.xx",
                      "port" => 9999,
                       "check-local" => "disable",
                       "broken-scriptfilename" => "enable",
                     )
                   ),

                   ( "php-num-procs" =>
                     (
                       "socket" =>  "/tmp/php-fastcgi.socket",
                       "bin-path" => "/usr/bin/php-cgi",
                       "bin-environment" => (
                         "PHP_FCGI_CHILDREN" => "16",
                         "PHP_FCGI_MAX_REQUESTS" => "10000",
                       ),
                       "max-procs" => 5,
                       "broken-scriptfilename" => "enable",
                     )
                   ),
                )
I then restart the lighttpd server and it comes back up again just fine. But the phpinfo page that I created white screens.

But the php info page works on the command line
Code:
[root@centos:/var/www/lighttpd] #php phpinfo.php 
<?
  phpinfo();
?>
Can I please get some tips on how to troubleshoot and solve this problem?

Thanks

Last edited by bluethundr; 27th August 2012 at 03:53.
Reply With Quote
The Following User Says Thank You to bluethundr For This Useful Post:
Jeonocerb (4th September 2012)
Sponsored Links
  #2  
Old 27th August 2012, 20:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Why don't you use this guide? It's for CentOS 6.3:

http://www.howtoforge.com/installing...-on-centos-6.3
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Directories and CGI vestport4 Server Operation 3 15th May 2012 16:11
Problems connecting my HTC Desire outgoing mail client to Postfix and ISP Config 2 j.smith1981 Server Operation 6 12th July 2010 20:07
Help! Lighttpdd not installing on CentOS 5.2 Colum Server Operation 4 5th January 2010 05:07
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22
CentOS with Lighttpd Tipem Server Operation 6 16th June 2008 16:17


All times are GMT +2. The time now is 02:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.