Installation of PECL extensions for PHP can be done an easy way. Learn here how to do it in a server console as a superuser root.
Here you can find some basics and a description on how to complete it manually:
https://help.poralix.com/articles/installing-a-pecl-extension-for-php-on-directadmin-server
First connect to a Directadmin server as root.
cd /usr/local/directadmin/scripts/custom wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/php/php-extension.sh -O php-extension.sh chmod 750 php-extension.sh ./php-extension.sh
PHP and GeoIP
If you want to install a GeoIP extension for PHP you will need first install GeoIP-devel and GeoIP packages (according to CentOS names), then you can run:
./php-extension.sh install geoip
You can check installation status with the following command:
./php-extension.sh status geoip
Run the command if you want to remove the extension:
./php-extension.sh remove geoip
Memcached
memcached extension you will need to install memcached, memcached-devel, libmemcached-devel, libmemcached packages (according to CentOS names), then run:
./php-extension.sh install memcached
You can check installation status with the following command:
./php-extension.sh status memcached
Run the command if you want to remove the extension:
./php-extension.sh remove memcached
PHP and Redis
For redis extension you will need to install redis
./php-extension.sh install redis
You can check installation status with the following command:
./php-extension.sh status redis
Run the command if you want to remove the extension:
./php-extension.sh remove redis
If you check the status now you should see:
# ./php-extension.sh status redis [Warning] The extension redis for PHP 56 not found! [Warning] The extension redis for PHP 72 not found!
yum install redis service redis start chkconfig redis on redis-cli MONITOR service redis restart
https://help.poralix.com/articles/install-pecl-extension-for-php-directadmin-server