request help in php-fpm conf(s)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi PHP community,

I need help,

I am setting up php-fpm on FreeBSD 13 on erlang YAWS webserver.

I have two virtual server running in yaws.conf

#each virtual server can have their own SSL certificate(s),
four
sni = enable


<server 192.168.1.8>
port = 80
listen = 192.168.1.8
servername = www.host1.com
serveralias = *.host1.com

access_log = true
auth_log=true

docroot = /var/yaws/www/www.host1.com
dir_listings = true
allowed_scripts = php yaws cgi fcgi
php_handler = <fcgi, 127.0.0.1:9000>

appmods = <cgi-bin, yaws_appmod_cgi>
</server>

<server 192.168.1.9>
port = 443
listen = 192.168.1.9
servername = www.host1.com
serveralias = *.host1.com

access_log = true
auth_log = true

docroot = /var/yaws/www/www.host1.com
dir_listings = true
allowed_scripts = php yaws cgi fcgi
php_handler = <fcgi, 127.0.0.1:9000>

appmods = <cgi-bin, yaws_appmod_cgi>
<ssl>
                keyfile = /etc/haproxy/certs/03-04-2023/origin.rsahost1.key
                certfile = /etc/haproxy/certs/03-04-2023/origin.rsaahost1.pem
dhfile = /usr/local/etc/haproxy/dhparams.pem
       depth = 2
        </ssl>
</server>

<server 192.168.1.10>
 port = 80
listen = 192.168.1.10
servername = www.host2.com
serveralias = *.host2.com
auth_log = true
access_log = true

docroot = /var/yaws/www/www.host2.com
dir_listings = true
allowed_scripts = php yaws cgi fcgi
php_handler = <fcgi, 127.0.0.1:9001>
  appmods = <cgi-bin, yaws_appmod_cgi>
index_files =  welcome.html welcome.php
</server>

<server 192.168.1.11>
port = 443
listen = 192.168.1.11
servername = www.host2.com
serveralias = *.host2.com
auth_log = true
access_log = true

docroot = /var/yaws/www/www.host2.com
dir_listings = true
allowed_scripts = php yaws cgi fcgi
php_handler = <fcgi, 127.0.0.1:9001>

index_files =  welcome.html welcome.php
<ssl>
           keyfile = /etc/haproxy/certs/03-04-2023/origin.rsahost2.key
           certfile = /etc/haproxy/certs/03-04-2023/origin.rsahost2.pem
dhfile = /usr/local/etc/haproxy/dhparams.pem
                depth = 2
        </ssl>
</server>

# Now an SSL server

<server *:443>
        port = 443
listen = 127.0.0.1
        docroot = /var/yaws/www        
        dir_listings = true
        auth_log = true
        <ssl>
                keyfile = /usr/local/etc/yaws/yaws-key.pem
                certfile = /usr/local/etc/yaws/yaws-cert.pem
dhfile = /usr/local/etc/haproxy/dhparams.pem
                #dhfile = /usr/local/etc/yaws/dhparams.pem
                depth = 0
        </ssl>
</server>

<server *:80>
port = 80
listen =127.0.0.1
docroot = /var/yaws/www
</server>

++++++++++++++++++++++++++++++++++++++++++++++++++++
my /usr/local/etc/php-fpm.d/www.conf is as follows

user = www
group = www
listen = 127.0.0.1:8998
;listen = /var/run/php-fpm.sock

listen.backlog = -1

listen.owner = www
listen.group = www
listen.mode = 0660

listen.allowed_clients = 127.0.0.1, 192.168.1.8, 192.168.1.9, 192.168.1.10, 192.168.1.11

++++++++++++++++++++++++++++++++++++++++++++++++
similarly www.host1.conf and www.host2.conf
; common code
user = www
group = www
listen.backlog = -1
listen.owner = www
listen.group = www
listen.mode = 0660

; host 1
[host1]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1, 192.168.8, 192.168.1.9

; host 2
[host2]
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1, 192.168.1.10, 192.168.1.11

///////////////////////////////////////////////////

THE ERROR I AM GETTING IS

=ERROR REPORT==== 2-May-2023::15:33:09.464577 ===
FastCGI failure: {"connect to application server failed",etimedout}


//////////////////////////////////////////////////

pLS, help and guide me.....


Regards,
Paramjeet Singh




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux