首页 \ 问答 \ 在RHEL上安装PHP5.6(Installing PHP5.6 on RHEL)

在RHEL上安装PHP5.6(Installing PHP5.6 on RHEL)

我正在尝试使用yum在RHEL 7(物理机器)上安装PHP 5.6。 我安装了REMI存储库。

[root@localhost Sridhar_P]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repo id                                        repo name                                                                               status
*epel/x86_64                                   Extra Packages for Enterprise Linux 7 - x86_64                                          enabled: 10,416
epel-debuginfo/x86_64                          Extra Packages for Enterprise Linux 7 - x86_64 - Debug                                  disabled
epel-source/x86_64                             Extra Packages for Enterprise Linux 7 - x86_64 - Source                                 disabled
epel-testing/x86_64                            Extra Packages for Enterprise Linux 7 - Testing - x86_64                                disabled
epel-testing-debuginfo/x86_64                  Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug                        disabled
epel-testing-source/x86_64                     Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source                       disabled
mysql-connectors-community/x86_64              MySQL Connectors Community                                                              enabled:     21
mysql-connectors-community-source              MySQL Connectors Community - Source                                                     disabled
mysql-tools-community/x86_64                   MySQL Tools Community                                                                   enabled:     36
mysql-tools-community-source                   MySQL Tools Community - Source                                                          disabled
mysql55-community/x86_64                       MySQL 5.5 Community Server                                                              disabled
mysql55-community-source                       MySQL 5.5 Community Server - Source                                                     disabled
mysql56-community/x86_64                       MySQL 5.6 Community Server                                                              enabled:    259
mysql56-community-source                       MySQL 5.6 Community Server - Source                                                     disabled
mysql57-community-dmr/x86_64                   MySQL 5.7 Community Server Development Milestone Release                                disabled
mysql57-community-dmr-source                   MySQL 5.7 Community Server Development Milestone Release - Source                       disabled
nginx/x86_64                                   nginx repo                                                                              enabled:     28
remi                                           Remi's RPM repository for Enterprise Linux 7 - x86_64                                   enabled:  3,287
remi-debuginfo/x86_64                          Remi's RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                       enabled:  1,244
remi-php55                                     Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64                           disabled
remi-php55-debuginfo/x86_64                    Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo               disabled
remi-php56                                     Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64                           enabled:    361
remi-php56-debuginfo/x86_64                    Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo               enabled:    246
remi-safe                                      Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                              disabled
remi-test                                      Remi's test RPM repository for Enterprise Linux 7 - x86_64                              enabled:    636
remi-test-debuginfo/x86_64                     Remi's test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                  enabled:    198
webtatic/x86_64                                Webtatic Repository EL7 - x86_64                                                        disabled
webtatic-archive/x86_64                        Webtatic Repository EL7 - x86_64 - Archive                                              disabled
webtatic-archive-debuginfo/x86_64              Webtatic Repository EL7 - x86_64 - Archive Debug                                        disabled
webtatic-archive-source                        Webtatic Repository EL7 - x86_64 - Archive Source                                       disabled
webtatic-debuginfo/x86_64                      Webtatic Repository EL7 - x86_64 - Debug                                                disabled
webtatic-source                                Webtatic Repository EL7 - x86_64 - Source                                               disabled
webtatic-testing/x86_64                        Webtatic Repository EL7 - x86_64 - Testing                                              disabled
webtatic-testing-debuginfo/x86_64              Webtatic Repository EL7 - x86_64 - Testing Debug                                        disabled
webtatic-testing-source                        Webtatic Repository EL7 - x86_64 - Testing Source                                       disabled

然后我跑了

yum clean all
yum update

然后尝试通过运行安装PHP

yum install php php-fpm php-mcrypt php-imap php-gd php-mbstring php-mysql php-dom

我收到以下错误

[root@localhost Sridhar_P]# yum install php php-fpm php-mcrypt php-imap php-gd php-mbstring php-mysql php-dom
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-fpm.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-imap.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mbstring.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mysqlnd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-xml.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.3-1.el7.remi will be installed
---> Package libc-client.x86_64 0:2007f-4.el7.1 will be installed
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-cli.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-common.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be installed
---> Package php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6 will be installed
--> Processing Dependency: libzip.so.4()(64bit) for package: php-pecl-zip-1.13.4-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package libzip-last.x86_64 0:1.1.3-1.el7.remi will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd
Error: Package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: libt1.so.5()(64bit)
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

在此Stackoverflow问题上找到了一个解决方案,建议安装Webtatic EL。 我安装了webtatic做了yum更新并运行

