PHP open MCrypt Extension and SSL (OpenSSL) method of the detailed

Source: Internet
Author: User
Tags apache error log mcrypt openssl php windows apache log root directory

Open PHP.ini,

Remove "; Extension=php_openssl.dll" before the semicolon.

Remove "; Extension=php_mcrypt.dll" before the semicolon

After restarting Apache also saw in the Apache log read Apache error log: Prompt "Cannot load XXX dynamic Library" problem, we later found that need to replicate the directory or set environment variables.

1, to open MCrypt support, the system needs to install the Libmcrypt.dll library.

This general user is not installed, but do not worry, PHP Windows release package has been shipped to us with this file, in the PHP compression package root directory can be found, and then copy it to the%system%/system32 directory.

2, to open OpenSSL support, the system needs to install Libeay32.dll and Ssleay32.dll two libraries.

If you have previously installed OpenSSL, then your system directory should already have these two files, if not installed, PHP Windows release package also shipped with the two files, copy it to the%system%/system32 directory.

environment variable Settings

WinXP, right-click My Computer-Properties-advanced-environment variable-system variable-variable path-double click

Win7, right-click Computer-Properties-Advanced system settings-environment variables-system variables-double-click

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.