Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenSSL support disabled in Apache/PHP on Windows

openssl is disabled apache2.4 with php7.1

in phpinfo(); results give me this

OpenSSL support disabled (install ext/openssl)

  1. i changed this in php.ini

extension=php_openssl.dll

  1. i use this code using WINDOWS CMD

set OPENSSL_CONF=/path/to/openssl.cnf

  1. its enabled when use in CMD this but its disabled in phpinfo();

php --ri openssl OpenSSL support => enabled OpenSSL Library Version => OpenSSL 1.0.2j 26 Sep 2016 Openssl default config => C:/jampp/php71/extras/ssl/openssl.cnf

its now working in CMD and but phpinfo(); not and in laravel 5 show me this error

Call to undefined function openssl_encrypt()

Thanks

like image 907
Maher Bek Avatar asked Jan 17 '17 22:01

Maher Bek


People also ask

Does PHP use openssl?

OpenSSL module is by default added to PHP.

Where to find php_ openssl dll?

Next check the location of php_openssl. dll, which you should find in c:/PHP/ext. Also in php. ini find the key extension_dir, and change its value to c:/php/ext.


1 Answers

Thank you all its just need includes the (DLLs files of php) into httpd.conf

LoadFile "C:/jampp/php/libeay32.dll"
LoadFile "C:/jampp/php/ssleay32.dll"
LoadFile "C:/jampp/php/php7ts.dll"
LoadFile "C:/jampp/php/libpq.dll"
like image 108
Maher Bek Avatar answered Sep 19 '22 08:09

Maher Bek