PHP code # below is the php installation directory usrlocalphp5.3.8bin # Switch to the php installation directory etxopenssl directory cdphp-5.3.8extopenssl # view the openssl directory under a config0.m4, The config0.m4 renamed config. m4. Cpconfig0.m4config. m4 # Run the following commands in sequence: usrlocalphp5.3.8binphp
PHP code # below is the php installation directory/usr/local/php5.3.8/bin/# Switch to the php installation directory of etx/openssl directory cd/php-5.3.8/ext/openssl # view openssl directory under there is a config0.m4, change config0.m4 to config. m4. Cpconfig0.m4config. m4 # Run:/usr/local/php5.3.8/bin/php
PHP code
# The following is the php installation directory.
/Usr/local/php5.3.8/bin/
# Switch to the etx/openssl directory in the php installation directory
Cd/php-5.3.8/ext/openssl
# Check that there is a config0.m4 in the openssl directory and change config0.m4 to config. m4.
Cp config0.m4 config. m4
# Run the following commands in sequence:
/Usr/local/php5.3.8/bin/phpize
./Configure-with-openssl-with-php-config =/usr/local/php5.3.8/bin/php-config
Error configure: error: libssl not found! Yum install openssl-devel Solution
Make & make install
# Then find the location where php. ini is located and open extension_dir (if not, add it yourself), and add extension = "openssl. so"
# Restart the server.
# Openssl viewing method:
/Usr/local/php5.3.8/bin/php-I | grep openssl