Форум OlegON > Компьютеры и Программное обеспечение > Сеть > Создание сайтов и поисковая оптимизация (SEO)

nginx/1.8.0 ошибка 502 - Помогите настроить : Создание сайтов и поисковая оптимизация (SEO)

28.03.2024 10:12


16.03.2016 17:31
twix
 
Страшный бардак...
php в base версии 5.3
php в remi версии 5.6
php-fpm в remi версии 5.4

Зоопарк, блеать... Откатывай всё, отключай remi, и ставь родное CentOS'овое. Пусть и старое, но гарантированно работающее.
16.03.2016 17:32
aldemko
 
а как его откатить то ....
и как отключить - везде написано как подключить
отправлять запрос в тп что бы ось заново ставили?
я хотел удалить php-fpm и заново установить потом
но тоже не выходит
Код:
 yum remove php-fpm
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: php-fpm
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * epel: epel.mirrors.ovh.net
 * extras: mirrors.coreix.net
 * remi-safe: rpms.remirepo.net
 * updates: mirrors.coreix.net
 * webtatic: uk.repo.webtatic.com
Package(s) php-fpm available, but not installed.
No Packages marked for removal
16.03.2016 17:42
twix
 
Код:
yum remove php php-fpm
yum --disablerepo=remi
yum install php-fpm
16.03.2016 17:46
twix
 
Цитата:
aldemko я хотел удалить php-fpm и заново установить потом
но тоже не выходит
Естественно, не выходит. Он ж у тебя не поставился из-за неразрешённых зависимостей. Сносить надо установленный php5.6, и всё, что с ним там автоматически наставилось, типа php-common (если само не ремувнется).
Потом надо отключить remi репу, и ставить всё из одного места - из базы.
16.03.2016 17:54
aldemko
 
Что бы опять не напартачить лучше спрошу
пишу
yum remove php-common-5.6.19-1.el6.remi.x86_64
и все что было в
Код:
yum install php-fpm
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * epel: epel.mirrors.ovh.net
 * extras: mirrors.coreix.net
 * remi-safe: rpms.remirepo.net
 * updates: mirrors.coreix.net
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-fpm-5.3.3-46.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-fpm-5.3.3-46.el6_7.1.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
           Installed: php-common-5.6.19-1.el6.remi.x86_64 (@remi-php56)
               php-common(x86-64) = 5.6.19-1.el6.remi
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php-common(x86-64) = 5.3.3-40.el6_6
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_6
           Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_7.1
           Available: php54w-common-5.4.45-2.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.4.45-2.w6
           Available: php55w-common-5.5.32-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.5.32-1.w6
           Available: php56w-common-5.6.18-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.6.18-1.w6
           Available: php70w-common-7.0.3-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 7.0.3-1.w6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
?

хотя после удаления yum remove php-common-5.6.19-1.el6.remi.x86_6
он разрешает опять установить php-fpm
16.03.2016 17:57
twix
 
Цитата:
aldemko Что бы опять не напартачить лучше спрошу
пишу
yum remove php-common-5.6.19-1.el6.remi.x86_64
и все что было в
Код:
yum install php-fpm
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * epel: epel.mirrors.ovh.net
 * extras: mirrors.coreix.net
 * remi-safe: rpms.remirepo.net
 * updates: mirrors.coreix.net
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-fpm-5.3.3-46.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-fpm-5.3.3-46.el6_7.1.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
           Installed: php-common-5.6.19-1.el6.remi.x86_64 (@remi-php56)
               php-common(x86-64) = 5.6.19-1.el6.remi
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php-common(x86-64) = 5.3.3-40.el6_6
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_6
           Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
               php-common(x86-64) = 5.3.3-46.el6_7.1
           Available: php54w-common-5.4.45-2.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.4.45-2.w6
           Available: php55w-common-5.5.32-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.5.32-1.w6
           Available: php56w-common-5.6.18-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 5.6.18-1.w6
           Available: php70w-common-7.0.3-1.w6.x86_64 (webtatic)
               php-common(x86-64) = 7.0.3-1.w6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
?

хотя после удаления yum remove php-common-5.6.19-1.el6.remi.x86_6
он разрешает опять установить php-fpm
Удаляй без указания версии. Снеси всё, что стоит.
Попробуй, кстати, ещё и remi-safe отключить: yum --disablerepo=remi-safe
16.03.2016 17:59
twix
 
Давай по шагам... Вводи команды, и пиши сюда ответ:

yum remove php php-cli php-common

(небольшой оверкил, но всё же...)
16.03.2016 18:00
aldemko
 
пока только 1 строку удалил
потом yum install php-fpm
service php-fpm start
сайт уже ошибку 502 и 404 не дает

