How does PHP's bzip2 compression open? Building a server environment
Reply content;
Found their own local development environment also did not open this extension, so practice a bit, can, steps to share out, as follows
Installing an extension-dependent system bzip2 Development Library
sudo yum install Bzip2-devel
Compile and install the ext/bz2 extension under the PHP source package directory
CD ~/php-5.6.21/ext/bz2phpize./configure--with-php-config=/usr/local/php/bin/php-configsudo make && sudo Make install
If successful, there will be a bz2.so file in a similar extension directory/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Modifying the php.ini configuration file
sudo vim/usr/local/php/lib/php.ini
Append an extension
Extension=bz2.so
After saving, restart PHP-FPM
Then you can turn on the bzip2 extension
The above is the PHP bzip2 compression How to open it? In building the content of the server environment, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!