joi, 16 octombrie 2014
PHP OpenSSL extension not working - though i have enabled php_openssl.dll in my php.ini
Even though i had OpenSSL installed, and even enabled php_openssl.dll in my PHP installation, i still received this error from a local script.
Please note that all the following steps need to be completed:
1. Installing OpenSSL. I've done this selecting an included option of Windows Git, it came together with Git.
2. However, the path to openssl.cnf and openssl.exe need to be known. One solution is to add the paths among the Windows Environment Variables. In my Windows Vista, from the Desktop, i have to right-click 'Computer', choose 'Properties' from the menu, click on Advanced System Settings, on the Advanced Tab, clicking the 'Environment Variables' button at the bottom of the opened window.
- I added a new entry clicking on 'New' under 'System variables'. Entered at the name: OPENSSL_CONF and at the value: C:\Program Files\Git\ssl\openssl.cnf (choose the path corresponding to your openssl.cnf file)
- Appended the openssl.exe path to my PATH System Variable. Found the variable PATH in the System Variables window, and appended to it: ;C:\Program Files\Git\bin (please note the semicolon and the path to openssl.exe - you must type the path corresponding to your particular installation)
3. Enable the extension openSSL in PHP.
- Open php.ini, find the line:
;extension=php_openssl.dll
- Uncomment the line by removing the semicolon at the beginning.
- If this line does not exist, please check your Start->Settings->Control Panel->Programs & Features->PHP(x.x.x) - click on 'Change', again on 'Change' and see if this extension exists and is selected to be installed - at the third or fourth screen within the Change features of this PHP values. Check it and install it if necessary.
4. And finally, if PHP is installed as an Apache module (my configuration is PHP 5.3.6 as PHP module in Apache 2.2) - restart your web (apache) server.
Abonați-vă la:
Postare comentarii (Atom)
Niciun comentariu:
Trimiteți un comentariu