Symptoms
WP Toolkit gives the following error when clicking the "Setup" link for a WordPress installation.
PHP Fatal error: require(): Failed opening required '/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php' (include_path='.:/opt/cpanel/ea-php##/root/usr/share/pear') in Command line code on line 1 Fatal error: require(): Failed opening required '/usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php' (include_path='.:/opt/cpanel/ea-php##/root/usr/share/pear') in Command line code on line 1
Description
The PHP fatal error can occur in one of two situations. In the first situation, alt-php##-pear is not installed. In the second situation, the WordPress installation is on an account with CageFS enabled.
Workaround
If alt-php74-pear, for example, is not installed, run the following command to install alt-php74-pear.
yum install alt-php74-pear
If the WordPress installation is on an account with CageFS enabled, run the following command to force WP Toolkit to detect CageFS and add the missing mount points to the cagefs.mp configuration file.
wp-toolkit --update-server-info