yum install php56w php56w-fpm php56w-mcrypt php56w-gd php56w-imap php56w-mbstring php56w-mysql php56w-dom

我得到依赖错误

[root@localhost Sridhar_P]# yum install php56w php56w-fpm php56w-mcrypt php56w-gd php56w-imap php56w-mbstring php56w-mysql php56w-dom
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
remi-safe                                                                                                                      | 2.9 kB      00:00:00     
Package php56w is obsoleted by php, trying to install php-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-fpm is obsoleted by php-fpm, trying to install php-fpm-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mcrypt is obsoleted by php-mcrypt, trying to install php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-gd is obsoleted by php-gd, trying to install php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-imap is obsoleted by php-imap, trying to install php-imap-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mbstring is obsoleted by php-mbstring, trying to install php-mbstring-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-xml is obsoleted by php-xml, trying to install php-xml-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-fpm.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-imap.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mbstring.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mysqlnd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-xml.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.3-1.el7.remi will be installed
---> Package libc-client.x86_64 0:2007f-4.el7.1 will be installed
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-cli.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-common.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed    
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be installed
---> Package php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6 will be installed
--> Processing Dependency: libzip.so.4()(64bit) for package: php-pecl-zip-1.13.4-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package libzip-last.x86_64 0:1.1.3-1.el7.remi will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd
Error: Package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: libt1.so.5()(64bit)
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我想知道我是否遗漏了什么? 好像我在圈子里走来走去! 我每周在Centos机器上安装一个完整的堆栈,但在RHEl中通过这个似乎是一个挑战。 关于我应该寻找什么的任何指示? (顺便说一句,我找不到消息底部提到的remi-test repo)


I am trying to install PHP 5.6 on RHEL 7 (physical machine) using yum. I installed the REMI repositories.

[root@localhost Sridhar_P]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repo id                                        repo name                                                                               status
*epel/x86_64                                   Extra Packages for Enterprise Linux 7 - x86_64                                          enabled: 10,416
epel-debuginfo/x86_64                          Extra Packages for Enterprise Linux 7 - x86_64 - Debug                                  disabled
epel-source/x86_64                             Extra Packages for Enterprise Linux 7 - x86_64 - Source                                 disabled
epel-testing/x86_64                            Extra Packages for Enterprise Linux 7 - Testing - x86_64                                disabled
epel-testing-debuginfo/x86_64                  Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug                        disabled
epel-testing-source/x86_64                     Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source                       disabled
mysql-connectors-community/x86_64              MySQL Connectors Community                                                              enabled:     21
mysql-connectors-community-source              MySQL Connectors Community - Source                                                     disabled
mysql-tools-community/x86_64                   MySQL Tools Community                                                                   enabled:     36
mysql-tools-community-source                   MySQL Tools Community - Source                                                          disabled
mysql55-community/x86_64                       MySQL 5.5 Community Server                                                              disabled
mysql55-community-source                       MySQL 5.5 Community Server - Source                                                     disabled
mysql56-community/x86_64                       MySQL 5.6 Community Server                                                              enabled:    259
mysql56-community-source                       MySQL 5.6 Community Server - Source                                                     disabled
mysql57-community-dmr/x86_64                   MySQL 5.7 Community Server Development Milestone Release                                disabled
mysql57-community-dmr-source                   MySQL 5.7 Community Server Development Milestone Release - Source                       disabled
nginx/x86_64                                   nginx repo                                                                              enabled:     28
remi                                           Remi's RPM repository for Enterprise Linux 7 - x86_64                                   enabled:  3,287
remi-debuginfo/x86_64                          Remi's RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                       enabled:  1,244
remi-php55                                     Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64                           disabled
remi-php55-debuginfo/x86_64                    Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo               disabled
remi-php56                                     Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64                           enabled:    361
remi-php56-debuginfo/x86_64                    Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo               enabled:    246
remi-safe                                      Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                              disabled
remi-test                                      Remi's test RPM repository for Enterprise Linux 7 - x86_64                              enabled:    636
remi-test-debuginfo/x86_64                     Remi's test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo                  enabled:    198
webtatic/x86_64                                Webtatic Repository EL7 - x86_64                                                        disabled
webtatic-archive/x86_64                        Webtatic Repository EL7 - x86_64 - Archive                                              disabled
webtatic-archive-debuginfo/x86_64              Webtatic Repository EL7 - x86_64 - Archive Debug                                        disabled
webtatic-archive-source                        Webtatic Repository EL7 - x86_64 - Archive Source                                       disabled
webtatic-debuginfo/x86_64                      Webtatic Repository EL7 - x86_64 - Debug                                                disabled
webtatic-source                                Webtatic Repository EL7 - x86_64 - Source                                               disabled
webtatic-testing/x86_64                        Webtatic Repository EL7 - x86_64 - Testing                                              disabled
webtatic-testing-debuginfo/x86_64              Webtatic Repository EL7 - x86_64 - Testing Debug                                        disabled
webtatic-testing-source                        Webtatic Repository EL7 - x86_64 - Testing Source                                       disabled

