@merelesha

Обновление php на centos7?

При попытке обновить php вылазит следующее:

yum --enablerepo=remi-php73 -y install php73-php-cli php73-php-pear php73-php-fpm php73-php-pecl-mcrypt php73-php-bcmath php73-runtime php73-php-common php73-php-pdo php73-php-process php73-php-mysqlnd php73-php php73-php-opcache php73-php-gmp php73-php-gd php73-php-mbstring php73-php-json php73-php-xml php73-php-pecl-imagick php73-php-intl php73
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 28 kB 00:00:00
* base: centos-mirror.rbc.ru
* epel: mirror.logol.ru
* extras: mirror.sale-dedic.com
* remi-php73: mirror.reconn.ru
* remi-safe: mirror.reconn.ru
* updates: mirror.sale-dedic.com
Zend | 951 B 00:00:00
Zend_noarch | 951 B 00:00:00
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
jino-pub | 2.9 kB 00:00:00
jino-vps | 2.9 kB 00:00:00
yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (MariaDB),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=mariadb ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable mariadb
or
subscription-manager repos --disable=mariadb

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=mariadb.skip_if_unavailable=true

failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Попытка решить способами с wiki и баг центос не получилось, как можно решать
  • Вопрос задан
  • 196 просмотров
Пригласить эксперта
Ответы на вопрос 2
@AUser0
Чем больше знаю, тем лучше понимаю, как мало знаю.
А вы не заметили, что директории yum.mariadb.org/10.1 уже не существует? Нет директории - нет и пакетов из неё... Ищите другой репозиторий!
Ответ написан
Комментировать
AgentSmith72
@AgentSmith72
JS - это моё хобби
Могу посоветовать вам использовать Docker.
Установка:
sudo dnf install docker docker-compose -y
sudo systemctl start docker
sudo systemctl enable docker

Добавить пользователя в группу docker и предоставить права файлу на исполнение
sudo usermod -aG docker userName                 // userName - пользователь под которым вы в системе
sudo chmod +x /usr/bin/docker-compose
sudo service docker restart

Скачиваете репозиторий с готовой сборкой PHP 8:0
Из папки куда сохранили запускаете сборку контейнеров командой в консоли:docker-compose up -d

В _docker/php/Dockerfile указана версия образа php:8.0-fpm, но вы можете указать любую, доступную в официальном репозитории Docker, выбрав нужный тэг.

В браузере сайт доступен по адресу localhost:81
А phpMyAdmin по адресу localhost:8080 с паролем root

Не забудьте удалить mariaDb и apache из systemctl, так как сервер и БД будут работать не из systemctl , а из docker контейнера.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
29 мар. 2024, в 09:44
20000 руб./за проект
29 мар. 2024, в 09:31
1000 руб./в час
29 мар. 2024, в 07:55
15000 руб./за проект