The PHP stats extension provides functions for statistical computations.
Installing the Stats Extension on PHP 5.4, 5.5, or 5.6
To install this extension on PHP 5.X, SSH into your server as root and run the following commands:
sudo apt-get install gcc make autoconf libc-dev pkg-config sudo pecl5.X-sp install stats-1.0.5 sudo bash -c "echo extension=stats.so > /etc/php5.X-sp/conf.d/stats.ini" sudo service php5.X-fpm-sp restart
Installing the Stats Extension on PHP 7.0 or 7.1
To install this extension on PHP 7.X, SSH into your server as root and run the following commands:
sudo apt-get install gcc make autoconf libc-dev pkg-config sudo pecl7.X-sp install stats-2.0.3 sudo bash -c "echo extension=stats.so > /etc/php7.X-sp/conf.d/stats.ini" sudo service php7.X-fpm-sp restart
Verify the Installation
You can verify the stats extension is installed by running this command:
phpX.Y-sp -i | grep stats
You should see the following output:
/etc/phpX.Y-sp/conf.d/stats.ini, stats
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials