PHP Install OpenSSL expansion module

Source: Internet
Author: User
Tags install openssl

When the new project goes live, the PHP development colleague reflects that the mail function is not working properly.

The original is 465 SMTP encrypted port, not 25 port. That installs the OpenSSL extension for the current PHP.

Fortunately, there are many online, get a come over to take care of.

Http://www.52jscn.com/web/2013/05/4592.shtml

I am simple and straightforward yum install OpenSSL openssl-devel

Finally, KILL-USR2 Php-fpmid

# download to the/VAR/WWW/PHP5 directory

Cd/var/www/php5

wget http://mirrors.sohu.com/php/php-5.2.14.tar.gz

# Unzip

Tar zxvf php-5.2.14.tar.gz

# Enter the OpenSSL Extension Module directory of PHP

CD php-5.2.14/ext/openssl/

/var/www/php5/bin/phpize # Here for your own phpize path, if not found, use Whereis phpize find

# after execution, found the error can not find Config.m4, CONFIG0.M4 is config.m4. Rename directly

MV Config0.m4 CONFIG.M4

/var/www/php5/bin/phpize

./configure--with-openssl--with-php-config=/var/www/php5/bin/php-config

Make

Make install

# When the installation is complete, a directory of. so files (openssl.so) is returned. In this directory, copy the openssl.so file to the extension_dir you specified in php.ini (find in the php.ini file: Extension_dir =), my directory here is var/www/php5/lib/php/ Extensions

# Edit the php.ini file, add at the end of the file

Extension=openssl.so

# Restart Apache

/usr/local/apache2/bin/apachectl restart

OK, now you have successfully added OpenSSL support.

PHP Install OpenSSL expansion module

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.