Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: admin/environment/php extension/openssl.

admin/environment/php extension/openssl: Difference between revisions

From MoodleDocs
No edit summary
 
m (Reverted edits by Masbarong (talk) to last revision by Helen Foster)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Environment}}
To install the openssl library on Windows
To install the openssl library on Windows


#Open the ''php.ini'' file found in the ''moodle/apache/bin'' folder
#Open the ''php.ini'' file found in the ''moodle/apache/bin'' (if not there then, in folder server/php/)
#Find the line: <code>;extension=php_openssl.dll</code>
#Find the line: <code>;extension=php_openssl.dll</code>
#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
Line 12: Line 15:




[[Category:Environment|php extension]]
[[Category:Environment|PHP extension]]
[[Category:MNET]]
[[Category:MNet|PHP]]
 
[[fr:admin/environment/php extension/openssl]]

Latest revision as of 14:18, 31 December 2012

To install the openssl library on Windows

  1. Open the php.ini file found in the moodle/apache/bin (if not there then, in folder server/php/)
  2. Find the line: ;extension=php_openssl.dll
  3. Remove the ; at the beginning of the line
  4. 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

  1. You need to recompile PHP from source
  2. add --with-openssl to the command line when you run configure