I'm trying to run the following command locally:
/usr/local/bin/wp plugin deactivate "EG Fulltext Search" --allow-root
And I get the error undefined function apache_request_headers()
Here is the wp info:
PHP binary: /usr/bin/php
PHP version: 5.5.37
php.ini used: /etc/php.ini
WP-CLI root dir: phar://wp-cli.phar
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.24.0-alpha-95a84de
This is running apache on Centos 7. Php is running as Apache 2.0 Handler.
I used the nightly version but I also get this error the latest stable release.
I'm really stuck on this at the moment and can't use the wp commands so any help would be really appreciated.