I created https://github.com/EekoS/php-fpm-cli
For all the people (like me) that need to run a PHP script through a cronjob, but have php-fpm installed on their server so they can’t simply call “php <script>”.
Lemme know what you think 🙂
You install a dependency as part of the setup of the package, so why not just install php-cli and be done with it?
I fear conflicts. The dependencies I use are not related to PHP, but I can’t say that about php-cli.
This is so ass-backwards that I don’t even know what to say…
Since this assumes you have CLI access and CAN install things on the server, just install the CLI for PHP. Problem solved. And that conflict argument is ridiculous. Either the distribution you are using is going to have php-cli and php-fpm packages (like Ubuntu/Debian ecosystem has) OR you will have PHP console version out of the box, to begin with.
I’m not even talking about the simple fact that PHP-FPM has restrictions like execution time and memory limit that are not a thing in CLI mode.
Use the right tool for the job, goddammit.
Wow first time I see the term in the wild! Only seen it in the “Catcher in the Rye”, it was only spelled as backasswards, if I am not mistaken 🙂
Why don’t you just install PHP CLI?
Members
Online