title: How to execute a php file using a php5-fpm pool socket?
body: <p>I need to execute a php script from the command line, but if I call directly "php5 myfile.php", I will have some security issue (mainly the openbasedir restrictions and the user&amp;group rights).</p>
  
  <p>So I'd like to execute that php file from the same constraints as a fpm process (<code>/etc/php5/fpm/pool.d/specific_process.conf</code>). This process has a sock file at <code>/var/run/php5-fpm-specific.sock</code>, which, I believe, would be constrained like in the conf file (same user&amp;group, some php_admin_value, etc).</p>
  
  <p>But I can't see how I can do that from the command line, and by giving some arguments.</p>
  
  <p>I tried something like :</p>
  
  <pre><code>php5 --bindpath /var/run/php5-fpm-specific.sock -f /path/to/my/file.php param1 param2
  </code></pre>
  
  <p>But of course it does not work. How can I do ?</p>
  
  <p>Note: The file I'm calling expects some parameters (here, <code>param1</code> and <code>param2</code>).</p>
  
  <p>Thank you for your help.</p>