503 error while setting up PHP-FPM with lighttpd

Discussion in 'Installation/Configuration' started by rick001, Dec 26, 2013.

  1. rick001

    rick001 New Member

    Hello, I am trying to install Lighttpd on a Centos 6.4 server with PHP5 support (through PHP-FPM) and MySQL support. I followed the tutorial to the letter as given on http://www.howtoforge.com/installing-lighttpd-with-php5-php-fpm-and-mysql-support-on-centos-6.4
    I get no errors while doing the install but when i try to run the phpinfo() function by opening the page www.jukpac.com/info.php I am getting a 503 Service not available error.

    I assume the error must have been in the fastcgi.conf file configuration but thats just my thought. What changes do I need to make to make this work currently my fastcgi.conf file looks like this

    ##
    ## PHP Example
    ## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
    ##
    ## The number of php processes you will get can be easily calculated:
    ##
    ## num-procs = max-procs * ( 1 + PHP_FCGI_CHILDREN )
    ##
    ## for the php-num-procs example it means you will get 17*5 = 85 php
    ## processes. you always should need this high number for your very
    ## busy sites. And if you have a lot of RAM. :)
    ##
    fastcgi.server += ( ".php" =>
    ((
    "host" => "127.0.0.1",
    "port" => "9000",
    "broken-scriptfilename" => "enable"
    ))
    )
    #fastcgi.server = ( ".php" =>
    # ( "php-local" =>
    # (
    # "socket" => socket_dir + "/php-fastcgi-1.socket",
    # "bin-path" => server_root + "/cgi-bin/php5",
    # "max-procs" => 1,
    # "broken-scriptfilename" => "enable",
    # )
    # ),
    # ( "php-tcp" =>
    # (
    # "host" => "127.0.0.1",
    # "port" => 9999,
    # "check-local" => "disable",
    # "broken-scriptfilename" => "enable",
    # )
    # ),
    #
    # ( "php-num-procs" =>
    # (
    # "socket" => socket_dir + "/php-fastcgi-2.socket",
    # "bin-path" => server_root + "/cgi-bin/php5",
    # "bin-environment" => (
    # "PHP_FCGI_CHILDREN" => "16",
    # "PHP_FCGI_MAX_REQUESTS" => "10000",
    # ),
    # "max-procs" => 5,
    # "broken-scriptfilename" => "enable",
    # )
    # ),
    # )
     

Share This Page