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