2

我正在尝试在 XAMPP 中启用 openssl 支持。我按照这些说明进行操作,但出现错误:

1.  Open php.ini and  uncomment the following:  extension=php_openssl.dll

2.  Make sure you have config the following section pointing to your 
php install directory (in my case is located in a second partition at 
e:\php)

3.  Directory in which the loadable extensions (modules) reside.
extension_dir = "e:/php/ext"

4.  Add your php directory to the PATH variable
start>run>type cmd
on windows console type:
set PATH=%PATH%;e:\php
(remember replace e:\php with YOUR directory)
(note that using %path% is the same as var+=value, so the directory 
will be appended at the end of the variable)

5.  php5 comes with all the dll in the zip package so if you add the php 
directory to the path variable, you don't need to move anything to your 
windows system directory (very safe for later updates, because you just 
replace the content of your php directory)

6.  start>run>inetsrv/iis.msc
right click on your computer
all task>restart IIS

当我查找时,phpinfo()它说 openssl 支持已启用。

但是当我尝试运行命令行时出现错误:

openssl.cnf not found. 

这个错误是什么意思,我做错了什么?

4

1 回答 1

4

要在您的 xampp 服务器上启用 openssl、curl 和 intl,请执行以下步骤:

注意:以上步骤都可以,但是如果您是代码编辑的新手,您将一事无成

  1. 打开您的 xampp 服务器的安装位置,例如C:\xampp or C:\program files\xampp取决于您的安装位置

  2. 在安装 xampp 服务器的文件夹中搜索搜索栏

  3. 键入C:\xampp\php\php.inior C:\program files\xampp\php\php.ini,然后使用记事本或写字板打开 php.ini 文件

  4. 然后滚动直到您看到;extension=openssl.dll, ;extension=curl.dll, ;extension=intl.dll,然后删除注释 (;) 并保存您的文件

  5. 通过退出关闭服务器并重新启动它

于 2013-09-18T07:30:14.367 回答