без указании версии не знаю как удалить
просто писал yum remove и выделял строку php-common-5.6.19-1.el6.remi.x86_64

Код:
yum remove php php-cli php-common:
Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: php-common x86_64 5.3.3-46.el6_7.1 @updates 2.9 M Removing for dependencies: php-fpm x86_64 5.3.3-46.el6_7.1 @updates 3.2 M Transaction Summary ================================================================================ Remove 2 Package(s) Installed size: 6.1 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : php-fpm-5.3.3-46.el6_7.1.x86_64 1/2 Erasing : php-common-5.3.3-46.el6_7.1.x86_64 2/2 Verifying : php-common-5.3.3-46.el6_7.1.x86_64 1/2 Verifying : php-fpm-5.3.3-46.el6_7.1.x86_64 2/2 Removed: php-common.x86_64 0:5.3.3-46.el6_7.1 Dependency Removed: php-fpm.x86_64 0:5.3.3-46.el6_7.1 Complete!
опять 502
16.03.2016 18:03
twix
 
Цитата:
aldemko опять 502
Правильно. Так и должно быть теперь у тебя нет вообще никакого php и php-fpm.
Теперь:

yum --disablerepo=remi
и
yum --disablerepo=remi-safe
16.03.2016 18:06
aldemko
 
yum --disablerepo=remi:
Код:
yum --disablerepo=remi
Loaded plugins: fastestmirror
You need to give some command
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
groupinfo      Display details about a package group
groupinstall   Install the packages in a group on your system
grouplist      List available package groups
groupremove    Remove the packages in a group from your system
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
resolvedep     Determine which package provides the given dependency
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


Options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C, --cacheonly       run entirely from system cache, don't update cache
  -c [config file], --config=[config file]
                        config file location
  -R [minutes], --randomwait=[minutes]
                        maximum command wait time
  -d [debug level], --debuglevel=[debug level]
                        debugging output level
  --showduplicates      show duplicates, in repos, in list/search commands
  -e [error level], --errorlevel=[error level]
                        error output level
  --rpmverbosity=[debug level name]
                        debugging output level for rpm
  -q, --quiet           quiet operation
  -v, --verbose         verbose operation
  -y, --assumeyes       answer yes for all questions
  --assumeno            answer no for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --disableexcludes=[repo]
                        disable exclude from main, for a repo or for
                        everything
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins
  --nogpgcheck          disable gpg signature checking
  --disableplugin=[plugin]
                        disable plugins by name
  --enableplugin=[plugin]
                        enable plugins by name
  --skip-broken         skip packages with depsolving problems
  --color=COLOR         control whether color is used
  --releasever=RELEASEVER
                        set value of $releasever in yum config and repo files
  --downloadonly        don't update, just download
  --downloaddir=DLDIR   specifies an alternate directory to store packages
  --setopt=SETOPTS      set arbitrary config and repo options

  Plugin Options:

и
yum --disablerepo=remi-safe:
Код:
yum --disablerepo=remi-safe
Loaded plugins: fastestmirror
You need to give some command
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
groupinfo      Display details about a package group
groupinstall   Install the packages in a group on your system
grouplist      List available package groups
groupremove    Remove the packages in a group from your system
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
resolvedep     Determine which package provides the given dependency
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


Options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C, --cacheonly       run entirely from system cache, don't update cache
  -c [config file], --config=[config file]
                        config file location
  -R [minutes], --randomwait=[minutes]
                        maximum command wait time
  -d [debug level], --debuglevel=[debug level]
                        debugging output level
  --showduplicates      show duplicates, in repos, in list/search commands
  -e [error level], --errorlevel=[error level]
                        error output level
  --rpmverbosity=[debug level name]
                        debugging output level for rpm
  -q, --quiet           quiet operation
  -v, --verbose         verbose operation
  -y, --assumeyes       answer yes for all questions
  --assumeno            answer no for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --disableexcludes=[repo]
                        disable exclude from main, for a repo or for
                        everything
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins
  --nogpgcheck          disable gpg signature checking
  --disableplugin=[plugin]
                        disable plugins by name
  --enableplugin=[plugin]
                        enable plugins by name
  --skip-broken         skip packages with depsolving problems
  --color=COLOR         control whether color is used
  --releasever=RELEASEVER
                        set value of $releasever in yum config and repo files
  --downloadonly        don't update, just download
  --downloaddir=DLDIR   specifies an alternate directory to store packages
  --setopt=SETOPTS      set arbitrary config and repo options

  Plugin Options:
Часовой пояс GMT +3, время: 10:12.

Форум на базе vBulletin®
Copyright © Jelsoft Enterprises Ltd.
В случае заимствования информации гипертекстовая индексируемая ссылка на Форум обязательна.