Articles

How to Install the PHP Ice Framework Extension

In the examples shown, replace "X.Y" with your app's PHP version (for example, "5.4" or "7.0").

Ice is a PHP web framework implemented as a C extension.

The Ice framework supports PHP 5.4, 5.5, 5.6, 7.0, 7.1, and 7.2.

Install the Ice Framework Extension

To use the Ice framework, you must first install the Ice PHP extension for your version of PHP.

To install this extension, SSH into your server as root and run the following commands:

sudo apt-get -y install git gcc make autoconf libc-dev pkg-config
git clone --depth=1 https://github.com/ice/framework.git
cd framework/
PATH=/opt/sp/phpX.Y/bin:$PATH ./install
sudo bash -c "echo extension=ice.so > /etc/phpX.Y-sp/conf.d/ice.ini"
sudo service phpX.Y-fpm-sp restart

Verify Ice Installation

You can verify the Ice extension is installed with the command:

phpX.Y-sp -i | grep ice

If Ice is installed correctly, you will see the following:

/etc/phpX.Y-sp/conf.d/ice.ini,
ice
ice => enabled
Website => http://www.iceframework.org
Email => info@iceframework.org
FreeNode => #iceframework
Twitter, Packagist => iceframework
GitHub => ice

Last updated: August 31, 2017