Openssl extension is added without re-compiling php in linux.

Source: Internet
Author: User
Tags install openssl
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.