Some PHP files need to be encrypted in the project. Here we use the bcompiler Library in php PECL. You can use phpize to compile the dynamic library or directly use the pecl command (PHP-pear needs to be installed ).
The system is:
[Root @ li382-196 ~] # Cat/etc/centos-release
CentOS release 6.4 (Final)
[Root @ li382-196 ~] # Uname-I
X86_64
PHP version:
[Root @ li382-196 ~] # Php-v
PHP 5.3.28 (cli) (built: Dec 18 2013 19:46:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
The first method is to use the pecl command:
1. Search for the php-pear installation package:
[Root @ li382-196 ~] # Yum search php53 | grep pear
Php53u-pear.noarch: PHP Extension and Application Repository framework
2. Install php53u-pear:
[Root @ li382-196 ~] # Yum install php53u-pear
3. After installation, you can test the pecl command:
[Root @ li382-196 ~] # Pecl help
Commands:
Build an Extension From C Source
Bundle Unpacks a Pecl Package
Channel-add Add a Channel
Channel-alias Specify an alias to a channel name
Channel-delete Remove a Channel From the List
Channel-discover Initialize a Channel from its server
Channel-info Retrieve Information on a Channel
Channel-login Connects and authenticates to remote channel server
Channel-logout Logs out from the remote channel server
Channel-update Update an Existing Channel
Clear-cache Clear Web Services Cache
Config-create Create a Default configuration file
Config-get Show One Setting
Config-help Show Information About Setting
Config-set Change Setting
Config-show Show All Sett