I then ran

yum clean all
yum update

and then tried installing php by running

yum install php php-fpm php-mcrypt php-imap php-gd php-mbstring php-mysql php-dom

I got the following error

[root@localhost Sridhar_P]# yum install php php-fpm php-mcrypt php-imap php-gd php-mbstring php-mysql php-dom
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-fpm.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-imap.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mbstring.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mysqlnd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-xml.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.3-1.el7.remi will be installed
---> Package libc-client.x86_64 0:2007f-4.el7.1 will be installed
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-cli.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-common.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be installed
---> Package php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6 will be installed
--> Processing Dependency: libzip.so.4()(64bit) for package: php-pecl-zip-1.13.4-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package libzip-last.x86_64 0:1.1.3-1.el7.remi will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd
Error: Package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: libt1.so.5()(64bit)
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Found a solution at this Stackoverflow question which recommends that the Webtatic EL be installed. I installed webtatic did a yum update and ran

yum install php56w php56w-fpm php56w-mcrypt php56w-gd php56w-imap php56w-mbstring php56w-mysql php56w-dom

I get dependency errors

[root@localhost Sridhar_P]# yum install php56w php56w-fpm php56w-mcrypt php56w-gd php56w-imap php56w-mbstring php56w-mysql php56w-dom
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
remi-safe                                                                                                                      | 2.9 kB      00:00:00     
Package php56w is obsoleted by php, trying to install php-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-fpm is obsoleted by php-fpm, trying to install php-fpm-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mcrypt is obsoleted by php-mcrypt, trying to install php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-gd is obsoleted by php-gd, trying to install php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-imap is obsoleted by php-imap, trying to install php-imap-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mbstring is obsoleted by php-mbstring, trying to install php-mbstring-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Package php56w-xml is obsoleted by php-xml, trying to install php-xml-5.6.25-0.1.RC1.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-fpm.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-imap.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mbstring.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-mysqlnd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.6.25-0.1.RC1.el7.remi for package: php-mysqlnd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-xml.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.3-1.el7.remi will be installed
---> Package libc-client.x86_64 0:2007f-4.el7.1 will be installed
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-cli.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
---> Package php-common.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed    
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Running transaction check
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be installed
---> Package php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6 will be installed
--> Processing Dependency: libzip.so.4()(64bit) for package: php-pecl-zip-1.13.4-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package libzip-last.x86_64 0:1.1.3-1.el7.remi will be installed
---> Package php.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
--> Processing Dependency: httpd for package: php-5.6.25-0.1.RC1.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.25-0.1.RC1.el7.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd
Error: Package: php-gd-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: libt1.so.5()(64bit)
Error: Package: php-5.6.25-0.1.RC1.el7.remi.x86_64 (remi-test)
       Requires: httpd-mmn = 20120211x8664
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I am wondering if I am missing something? it seems I am going around in circles! I install one complete stack on a Centos machine every week but getting past this in RHEl seems to be a challenge. Any pointers on what I should be looking for? (BTW I can't find the remi-test repo mentioned at the bottom of the message)


原文:https://stackoverflow.com/questions/38870216
更新时间:2021-12-26 08:12

最满意答案

如果父级没有z-index且子级具有负z-index则它可以工作。 点击这里:

jsfiddle.net/L29d2/

HTML

<div class="big">
    <div class="small"></div>
</div>

CSS

.big {
background-color:red;
width:400px;
height:400px;
}
.small {
float:left;
position:absolute;
background-color:blue;
width:200px;
height:200px;
margin-left:300px;
z-index:-1;
}

If the parent has no z-index and the child has negative z-index it works. Check here:

jsfiddle.net/L29d2/

html

<div class="big">
    <div class="small"></div>
</div>

css

.big {
background-color:red;
width:400px;
height:400px;
}
.small {
float:left;
position:absolute;
background-color:blue;
width:200px;
height:200px;
margin-left:300px;
z-index:-1;
}

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)