0

I am trying to install roundcube on localhost and I am getting the error

OpenSSL:  NOT OK

The php.ini has "extension=php_openssl.dll" enabled without the ";"

what could possibly be wrong here?

jww
  • 97,681
  • 90
  • 411
  • 885
X10nD
  • 21,638
  • 45
  • 111
  • 152

1 Answers1

0

Make sure that php_openssl is enabled within the Apache-PHP environment.

There are 2 php.ini files in WAMPServer for each version of PHP you have installed.

To make sure you are editing the one that controls the Apache-PHP environment use the wampmanager menus.

Either:

(left click) wampmanager -> PHP -> php.ini

and edit the php.ini file that is loaded into your editor directly

Or using the menus again, you can turn PHP extensions on and off directly from the menu and this will guarantee you are editing the correct php.ini file

enter image description here

enter image description here

Now all you do is click the extension name. If it is ticked it is already activated. When you click the line for an extension, it will activate the extension or deactivate it i.e. toggle its active state

Oh the php.ini file you find in wamp\bin\php\php{version}\php.ini effects only the PHP CLI i.e. PHP when run from the command line. So if you are using anything like composer which uses a lot of command line tools, you would make sure that the extensions you wanted to use were activated in this version of the php.ini

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
  • I dont have such menus but the openssl is enabled in both the php.ini list manually. – X10nD Nov 25 '16 at 13:59
  • You do have these menus. Look in the System Tray expansion area for the Green W icon. Thats Wampmanager – RiggsFolly Nov 25 '16 at 14:02
  • I right click on the wamp menu and i get tools / wamp settings / language / about / help / refersh and exit. none these pope up as you mentioned. I am using 3.0.6, 32 bit. – X10nD Nov 26 '16 at 08:58
  • Note the instruction in the answer **(left click)** then you will see these menus – RiggsFolly Nov 26 '16 at 14:32