How to set default PHP development command version?
Hi.
I've got a WHM/cPanel server with PHP 5.x, 7.0 and 7.2 installed.
I'm trying to install the PHP libsodium package with 'pecl' using:
The problem is the version of phpize in /usr/local/bin/ is: [QUOTE] Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212
This causes build errors because it looks like it's from PHP 5.x. Even when I try using the PHP 7.0 installed pecl command:
It resorts to using the phpize from /usr/local/bin/ instead of /opt/cpanel/ea-php70/root/usr/bin/ So my question is, is it possible to set the default PHP version on the server (which includes development commands like phpize) to use a different version? The "System PHP Version" in "MultiPHP Manager" is set to "PHP 7.0 (ea-php70)" so I'm not sure what else to try. Thanks! ----- EDIT: I was able to build and install the extension by temporarily setting a symlink to the 7.0 versions of phpize and php-config, however the question still stands on how to do this on a more permanent basis via WHM/cPanel/EasyApache.
pecl install -f libsodiumThe problem is the version of phpize in /usr/local/bin/ is: [QUOTE] Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212
This causes build errors because it looks like it's from PHP 5.x. Even when I try using the PHP 7.0 installed pecl command:
/opt/cpanel/ea-php70/root/usr/bin/pecl install -f libsodiumIt resorts to using the phpize from /usr/local/bin/ instead of /opt/cpanel/ea-php70/root/usr/bin/ So my question is, is it possible to set the default PHP version on the server (which includes development commands like phpize) to use a different version? The "System PHP Version" in "MultiPHP Manager" is set to "PHP 7.0 (ea-php70)" so I'm not sure what else to try. Thanks! ----- EDIT: I was able to build and install the extension by temporarily setting a symlink to the 7.0 versions of phpize and php-config, however the question still stands on how to do this on a more permanent basis via WHM/cPanel/EasyApache.
Please sign in to leave a comment.
Comments
0 comments