How does php enable ssl? How to enable ssl

Source: Internet
Author: User
The method for enabling SSL in PHP is very simple. first find the phpini file, remove the annotation symbol ";" before extensionphp_openssldll, and then restart apache to take effect.

When you access an SSL-enabled resource, the \ "did you forget to enable it when you configured PHP \" error message is displayed. we can see from the prompt that it must be php. the SSL module is not configured in ini. Open php. ini, find extension = php_openssl.dll, and uncomment.

The method for enabling SSL in PHP is very simple. first find the php. ini file, remove the annotation symbol ";" Before extension = php_openssl.dll, and then restart apache to take effect.

Some friends found that ssl does not take effect, so there is a way to copy the ssleay32.dll and libeay32.dll files in the dlls folder to the C: WINDOWSsystem32 folder.

Ssleay32.dll

Libeay32.dll

Php_openssl.dll

How can I determine whether ssl is effective? Check phpinfo. write a simple phpinfo () test program and find the location of openssl. if OpenSSL support is enabled, it indicates that ssl is enabled.

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.