首页 > PHP基础
stream_socket_enable_crypto(): this stream does not support SSL/crypto
发布时间:2015-06-10 08:53:17
访问量:103

    PHP调用邮件类时报错

    stream_socket_enable_crypto(): this stream does not support SSL/crypto

    就是php.ini下openssl扩展默认情况下是没有打开:

    wamp下:

     ;extension=php_openssl.dll

    Lamp下:

     sudo apt-get install openssl libcurl3-openssl-dev #需要先安装openssl

     #进入php源码解压目录

     cd /path/to/php/ext/openssl

     /usr/local/php/bin/phpize

     ./configure --with-php-config=/usr/local/php/bin/php-config --with-openssl

     make

     sudo make install

     安装成功后在php.ini中加上

     extension=openssl.so   

     重启Apache|nginx后生效~!


相关文章 更多文章
var_dump和var_export
CURL的配置使用
WAMP环境搭建之APACHE配置
Maximum execution time of 30 seconds exceeded故障解决
HTML实体的妙用
发表评论 0
网友评论
© 2010-2015 PekingPiao.com
版权所有 DBR
Mem
Top