admin/environment/php extension/openssl: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
#Remove the <code>;</code> at the beginning of the line | #Remove the <code>;</code> at the beginning of the line | ||
#Restart apache if necessary | #Restart apache if necessary | ||
Note: if Moodle fails to create a public key in Admin > Networking > Settings, you'll need to configurate your OPENSSL_CONF path. With Windows File Explorer find openssl.cnf file (usually in your php/extras directory). Rename it as openssl.conf. Then set OPENSSL_CONF in your Windows environment variable (example: C:/wamp/bin/php/extras/openssl/openssl.conf - do not forget the file name in the path, otherwise it doesn't work) | |||
To install the openssl library on Unix | To install the openssl library on Unix |
Revision as of 03:39, 27 May 2008
To install the openssl library on Windows
- Open the php.ini file found in the moodle/apache/bin folder
- Find the line:
;extension=php_openssl.dll
- Remove the
;
at the beginning of the line - Restart apache if necessary
Note: if Moodle fails to create a public key in Admin > Networking > Settings, you'll need to configurate your OPENSSL_CONF path. With Windows File Explorer find openssl.cnf file (usually in your php/extras directory). Rename it as openssl.conf. Then set OPENSSL_CONF in your Windows environment variable (example: C:/wamp/bin/php/extras/openssl/openssl.conf - do not forget the file name in the path, otherwise it doesn't work)
To install the openssl library on Unix
- You need to recompile PHP from source
- add --with-openssl to the command line when you run configure