search
Homephp教程php手册linux php 安装openssl备忘

linux php 安装openssl备忘

Jun 14, 2016 am 12:02 AM
linuxopensslphpcodeInstallOpen sourceprogrammingprogramming languagesoftware development

做电子商务的,少不了支付宝支付功能,在支付宝担保接口里面,有一个发货通知接口需要用到SSL。

上网找了N多文档,都说要重新编译PHP,使用--enable-ssl,但是在实际配置时,会提示这是无效的参数

不知道是不是版本问题,我现在使用的是:php 5.3.6

在php源码目录上使用 ./configure --help查看配置所有可用参数,可以发现,找不到 --enable-ssl

取而代之的是:

--with-openssl-dir 

--with-openssl

既然如此,就直接用它了

./configure  --with-openssl-dir=/usr/lib/openssl --with-openssl

其它参数自行加上去就是了

我这里OpenSSL安装的路径是默认的,请根据自己实际路径修改,可以通过:whereis openssl查找openssl的路径

 

OpenSSL的安装可以参考:

http://www.centos.bz/2011/10/centos-install-apache-ssl/ 

 

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function