Jump to content

Recommended Posts

Posted

Здравствуйте!

Пытаюсь установить PHP 5 на Ubuntu 20.04.
Как известно, популярный репозиторий - это ondrej.
При установке возникает проблема с локалями, если подтвердить, то русские буквы при отображении сайта превращаются в знаки вопроса.
Как с этим быть - не знаю.
 

Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included.
Only Supported Versions of PHP (http://php.net/supported-versions.php ) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided.
Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/ #debian-dpa
You can get more information about the packages at https://deb.sury.org
 
IMPORTANT: The <foo>-backports is now required on older Ubuntu releases.
BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting
 
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline or ppa:ondrej/nginx
 
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/
 
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
 
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Решил зайти на сам репозиторий от ondrej и попытаться оттуда выцепить сборку, но не могу собрать её, пакеты не устанавливаются.

Репозиторий от ondrej: https://ppa.launchpadcontent.net/ondrej/php.../main/p/php5.6/

Какие есть способы решения, подскажите, пожалуйста.
Версия PHP может быть от 5.3 до 5.6.

Нашёл одну инструкцию: https://www.looklinux.com/how-to-compile-ph...worker-support/
Попытался по ней выполнить, выходит такая ошибка:

 

configure: error: Cannot find OpenSSL's <evp.h>

 

По этой ссылке сделал, конфликтов никаких нет, но как запустить, не знаю, не работает PHP: https://bogachev.biz/2015/05/29/ustanovka-php-iz-ishodnikov/


Подскажите, пожалуйста, что делать?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...