how to execute php in php-fpm pool from php script

  • Hi,

    my server has latest i-mscp with php-fpm pool per site configuration.

    I am tryin to get my php "kind-a" asynchronous by using php exec('bash -c "exec php index.php" > /dev/null 2>&1 &')

    I am using successfully php apc cache but the cache of php-pool is obviously not shared with cache of above executed cli command. Is there any possibility to execute a php script with exec() IN the php-fpm pool from which the script is called by exec()?
    An option like exec('bash -c "exec php-fpm --pool=domain.tlp index.php" > /dev/null 2>&1 &')

    Thx for your help.

  • I almost had the same issue these days with user cron jobs i wanted to be executed with a specific pool config. In ispCP i loaded the related ini file, but in the fpm environment it seems to be impossible :(


    Please, forgot about ispCP. i-MSCP is not ispCP ;)