Issue
- WordPress Toolkit CLI under the CageFS enabled user is not working with the following error:
# wp --version
PHP Warning: Phar::mapPhar(): open_basedir restriction in effect. File(/usr/local/bin/wp) is not within the allowed path(s): (/home/user:/home2/user:/usr/lib/php:/usr/local/lib/php:/tmp:/opt/alt/php80)
in /usr/local/bin/wp on line 3
Environment
- CloudLinux
- CageFS
- PHP Selector
- WordPress Toolkit
Solution
Disable open_basedir in PHP Selector.
Cause
PHP open_basedir
misconfigured
Comments
0 comments
Please sign in to leave a comment.