<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=426447&amp;view=findpost&amp;p=3863154</guid>
        <pubDate>Tue, 12 Apr 2022 00:22:33 +0000</pubDate>
        <title>Установка PHP 5 на Ubuntu 20.04</title>
        <link>https://forum.sources.ru/index.php?showtopic=426447&amp;view=findpost&amp;p=3863154</link>
        <description><![CDATA[salieri: Решил вопрос: изменил в php.ini строку: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">default_charset = &quot;WINDOWS-1251&quot;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>salieri</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=426447&amp;view=findpost&amp;p=3862215</guid>
        <pubDate>Wed, 30 Mar 2022 13:41:18 +0000</pubDate>
        <title>Установка PHP 5 на Ubuntu 20.04</title>
        <link>https://forum.sources.ru/index.php?showtopic=426447&amp;view=findpost&amp;p=3862215</link>
        <description><![CDATA[salieri: Здравствуйте&#33;<br>
<br>
Пытаюсь установить PHP 5 на Ubuntu 20.04.<br>
Как известно, популярный репозиторий - это ondrej.<br>
При установке возникает проблема с локалями, если подтвердить, то русские буквы при отображении сайта превращаются в знаки вопроса.<br>
Как с этим быть - не знаю.<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included.</div><div class="code_line">Only Supported Versions of PHP (http://php.net/supported-versions.php ) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.</div><div class="code_line">Don&#39;t ask for end-of-life PHP versions or Ubuntu release, they won&#39;t be provided.</div><div class="code_line">Debian oldstable and stable packages are provided as well: https://deb.sury.org/ #debian-dpa</div><div class="code_line">You can get more information about the packages at https://deb.sury.org</div><div class="code_line">&nbsp;</div><div class="code_line">IMPORTANT: The &#60;foo&#62;-backports is now required on older Ubuntu releases.</div><div class="code_line">BUGS&amp;FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting</div><div class="code_line">&nbsp;</div><div class="code_line">CAVEATS:</div><div class="code_line">1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman</div><div class="code_line">2. If you are using apache2, you are advised to add ppa:ondrej/apache2</div><div class="code_line">3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline or ppa:ondrej/nginx</div><div class="code_line">&nbsp;</div><div class="code_line">PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/</div><div class="code_line">&nbsp;</div><div class="code_line">WARNING: add-apt-repository is broken with non-UTF-8 locales, see</div><div class="code_line">https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:</div><div class="code_line">&nbsp;</div><div class="code_line"># LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php</div><div class="code_line">More info: https://launchpad.net/~ondrej/+archive/ubuntu/php</div><div class="code_line">Press [ENTER] to continue or Ctrl-c to cancel adding it.</div></ol></div></div></div></div><br>
<br>
Решил зайти на сам репозиторий от ondrej и попытаться оттуда выцепить сборку, но не могу собрать её, пакеты не устанавливаются.<br>
<br>
Репозиторий от ondrej: <a class='tag-url' href='https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/p/php5.6/' target='_blank'>https://ppa.launchpadcontent.net/ondrej/php.../main/p/php5.6/</a><br>
<br>
Какие есть способы решения, подскажите, пожалуйста.<br>
Версия PHP может быть от 5.3 до 5.6.<br>
<br>
Нашёл одну инструкцию: <a class='tag-url' href='https://www.looklinux.com/how-to-compile-php-5-6-with-apache-worker-support/' target='_blank'>https://www.looklinux.com/how-to-compile-ph...worker-support/</a><br>
Попытался по ней выполнить, выходит такая ошибка: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">configure: error: Cannot find OpenSSL&#39;s &#60;evp.h&#62;</div></ol></div></div></div></div><br>
<br>
По этой ссылке сделал, конфликтов никаких нет, но как запустить, не знаю, не работает PHP: <a class='tag-url' href='https://bogachev.biz/2015/05/29/ustanovka-php-iz-ishodnikov/' target='_blank'>https://bogachev.biz/2015/05/29/ustanovka-php-iz-ishodnikov/</a><br>
<br>
<br>
Подскажите, пожалуйста, что делать?]]></description>
        <author>salieri</author>
        <category>*nix</category>
      </item>
	
      </channel>
      </rss>
	