日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

openssl 安装好了 php如何打开,开启openssl

發(fā)布時間:2024/9/30 php 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 openssl 安装好了 php如何打开,开启openssl 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

一、php配置項打開,一共3處要改:

~~~

文件位置:

D:\phpStudy\php\php-5.6.27-nts\php.ini

~~~

第一處:2個地方去掉前面的 ;

~~~

; Directory in which the loadable extensions (modules) reside.

; http://php.net/extension-dir

extension_dir = "./"

; On windows:

extension_dir = "ext"

~~~

第二處:1個地方去掉前面的 ;

~~~

;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client

extension=php_openssl.dll

;extension=php_pdo_firebird.dll

~~~

第三處:1個地方去掉前面的 ;并在后面加上CA證書路徑。

注意:因為SSL連接需要認證,所以繼續(xù)下面的步驟之前,需要準備好CA證書(在phpstudy中建議把證書保存到D:\phpStudy\php\verify目錄中,因為其它版本的PHP也要用到),可以從https://curl.haxx.se/docs/caextract.html處下載。

~~~

[openssl]

; The location of a Certificate Authority (CA) file on the local filesystem

; to use when verifying the identity of SSL/TLS peers. Most users should

; not specify a value for this directive as PHP will attempt to use the

; OS-managed cert stores in its absence. If specified, this value may still

; be overridden on a per-stream basis via the "cafile" SSL stream context

; option.

openssl.cafile=D:\phpStudy\php\verify\cacert.pem

~~~

二、php.ini配置完成保存,重啟phpstudy。

![](https://box.kancloud.cn/364fb94442880da4fc7cd856e902715f_678x230.png)

沒有報錯了,說明問題解決。

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的openssl 安装好了 php如何打开,开启openssl的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。