找回密码
 注册
查看: 459|回复: 1

Fatal error: Composer detected issues in your platform: Your Composer dependenci

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-10-25 10:23:14 | 显示全部楼层 |阅读模式
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 7.1.30. in /usr/share/icinga-php/ipl/vendor/composer/platform_check.php on line 24
( l! s: `2 H9 Z" F' R$ H3 p
, e/ ]3 ]  I1 A+ P( A3 Z. g解决办法:
; M4 e7 r& Z, ]1 j[root@centos7-9 yum.repos.d]# yum install -y http://mirror.centos.org/centos/ ... 10-3.el7.x86_64.rpm+ S# x7 [" Q9 c* C
Loaded plugins: fastestmirror2 L. l3 W+ X( h* n
rh-php72-php-json-7.2.10-3.el7.x86_64.rpm                 |  54 kB  00:00:00     - h+ V; P7 m- B! i) W
Examining /var/tmp/yum-root-iNb3tR/rh-php72-php-json-7.2.10-3.el7.x86_64.rpm: rh-php72-php-json-7.2.10-3.el7.x86_64
3 r2 h. Q/ ~, V! d# [( tMarking /var/tmp/yum-root-iNb3tR/rh-php72-php-json-7.2.10-3.el7.x86_64.rpm to be installed
% K% W, ?# Q+ X. l8 u7 }6 JResolving Dependencies" O& Y, X* \$ o$ P* k, t
--> Running transaction check& H9 |% R- H0 X+ k* a# }  X
---> Package rh-php72-php-json.x86_64 0:7.2.10-3.el7 will be installed; D* _- d4 X1 m9 f* }/ a
--> Processing Dependency: rh-php72-php-common(x86-64) = 7.2.10-3.el7 for package: rh-php72-php-json-7.2.10-3.el7.x86_64: T1 S/ k! O. X* V9 X! U$ {: y
Loading mirror speeds from cached hostfile5 ^7 {8 R8 ~  k4 R+ {
* base: mirrors.aliyun.com( I7 @8 b. s- }5 U  o8 i3 ]
* centos-sclo-rh: mirrors.tuna.tsinghua.edu.cn
: N' ^8 l5 V) l1 n& w( Y * centos-sclo-sclo: mirrors.aliyun.com
4 ?$ I1 ]6 g3 m; M$ R * epel: ftp.riken.jp: f  A; i: U; r! v2 x
* extras: mirrors.aliyun.com  q- p' u$ D% P
* updates: mirrors.aliyun.com
6 T& }# ^% {0 Q# D7 {0 [, k; {--> Running transaction check
9 h4 u1 s7 B4 N' ^' A---> Package rh-php72-php-common.x86_64 0:7.2.10-3.el7 will be installed8 f4 G  e+ [: a! \
--> Processing Dependency: rh-php72-php-zip(x86-64) = 7.2.10-3.el7 for package: rh-php72-php-common-7.2.10-3.el7.x86_64
  |$ C+ c7 Q) O& [# ^: y3 n1 z--> Processing Dependency: rh-php72-runtime for package: rh-php72-php-common-7.2.10-3.el7.x86_64
, P% T, z6 M, A4 H) \  U  x! J--> Running transaction check( Z1 P! D; D* H5 y5 E
---> Package rh-php72-php-zip.x86_64 0:7.2.10-3.el7 will be installed8 b  ^7 K( M, Y6 e
---> Package rh-php72-runtime.x86_64 0:1-2.el7 will be installed3 [% B6 e% x! `/ P  T
--> Finished Dependency Resolution
* z# E9 m, Q* }% A- L4 _* y' t4 v- z" C
Dependencies Resolved
; C. E- v  Q1 c' v2 n* m$ ?# v
# n3 _) l8 H( X$ k7 D7 A3 |=================================================================================& }& f, K. e9 I1 H7 D) E+ L
Package             Arch   Version      Repository                         Size
) |5 b( |/ g9 J1 p% S=================================================================================
. Y. B5 j$ z+ g! {, MInstalling:
6 C: k1 u6 ~6 m& j& G8 R9 j rh-php72-php-json   x86_64 7.2.10-3.el7 /rh-php72-php-json-7.2.10-3.el7.x86_64* `) k. [( u/ Z9 m: q) m
                                                                            44 k" I) _$ v: u1 y% O; B: `
Installing for dependencies:
) E# ^' v5 e8 [" H1 F0 M  J rh-php72-php-common x86_64 7.2.10-3.el7 centos-sclo-rh                    672 k
5 M( p; l0 q# d- ^; z( S" U# C& D rh-php72-php-zip    x86_64 7.2.10-3.el7 centos-sclo-rh                     90 k
& S. `; s9 p* P: ^1 ~" o rh-php72-runtime    x86_64 1-2.el7      centos-sclo-rh                    1.1 M
; w6 r. i4 h0 O3 @- ]! h+ ^/ a; e# G; n
Transaction Summary# F9 W8 G" |4 O4 z( g3 o8 h
=================================================================================5 u4 V  P/ I- L! N% r6 Q' ?* V
Install  1 Package (+3 Dependent packages)* U: h5 W* b6 e8 I$ j" T
. C7 X! D# a" X
Total size: 1.9 M
$ j' u2 ]2 g$ e9 G6 k- tTotal download size: 1.9 M( [2 Q2 E: Q# F6 s
Installed size: 6.4 M
; }% Q! X) K: VDownloading packages:
$ ?+ L5 E) E% p3 O& b  Z(1/3): rh-php72-php-zip-7.2.10-3.el7.x86_64.rpm           |  90 kB  00:00:00     4 P( t' F7 c. v; h; y1 W# W! {
(2/3): rh-php72-php-common-7.2.10-3.el7.x86_64.rpm        | 672 kB  00:00:00     
) I8 ]( J  {; ?5 S# p  e% a' I(3/3): rh-php72-runtime-1-2.el7.x86_64.rpm                | 1.1 MB  00:00:00       z. ?4 i. [6 H
---------------------------------------------------------------------------------
) c1 D1 E: h0 e, gTotal                                               3.9 MB/s | 1.9 MB  00:00     
. F! Z% A3 N. R3 }+ LRunning transaction check8 a$ T2 g7 H( w) Y3 t1 K4 O* O
Running transaction test5 h1 V$ O1 U. l" K
Transaction test succeeded. S- k4 o* s) F: }. x( Y0 i
Running transaction
5 t  g7 z# N6 [9 P6 D2 d. p3 x2 l  Installing : rh-php72-runtime-1-2.el7.x86_64                               1/4
4 @0 y2 B* C8 \9 m; ^! G  Installing : rh-php72-php-zip-7.2.10-3.el7.x86_64                          2/4 5 k! ~& I$ M; f* e
  Installing : rh-php72-php-common-7.2.10-3.el7.x86_64                       3/4 & e. M3 T2 ^3 D3 e+ F/ H$ N

, \6 c; A% A2 ~8 VInstalling : rh-php72-php-json-7.2.10-3.el7.x86_64                         4/4 0 L2 A( T: d$ C( X
  Verifying  : rh-php72-php-json-7.2.10-3.el7.x86_64                         1/4 ! R$ l+ }2 U+ `- r
  Verifying  : rh-php72-php-zip-7.2.10-3.el7.x86_64                          2/4 0 w, Z( s+ _( y) A/ [2 q
  Verifying  : rh-php72-php-common-7.2.10-3.el7.x86_64                       3/4
5 Y" \" P. V! d8 }  Verifying  : rh-php72-runtime-1-2.el7.x86_64                               4/4
# E$ _3 k* C5 M4 \: ?1 ^. J4 s) k9 j& G! R3 f# O$ V
Installed:5 _% @0 K# T6 Y! H$ t
  rh-php72-php-json.x86_64 0:7.2.10-3.el7                                       
/ t' n1 ]$ |0 r/ g3 a, t! r! |6 t8 _$ F6 H5 e4 S" j/ J" F. l
Dependency Installed:0 o( K, v7 H! D& |
  rh-php72-php-common.x86_64 0:7.2.10-3.el7                                      
+ n  M, `3 p/ L9 @6 U& z, h" {  rh-php72-php-zip.x86_64 0:7.2.10-3.el7                                         8 @( b, H# n4 q
  rh-php72-runtime.x86_64 0:1-2.el7                                              * P7 n5 U, W6 M7 H8 V
  P" V) r4 A+ b  z
Complete!
1 M! b0 s5 S' `
% A# H3 Y8 g( D% x0 q4 _& ?, A
/ {. @: F% m* z9 i$ N* p7 a, c/ e
  k% d9 D# Y% e& J6 x+ f5 |) ^# V# V' l* d0 e- c3 J3 V! ~3 Q! g
8 W7 k/ U! k$ ^* c2 N/ @

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-10-25 11:04:53 | 显示全部楼层
[root@centos7-9 ~]# systemctl stop  rh-php71-php-fpm.service: M1 A+ D. X% U! b$ I

7 t, a; C3 J1 I* ^# l[root@centos7-9 ~]# systemctl stop  rh-php73-php-fpm.service
1 R9 s% c2 R* I4 P% T9 D+ C[root@centos7-9 ~]# systemctl start  rh-php73-php-fpm.service
2 e4 t8 J5 ?) C& V[root@centos7-9 ~]# systemctl status  rh-php73-php-fpm.service
" b3 _% E9 H( \% k● rh-php73-php-fpm.service - The PHP FastCGI Process Manager
4 }# `( f* Q- w6 r( V1 b5 V* N   Loaded: loaded (/usr/lib/systemd/system/rh-php73-php-fpm.service; disabled; vendor preset: disabled)
: \- D- s9 J& D' [" h3 y   Active: active (running) since Tue 2022-10-25 10:45:42 CST; 5s ago
2 c9 k' W/ o5 h Main PID: 3550 (php-fpm)& c" @# W  b! \; K# E) e3 V& B# Y
   Status: "Ready to handle connections"/ P& x! J* [$ H2 o. g( ?  q8 ]4 y
   CGroup: /system.slice/rh-php73-php-fpm.service
0 }) @6 ]$ X- K, O           ├─3550 php-fpm: master process (/etc/opt/rh/rh-php73/php-fpm.conf)- U  f- |; _/ a% m2 H
           ├─3551 php-fpm: pool www
8 E6 E% ]1 s0 V! ]           ├─3552 php-fpm: pool www: G+ }1 a. t: [  j+ b+ |
           ├─3553 php-fpm: pool www
6 C0 w, h! A3 s           ├─3554 php-fpm: pool www- y, [) k2 s& K3 E' q; ?/ t
           └─3555 php-fpm: pool www
# D8 U5 N. c/ P  j1 G! v" C7 s4 I" T
! ~* C# u5 n+ n: B1 N& QOct 25 10:45:42 centos7-9.novalocal systemd[1]: Starting The PHP FastCGI Proc....
# ~6 q* W8 R9 o$ A, ?( |Oct 25 10:45:42 centos7-9.novalocal systemd[1]: Started The PHP FastCGI Proce....3 K: S/ n0 Z! q- M# @4 d# t8 K* A
Hint: Some lines were ellipsized, use -l to show in full.
& v& k7 V! R3 `+ w( f6 |1 ~0 U[root@centos7-9 ~]# systemctl disable  rh-php71-php-fpm.service5 q+ P1 K% L( J- J
Removed symlink /etc/systemd/system/multi-user.target.wants/rh-php71-php-fpm.service.
# [, y! C: ]- [4 V+ M  Z) O- z
! B: Z7 w# e7 ~# e) G
) z$ K$ e$ f" U, d, `3 X5 }[root@centos7-9 ~]# systemctl enable  rh-php73-php-fpm.service 4 q5 q7 M) [. R( p# v- q9 [
Created symlink from /etc/systemd/system/multi-user.target.wants/rh-php73-php-fpm.service to /usr/lib/systemd/system/rh-php73-php-fpm.service.
5 N3 w1 A& ~! }6 p" k8 |+ W8 `- n! X7 A
问题解决:
9 Z  ]  L7 c  Q! R( W& a
. M8 @1 P) B, J% _+ Z$ F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:06 , Processed in 0.016439 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表