title: PM2 Managing PHP Script - Cluster mode
body: <p>Currently i'm successfully managing some PHP deamons (single instance) with PM2, and, so far so good! </p>
  
  <p>With PM2 and while managing Node.js/IO.js apps, i can launch them in cluster mode on PM2 with no stress! The same does not happen with the mentioned php deamons! </p>
  
  <p>So, first of all, is it even possible to manage/launch clustered instances of a PHP script using PM2 (or is that PM2 feature only usable on Node.js/IO.js scripts)?</p>
  
  <p>If so (possible to do), what special "tuneups" are required to cluster the PHP scripts with PM2!?</p>
  
  <p>While trying to launch some <code>pm2 start xxx.php -i 2 --name XXX</code>, i get the following error @ the error log path: </p>
  
  <pre><code>SyntaxError: Unexpected token &lt;
      at Module._compile (module.js:439:25)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function._load (/usr/local/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
      at /usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:200:23
      at /usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:52:16
      at /usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:1209:30
      at WriteStream.&lt;anonymous&gt; (/usr/local/lib/node_modules/pm2/lib/Utility.js:126:13)
      at WriteStream.EventEmitter.emit (events.js:95:17)
  </code></pre>
  
  <p>... that makes me believe that it can't even parse the given PHP file!</p>
  
  <p>Thanks in advance for any help on this!</p>