S
S
sunblossom2018-04-02 22:36:49
PHP
sunblossom, 2018-04-02 22:36:49

How to enable SSL in php 7?

echo php_ini_loaded_file();produces the correct configuration file.
In it, the line with openssl is uncommented. The extension itself also lies in ext.
But

echo 'openssl: ',  extension_loaded  ('openssl') ? 'yes':'no', "<br>";
Outputs openssl: no
PHP 7.1.
In which direction to dig? Or maybe someone can throw off the working ini?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2018-04-03
@kotomyava

And what does phpinfo() say about openssl?
If not, is there an extension file physically in the folder with the rest of the extensions?
php -m from the command line does not swear at anything?
ini file of your worker, if the name of the module file is indicated there. That's already enough. This module does not require any additional configuration to work.

A
Alexander Chernykh, 2018-04-03
@sashkets

php must be built with openssl support
php -m shows connected modules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question