kreya
kreya

Reputation: 1229

Laravel set up - SSL error

I use PHP(5.6.24) with IIS7. I am trying to set up laravel but getting below errors.

The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true.

SSL extension is enabled in PHP.ini file.

Upvotes: 0

Views: 2796

Answers (2)

ICGreborns
ICGreborns

Reputation: 1

First of all install XAMPP or WAMP. I'm using XAMPP though.

Search the php folder in XAMPP and add it to the environment variables of your system (WINDOWS). You can find it by searching in the windows search bar.

I'll suppose you did the others installations required for laravel.

Then to fix the problem you'll have to uncomment a line in the XAMPP php folder, in the file : php.ini.

Go to php.ini and uncomment the line ;extension=openssl by retrieving the semi-colon ";".

After this it should be working good!

Upvotes: 0

Thamaraiselvam
Thamaraiselvam

Reputation: 7080

Make sure you have php_openssl.dll on ext dir Path could be php\ext\php_openssl.dll

The path may differ if you are using xampp.

if you could not find it then download from here

http://www.opendll.com/index.php?file-download=php_openssl.dll&arch=32bit&version=5.4.3.0

Then move it to ext dir

Then change php_openssl.dll path in php.ini

; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./" #path should match ext dir
; On windows:
extension_dir = "ext"

...
extension=php_openssl.dll

Upvotes: 0

Related Questions