title: php-fpm.sock is missing: php7.2 on CentOS 7
body: <p><strong><em>Summary:I'm trying to use Nginx on PHP7.2 and CentOS 7, but can't find php-fpm.sock</em></strong></p>
  
  <p>I used to use <strong><em>PHP7.0 on Ubuntu 16</em></strong>. Recently, I switched to <strong><em>CentOS 7</em></strong>. and now I'm trying to set it up with Nginx and the latest PHP (i.e. <strong><em>PHP7.2</em></strong>)</p>
  
  <p>On PHP7.0 on Ubuntu 16, the php-fpm's socket file was stored in...</p>
  
  <p><code>/run/php/php7.0-fpm.sock</code></p>
  
  <p>However, on PHP7.2. and CentOS7, I don't see <code>/run/php/</code> directory. So, it's clear that Nginx on PHP7.2 and CentOS can't be configured in the say way</p>
  
  <p>I searched Stackoverflow, but most of the posts were dealing with older versions of php (like <a href="https://stackoverflow.com/questions/17570658/how-to-find-my-php-fpm-sock">this one</a>)</p>
  
  <p>If I run <code>yum install php-fpm</code>, it results in <code>"already installed"</code>, so I'm sure php-fpm itself is already there</p>
  
  <p><a href="https://i.stack.imgur.com/3ead3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ead3.png" alt="enter image description here"></a></p>
  
  <p>If I run "ps aux | grep php-fpm"...</p>
  
  <p><a href="https://i.stack.imgur.com/oy6OO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oy6OO.png" alt="enter image description here"></a></p>
  
  <p>I can see that there is a directly, named <code>/etc/php-fpm.d</code>, but it has only a file called <code>www.conf</code>, not a socket file.</p>
  
  <p><a href="https://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/" rel="nofollow noreferrer">This tutorail</a> shows that the sock is stored as <code>/run/php-fpm/www.sock</code> on PHP7.2 and CentOS 7, but in my machine, there is only <code>php-fpm.pid</code>.</p>
  
  <p>So, where did the sock file go? Any advice will be appreciated.</p>
  
  <p>PS:I'm also interested in why Ubuntu+PHP7 and CentOS+PHP7.2 have such a difference regarding where to store PHP files</p>