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

Nginx Обновление Php до 5.6 : Создание сайтов и поисковая оптимизация (SEO)

19.04.2024 9:25


17.03.2016 08:49
aldemko
 
Сервер Centos 6.7
Вчера переустановил связку nginx+php-fpm
php в нем 5.3 версии
Вчера я уже пробовал устанавливать php 5.6 что привело к плачевному результату
поэтому пока буду писать то что я нарыл, возможные действия
команды
PS
В любом случае я хотел бы понять алгоритм действий тоже

при попытке установить
Код:
yum install php56w php56w-opcache
не знаю верна ли эта команда - но нашел по запросу nginx установка php 5.6

Попробовал ее ввести, что бы понять корректность команды:
она конфликтует:

результат:
Код:
 yum install php56w php56w-opcache
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * epel: ftp.nluug.nl
 * extras: ftp.hosteurope.de
 * remi-safe: rpms.remirepo.net
 * updates: ftp.hosteurope.de
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w.x86_64 0:5.6.18-1.w6 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.18-1.w6 for package: php56w-5.6.18-1.w6.x86_64
--> Processing Dependency: php56w-cli(x86-64) = 5.6.18-1.w6 for package: php56w-5.6.18-1.w6.x86_64
--> Processing Dependency: php56w-cli = 5.6.18-1.w6 for package: php56w-5.6.18-1.w6.x86_64
---> Package php56w-opcache.x86_64 0:5.6.18-1.w6 will be installed
--> Running transaction check
---> Package php56w-cli.x86_64 0:5.6.18-1.w6 will be installed
---> Package php56w-common.x86_64 0:5.6.18-1.w6 will be installed
--> Processing Conflict: php56w-common-5.6.18-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-46.el6_7.1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Что бы избавиться от конфликта нужно проделать то что мне вчера писал twix
Код:
yum remove php php-cli php-common
только в этом случае конфликт с  
поэтому нужно написать yum remove php-common-5.3.3-46.el6_7.1.x86_64 ?
17.03.2016 09:08
OlegON
 
Для начала попробуй что-нибудь вроде
Код:
yum info php56w
и почитать, для чего этот пакет.
Кроме того, перед любыми действиями попробуй
Код:
yum upgrade
и в целом перед всеми действиями прочитай сначала не какой-то опус в инете, а
Код:
man yum
17.03.2016 09:34
aldemko
 
Код:
yum info php56w
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror0.babylon.network
 * epel: mirrors.coreix.net
 * extras: mirror0.babylon.network
 * remi-safe: mirror5.layerjet.com
 * updates: mirror0.babylon.network
 * webtatic: us-east.repo.webtatic.com
Available Packages
Name        : php56w
Arch        : x86_64
Version     : 5.6.18
Release     : 1.w6
Size        : 2.7 M
Repo        : webtatic
Summary     : PHP scripting language for creating dynamic web sites
URL         : http://www.php.net/
License     : PHP and Zend and BSD
Description : PHP is an HTML-embedded scripting language. PHP attempts to make
            : it easy for developers to write dynamically generated web pages.
            : PHP also offers built-in database integration for several
            : commercial and non-commercial database management systems, so
            : writing a database-enabled webpage with PHP is fairly simple. The
            : most common use of PHP coding is probably as a replacement for CGI
            : scripts.
            :
            : The php56w package contains the module (often referred to as
            : mod_php) which adds support for the PHP language to Apache HTTP
            : Server.
yum upgrade - буду иметь в виду, ввел обновил
1:
Код:
 yum upgrade
Loaded plugins: fastestmirror
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
 * base: ftp.hosteurope.de
 * epel: ftp.nluug.nl
 * extras: ftp.hosteurope.de
 * remi-safe: rpms.remirepo.net
 * updates: ftp.hosteurope.de
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.37.rc1.el6_7.6 will be updated
---> Package bind.x86_64 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-chroot.x86_64 32:9.8.2-0.37.rc1.el6_7.6 will be updated
---> Package bind-chroot.x86_64 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-devel.x86_64 32:9.8.2-0.37.rc1.el6_7.6 will be updated
---> Package bind-devel.x86_64 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-libs.x86_64 32:9.8.2-0.37.rc1.el6_7.6 will be updated
---> Package bind-libs.x86_64 32:9.8.2-0.37.rc1.el6_7.7 will be an update
---> Package bind-utils.x86_64 32:9.8.2-0.37.rc1.el6_7.6 will be updated
---> Package bind-utils.x86_64 32:9.8.2-0.37.rc1.el6_7.7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch        Version                        Repository    Size
================================================================================
Updating:
 bind             x86_64      32:9.8.2-0.37.rc1.el6_7.7      updates      4.0 M
 bind-chroot      x86_64      32:9.8.2-0.37.rc1.el6_7.7      updates       75 k
 bind-devel       x86_64      32:9.8.2-0.37.rc1.el6_7.7      updates      383 k
 bind-libs        x86_64      32:9.8.2-0.37.rc1.el6_7.7      updates      887 k
 bind-utils       x86_64      32:9.8.2-0.37.rc1.el6_7.7      updates      186 k

