Cannot configure PHP-FastCGI due to non-existing 'php-fastcgi.socket'
I have installed the following packages:
apt-get install nginx php5-cli php5-cgi spawn-fcgi psmisc
Despite installing PHP FastCGI, I do not have the following file on my server to use in my UNIX socket configuration:
fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket;
I have used the find command on the entire system, and this file definitely does not exist.
How can I create/get this file? I have literally searched all across the internet, and nothing works.
4 Replies
/usr/bin/php-fastcgi
and output of
/etc/init.d/php-fastcgi status
=====
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
=====
robert
@robertcope:
You need to configure your FPM pool, in particular the "listen" directive:
=====
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
=====
http://php.net/manual/en/install.fpm.configuration.php robert
They're not using fpm so no they don't.
It's the recommended way to run PHP these days.