admin/environment/php extension/curl: Difference between revisions
From MoodleDocs
Pavel Kosina (talk | contribs) (debian) |
Helen Foster (talk | contribs) (corrupt curl.dll version tip thanks to Crom Mackay in MDL-37260) |
||
(18 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{Environment}} | |||
== Windows == | |||
To install the curl library on Windows | To install the curl library on Windows | ||
#Open the ''php.ini'' file found in the ''moodle/apache/bin'' folder | # Open the ''php.ini'' file found in the ''php/php.ini'' folder (older versions of XAMPP use ''moodle/apache/bin'' folder) | ||
#Find the line: <code>;extension=php_curl.dll</code> | # Find the line: <code>;extension=php_curl.dll</code> | ||
#Remove the <code>;</code> at the beginning of the line | # Remove the <code>;</code> at the beginning of the line | ||
#Restart | # Restart Apache if necessary | ||
Tip: If it appears that WAMP comes with/has a corrupt curl.dll version, see the forum.wampserver.com thread [http://forum.wampserver.com/read.php?2,85716,93286 Wamp Server 2.2 Windows 7 64-bit and curl not working side-by-side configuration incorrect] for details of the problem together with a fix. | |||
== Unix == | |||
To install the curl library on Unix | To install the curl library on Unix | ||
Line 12: | Line 16: | ||
# add '''--with-curl''' to the command line when you run '''configure''' | # add '''--with-curl''' to the command line when you run '''configure''' | ||
=== Ubuntu and Debian === | |||
To install the curl library on Ubuntu and Debian | To install the curl library on Ubuntu and Debian | ||
aptitude install php5-curl | |||
* Restart apache if necessary: | |||
sudo /etc/init.d/apache2 restart | |||
or possibly | |||
sudo /etc/init.d/apache restart | |||
[[Category:Environment|PHP extension]] | |||
[[Category:MNet|PHP]] | |||
[[fr:admin/environment/php extension/curl]] | |||
[[ja:admin/environment/php extension/curl]] | [[ja:admin/environment/php extension/curl]] |
Latest revision as of 08:54, 21 December 2012
Windows
To install the curl library on Windows
- Open the php.ini file found in the php/php.ini folder (older versions of XAMPP use moodle/apache/bin folder)
- Find the line:
;extension=php_curl.dll
- Remove the
;
at the beginning of the line - Restart Apache if necessary
Tip: If it appears that WAMP comes with/has a corrupt curl.dll version, see the forum.wampserver.com thread Wamp Server 2.2 Windows 7 64-bit and curl not working side-by-side configuration incorrect for details of the problem together with a fix.
Unix
To install the curl library on Unix
- You need to recompile PHP from source
- add --with-curl to the command line when you run configure
Ubuntu and Debian
To install the curl library on Ubuntu and Debian
aptitude install php5-curl
- Restart apache if necessary:
sudo /etc/init.d/apache2 restart
or possibly
sudo /etc/init.d/apache restart