Transaction Summary
================================================================================
Upgrade       5 Package(s)

Total download size: 5.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): bind-9.8.2-0.37.rc1.el6_7.7.x86_64.rpm            | 4.0 MB     00:00
(2/5): bind-chroot-9.8.2-0.37.rc1.el6_7.7.x86_64.rpm     |  75 kB     00:00
(3/5): bind-devel-9.8.2-0.37.rc1.el6_7.7.x86_64.rpm      | 383 kB     00:00
(4/5): bind-libs-9.8.2-0.37.rc1.el6_7.7.x86_64.rpm       | 887 kB     00:00
(5/5): bind-utils-9.8.2-0.37.rc1.el6_7.7.x86_64.rpm      | 186 kB     00:00
--------------------------------------------------------------------------------
Total                                            13 MB/s | 5.5 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : 32:bind-libs-9.8.2-0.37.rc1.el6_7.7.x86_64                  1/10
  Updating   : 32:bind-9.8.2-0.37.rc1.el6_7.7.x86_64                       2/10
  Updating   : 32:bind-chroot-9.8.2-0.37.rc1.el6_7.7.x86_64                3/10
  Updating   : 32:bind-utils-9.8.2-0.37.rc1.el6_7.7.x86_64                 4/10
  Updating   : 32:bind-devel-9.8.2-0.37.rc1.el6_7.7.x86_64                 5/10
  Cleanup    : 32:bind-devel-9.8.2-0.37.rc1.el6_7.6.x86_64                 6/10
  Cleanup    : 32:bind-chroot-9.8.2-0.37.rc1.el6_7.6.x86_64                7/10
  Cleanup    : 32:bind-9.8.2-0.37.rc1.el6_7.6.x86_64                       8/10
  Cleanup    : 32:bind-utils-9.8.2-0.37.rc1.el6_7.6.x86_64                 9/10
  Cleanup    : 32:bind-libs-9.8.2-0.37.rc1.el6_7.6.x86_64                 10/10
  Verifying  : 32:bind-chroot-9.8.2-0.37.rc1.el6_7.7.x86_64                1/10
  Verifying  : 32:bind-utils-9.8.2-0.37.rc1.el6_7.7.x86_64                 2/10
  Verifying  : 32:bind-9.8.2-0.37.rc1.el6_7.7.x86_64                       3/10
  Verifying  : 32:bind-libs-9.8.2-0.37.rc1.el6_7.7.x86_64                  4/10
  Verifying  : 32:bind-devel-9.8.2-0.37.rc1.el6_7.7.x86_64                 5/10
  Verifying  : 32:bind-libs-9.8.2-0.37.rc1.el6_7.6.x86_64                  6/10
  Verifying  : 32:bind-utils-9.8.2-0.37.rc1.el6_7.6.x86_64                 7/10
  Verifying  : 32:bind-devel-9.8.2-0.37.rc1.el6_7.6.x86_64                 8/10
  Verifying  : 32:bind-chroot-9.8.2-0.37.rc1.el6_7.6.x86_64                9/10
  Verifying  : 32:bind-9.8.2-0.37.rc1.el6_7.6.x86_64                      10/10

Updated:
  bind.x86_64 32:9.8.2-0.37.rc1.el6_7.7
  bind-chroot.x86_64 32:9.8.2-0.37.rc1.el6_7.7
  bind-devel.x86_64 32:9.8.2-0.37.rc1.el6_7.7
  bind-libs.x86_64 32:9.8.2-0.37.rc1.el6_7.7
  bind-utils.x86_64 32:9.8.2-0.37.rc1.el6_7.7

Complete!
Часовой пояс GMT +3, время: 09:25.

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