<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Admin%2Fenvironment%2Fphp_extension%2Fcurl</id>
	<title>Admin/environment/php extension/curl - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Admin%2Fenvironment%2Fphp_extension%2Fcurl"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Admin/environment/php_extension/curl&amp;action=history"/>
	<updated>2026-05-06T18:46:18Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Admin/environment/php_extension/curl&amp;diff=6671&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Admin/environment/php_extension/curl&amp;diff=6671&amp;oldid=prev"/>
		<updated>2024-10-18T06:47:44Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:47, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Admin/environment/php_extension/curl&amp;diff=6670&amp;oldid=prev</id>
		<title>1&gt;Cameron1729: Update Unix instructions with more detail about TLS 1.2 requirements.</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Admin/environment/php_extension/curl&amp;diff=6670&amp;oldid=prev"/>
		<updated>2016-12-12T05:34:38Z</updated>

		<summary type="html">&lt;p&gt;Update Unix instructions with more detail about TLS 1.2 requirements.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Environment}}&lt;br /&gt;
== Unix  ==&lt;br /&gt;
Moodle recommends using libcurl with at least TLS 1.2 support. It&amp;#039;s important to upgrade mainly for security reasons, but also because external services (e.g., PayPal) will stop supporting older version of TLS in the near future. There are three terms to be familiar with for this process:&lt;br /&gt;
&lt;br /&gt;
* libcurl - The underlying library that actually carries out the requests (https://curl.haxx.se/libcurl/).&lt;br /&gt;
* SSL/TLS libraries - A library that libcurl will be compiled against. This library provides the SSL/TLS functionality in libcurl. Some popular ones are OpenSSL, NSS, and GnuTLS.&lt;br /&gt;
* PHP/cURL - The PHP module that wraps libcurl. This module provides the curl_* functions in PHP.&lt;br /&gt;
&lt;br /&gt;
To install the curl library on Unix&lt;br /&gt;
&lt;br /&gt;
# You will need up to date SSL/TLS libraries.&lt;br /&gt;
# You will need to compile libcurl&lt;br /&gt;
# You will need to recompile PHP/cURL from source &lt;br /&gt;
&lt;br /&gt;
=== Debian and Debian-based distros ===&lt;br /&gt;
These steps should work on Debian 7.0 (although you may need to install sudo) and Ubuntu 12.04 LTS - if you&amp;#039;re using something older you will need to upgrade. Please also note that these steps use the php5-* packages, as that&amp;#039;s what many of the package manager repositories use. Ideally you should be using PHP 7.1, or at least PHP 7. More information about that at [https://docs.moodle.org/dev/Moodle_and_PHP7 Moodle and PHP7]. If you are using PHP7 or 7.1 it may be possible to substitute the php5-* packages with php7-* or php7.1-* depending on how you installed PHP. This example also uses OpenSSL, but the steps for other libraries are similar.&lt;br /&gt;
&lt;br /&gt;
* Update packages: &amp;lt;code&amp;gt;sudo apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
* Install the following packages: &amp;lt;code&amp;gt;apt-get install git build-essential autoconf libtool libtool-bin php5-curl libbison-dev=1:2.5.dfsg-2.1 libxml2-dev libssl-dev openssl&amp;lt;/code&amp;gt;&lt;br /&gt;
* Check that your OpenSSL version is now at least 1.0.1 by running: &amp;lt;code&amp;gt;openssl version&amp;lt;/code&amp;gt;&lt;br /&gt;
* Get the libcurl sources, compile, and install:&lt;br /&gt;
  git clone https://github.com/curl/curl.git&lt;br /&gt;
  cd curl&lt;br /&gt;
  git checkout curl-7_51_0&lt;br /&gt;
  ./buildconf&lt;br /&gt;
  ./configure --with-ssl&lt;br /&gt;
  make&lt;br /&gt;
  sudo make install&lt;br /&gt;
* Compile and install the PHP/cURL module&lt;br /&gt;
  git clone https://github.com/php/php-src.git&lt;br /&gt;
  cd php-src&lt;br /&gt;
  git checkout php-5.6.29&lt;br /&gt;
  cd ext/curl&lt;br /&gt;
  phpize&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
  sudo make install&lt;br /&gt;
  sudo bash -c &amp;quot;echo \&amp;quot;extension=curl.so\&amp;quot; &amp;gt; /etc/php5/apache2/conf.d/20-curl.ini&amp;quot;&lt;br /&gt;
  sudo bash -c &amp;quot;echo \&amp;quot;extension=curl.so\&amp;quot; &amp;gt; /etc/php5/cli/conf.d/20-curl.ini&amp;quot;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; The file /etc/php5/[apache2|cli]/conf.d/20-curl.ini may already be present, or be called something slightly different. Check first and modify the command accordingly.&lt;br /&gt;
* Restart apache: &amp;lt;code&amp;gt;sudo service apache2 restart&amp;lt;/code&amp;gt;&lt;br /&gt;
* Verify the PHP/cURL module is using the updated SSL/TLS libraries: &amp;lt;code&amp;gt;php -i | grep SSL&amp;lt;/code&amp;gt;&lt;br /&gt;
* You should see something similar to:&lt;br /&gt;
  SSL =&amp;gt; Yes&lt;br /&gt;
  SSL Version =&amp;gt; OpenSSL/1.0.1t&lt;br /&gt;
&lt;br /&gt;
The SSL Version may be different than 1.0.1t, that&amp;#039;s fine. Just as long as it&amp;#039;s not older than 1.0.1.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
To install the curl library on Windows&lt;br /&gt;
&lt;br /&gt;
# Open the &amp;#039;&amp;#039;php.ini&amp;#039;&amp;#039; file found in the &amp;#039;&amp;#039;php/php.ini&amp;#039;&amp;#039; folder (older versions of XAMPP use &amp;#039;&amp;#039;moodle/apache/bin&amp;#039;&amp;#039; folder) &lt;br /&gt;
# Find the line: &amp;lt;code&amp;gt;;extension=php_curl.dll&amp;lt;/code&amp;gt;&lt;br /&gt;
# Remove the &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; at the beginning of the line&lt;br /&gt;
# Restart Apache&lt;br /&gt;
&lt;br /&gt;
If you still get an error message after doing these steps, then:&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;#039;&amp;#039;php&amp;#039;&amp;#039; folder.&lt;br /&gt;
* Copy the &amp;lt;code&amp;gt;icudt##.dll&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;icuin##.dll&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;icuuc##.dll&amp;lt;/code&amp;gt; files (where &amp;#039;&amp;#039;##&amp;#039;&amp;#039; is a two digit number, for example: 36 or 49).&lt;br /&gt;
* Go to the Apache &amp;#039;&amp;#039;bin&amp;#039;&amp;#039; directory.&lt;br /&gt;
* Paste the three files:&lt;br /&gt;
   apache/bin/icudt&amp;#039;&amp;#039;49&amp;#039;&amp;#039;.dll&lt;br /&gt;
   apache/bin/icuin&amp;#039;&amp;#039;49&amp;#039;&amp;#039;.dll&lt;br /&gt;
   apache/bin/icuuc&amp;#039;&amp;#039;49&amp;#039;&amp;#039;.dll&lt;br /&gt;
* Restart your Apache web server and retry your Moodle install process.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[Category:Environment|PHP extension]]&lt;br /&gt;
[[Category:MNet|PHP]]&lt;br /&gt;
&lt;br /&gt;
[[es:admin/environment/php extension/curl]]&lt;br /&gt;
[[fr:admin/environment/php extension/curl]]&lt;br /&gt;
[[ja:admin/environment/php extension/curl]]&lt;/div&gt;</summary>
		<author><name>1&gt;Cameron1729</name></author>
	</entry>
</feed>