grayloon

Well-Known Member
Oct 31, 2007
117
4
68
Evansville, IN
cPanel Access Level
Root Administrator
Twitter
We use a 3rd-party host (Platform.sh) for some of our sites. They provide their own CLI utility as a phar file. On my cPanel server, I'm using cron to call a bash script that's executing the platform.sh commands. When the initial command is executed, it kicks off a php process. Unfortunately, there are some child processes that run as php-cgi, and the platform.sh utility hangs. Is there a way to force a command to execute as php-cli vs. php-cgi? I'd like to keep using PHP-FPM on my cPanel server.