Support » Fixing WordPress » WP-CLI Not Producing Any Output

  • Resolved jeffpurcell

    (@jeffpurcell)


    I’m trying to install wp-cli on my vps. Running the command php wp-cli.phar --info produces no output. Just to make sure php was working properly I ran a Hello World script with php test.php and everything ran properly.

    Is this a php configuration issue? Where else should I be looking to diagnose the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Jeff,

    This usually happens if suhosin is installed on the server. You can check this with the following command:
    php -m | grep suhosin

    If suhosin is enabled you can whitelist ‘phar’. Open the php.ini file and add/modify the following line
    suhosin.executor.include.whitelist="phar"

    Thank you @rosehosting. That did the trick. For those on a WHM/cPanel VPS setup using MultiPHP, you may have to add it to each PHP version’s php.ini file located here:

    /opt/cpanel/ea-phpXX/root/etc/

    Hopefully this helps someone 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.