简体   繁体   中英

Error in PHP on https wrapper

I am getting the following error and I am hosting the a local server using WAMP and using version 5.6.19 of PHP

Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

You need to enable php-openssl in your WAMP.

For this, click on the WAMP icon in your systemtray. Click on PHP. Then hover the PHP Extensions . Then click on the php_openssl

I think what you can try is to:

Install php5-openssl Restart Apache afterwards.

It will likely to solve that problem.

And there's also another possible solution: You can find the "php.ini" file, and open it, you will find the line: extension=php_openssl.dll And is there a semicolon at beginning? If yes, simply delete it and it will work.

If that doesn't work or you have further issues, comment me and I will help you! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM