Cannot configure PHP-FastCGI due to non-existing 'php-fastcgi.socket'

I am following this tutorial: ~~[https://linode.com/docs/websites/nginx/nginx-and-phpfastcgi-on-ubuntu-12-04-lts-precise-pangolin" target="_blank">](https://linode.com/docs/websites/nginx/ … e-pangolin">https://linode.com/docs/websites/nginx/nginx-and-phpfastcgi-on-ubuntu-12-04-lts-precise-pangolin](

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

What are the contents of /usr/bin/php-fastcgi and output of /etc/init.d/php-fastcgi status

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

@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.

Ok, he's not using php-fpm, but why not?

It's the recommended way to run PHP these days.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct