Symfony2 Cron command path
<p>I set up a command in Symfony which is running well manually with : </p>

<pre><code>php -d memory_limit=1G /app/console comptage:absences --no-debug
</code></pre>

<p>I want to run it through Cron.
I tried many things : </p>

<pre><code>php -d memory_limit=1G /home/tharmo/app/console comptage:absences --no-debug

php -d memory_limit=1G /public_html/tharmo/app/console comptage:absences --no-debug

/public_html/tharmo/php -d memory_limit=1G /home/tharmo/app/console comptage:absences --no-debug
</code></pre>

<p>With the two first, I get No input file specified.
With the last one, I get :</p>

<p><code>/usr/local/cpanel/bin/jailshell: /public_html/tharmo/php: No such file or directory</code></p>

<p>Path to console is : <code>public_html/tharmo/app/console</code></p>

<p>Server : VPS PlanetHoster running cPanel</p>