Issue
-
PHP Selector on server with DirectAdmin panel does not apply.
-
PHP version for end-users is DirectAdmin's system one.
Environment
- CloudLinux 6/7/8
- DirectAdmin
Solution
-
Check
php1_mode
in the/usr/local/directadmin/custombuild/options.conf
file. -
If it is the
php-fpm
, please note that it is not compatible with CloudLinux PHP Selector. For details, refer to the Compatibility matrix. -
To resolve the issue, you should install the
mod_lsapi
instead of php-fpm in accordance with Installing mod_lsapi on DirectAdmin servers.
# yum install liblsapi liblsapi-devel
# cd /usr/local/directadmin/custombuild
# ./build update
# ./build set php1_mode lsphp
# ./build php n
# ./build rewrite_confs
# cagefsctl --force-update
# cagefsctl --remount-all
# cagefsctl --setup-cl-selector
Useful links
For additional information about "mod_lsapi" you may refer to Apache mod_lsapi PRO General information and requirements.
Comments
0 comments
Please sign in to leave a comment.