VPS侦探论坛

 找回密码
 注册
查看: 2408|回复: 4

OpenEuler 22.03 LTS 安装后php无法启动

[复制链接]
发表于 2022-9-15 10:31:37 | 显示全部楼层 |阅读模式

本帖最后由 ctaimm 于 2022-9-15 10:39 编辑


[root@localhost ~]# cat /etc/os-release
NAME="openEuler"
VERSION="22.03 LTS"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 LTS"
ANSI_COLOR="0;31"


Synchronizing state of php-fpm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable php-fpm
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.





https://t.wss.ink/f/9al2c77s0qv 复制链接到浏览器打开
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-9-15 10:45:20 | 显示全部楼层


root@localhost ~]# systemctl status php-fpm
× php-fpm.service - The PHP FastCGI Process Manager
     Loaded: loaded (/etc/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2022-09-15 10:43:51 CST; 2s ago
    Process: 2305 ExecStart=/usr/local/php/sbin/php-fpm --nodaemonize --fpm-config /usr/local/php/etc/php-fpm.conf (code=exited, status=203/EXEC)
   Main PID: 2305 (code=exited, status=203/EXEC)

Sep 15 10:43:51 localhost.localdomain systemd[1]: Started The PHP FastCGI Process Manager.
Sep 15 10:43:51 localhost.localdomain systemd[1]: php-fpm.service: Main process exited, code=exited, status=203/EXEC
Sep 15 10:43:51 localhost.localdomain systemd[1]: php-fpm.service: Failed with result 'exit-code'.
[root@localhost ~]#
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-9-15 11:45:57 | 显示全部楼层

[root@localhost usr]# yum install gcclibxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 bzip2-devel.x86_64 libXpm-devel gmp-devel  icu libicu libicu-devel php-mcrypt  libmcrypt  libmcrypt-devel postgresql-devel libxslt-devel libjpeg-devel -y
Last metadata expiration check: 0:14:55 ago on Thu 15 Sep 2022 11:27:00 AM CST.
No match for argument: gcclibxml2
Package libxml2-devel-2.9.12-10.oe2203.x86_64 is already installed.
Package openssl-1:1.1.1m-8.oe2203.x86_64 is already installed.
Package openssl-devel-1:1.1.1m-8.oe2203.x86_64 is already installed.
Package libcurl-devel-7.79.1-10.oe2203.x86_64 is already installed.
No match for argument: libjpeg.x86_64
Package libpng-2:1.6.37-3.oe2203.x86_64 is already installed.
Package freetype-2.11.0-2.oe2203.x86_64 is already installed.
No match for argument: libjpeg-devel.x86_64
Package libpng-devel-2:1.6.37-3.oe2203.x86_64 is already installed.
Package freetype-devel-2.11.0-2.oe2203.x86_64 is already installed.
Package bzip2-devel-1.0.8-4.oe2203.x86_64 is already installed.
Package libXpm-devel-3.5.13-1.oe2203.x86_64 is already installed.
Package gmp-devel-1:6.2.1-1.oe2203.x86_64 is already installed.
Package libicu-69.1-2.oe2203.x86_64 is already installed.
Package libicu-devel-69.1-2.oe2203.x86_64 is already installed.
No match for argument: php-mcrypt
No match for argument: libmcrypt
No match for argument: libmcrypt-devel
Package libxslt-devel-1.1.34-7.oe2203.x86_64 is already installed.
Package libjpeg-turbo-devel-2.1.1-2.oe2203.x86_64 is already installed.
Error: Unable to find a match: gcclibxml2 libjpeg.x86_64 libjpeg-devel.x86_64 php-mcrypt libmcrypt libmcrypt-devel
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-9-15 17:47:55 | 显示全部楼层



已更换镜像解决https://www.openeuler.org/zh/download/中的openEuler 20.03 LTS SP3 可以部署
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2022-9-15 19:41:18 | 显示全部楼层

Error: PHP install failed.
PHP没有安装成功,都没安装成功也就无法启动
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /root/lnmp1.9/src/php-7.1.33/modules
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=compile cc  -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/root/lnmp1.9/src/php-7.1.33/ext/intl/ -DPHP_ATOM_INC -I/root/lnmp1.9/src/php-7.1.33/include -I/root/lnmp1.9/src/php-7.1.33/main -I/root/lnmp1.9/src/php-7.1.33 -I/root/lnmp1.9/src/php-7.1.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/oniguruma -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.9/src/php-7.1.33/ext/sqlite3/libsqlite -I/root/lnmp1.9/src/php-7.1.33/ext/zip/lib -I/root/lnmp1.9/src/php-7.1.33/TSRM -I/root/lnmp1.9/src/php-7.1.33/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: error: ‘TRUE’ undeclared (first use in this function)
  349 |  collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: note: each undeclared identifier is reported only once for each function it appears in
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:543:26: error: ‘FALSE’ undeclared (first use in this function)
  543 |  collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~~
make: *** [Makefile:1074: ext/intl/collator/collator_sort.lo] Error 1
/bin/sh /root/lnmp1.9/src/php-7.1.33/libtool --silent --preserve-dup-deps --mode=compile cc  -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/root/lnmp1.9/src/php-7.1.33/ext/intl/ -DPHP_ATOM_INC -I/root/lnmp1.9/src/php-7.1.33/include -I/root/lnmp1.9/src/php-7.1.33/main -I/root/lnmp1.9/src/php-7.1.33 -I/root/lnmp1.9/src/php-7.1.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/oniguruma -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl -I/root/lnmp1.9/src/php-7.1.33/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.9/src/php-7.1.33/ext/sqlite3/libsqlite -I/root/lnmp1.9/src/php-7.1.33/ext/zip/lib -I/root/lnmp1.9/src/php-7.1.33/TSRM -I/root/lnmp1.9/src/php-7.1.33/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c -o ext/intl/collator/collator_sort.lo
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_sort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: error: ‘TRUE’ undeclared (first use in this function)
  349 |  collator_sort_internal( TRUE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:349:26: note: each undeclared identifier is reported only once for each function it appears in
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c: In function ‘zif_collator_asort’:
/root/lnmp1.9/src/php-7.1.33/ext/intl/collator/collator_sort.c:543:26: error: ‘FALSE’ undeclared (first use in this function)
  543 |  collator_sort_internal( FALSE, INTERNAL_FUNCTION_PARAM_PASSTHRU );
      |                          ^~~~~
make: *** [Makefile:1074: ext/intl/collator/collator_sort.lo] Error 1

php 7.1、7.2与icu的兼容性问题,这种早就停止支持了的php版本没啥办法,php 7.3和7.4应该可以直接安装,可以执行:
export CXX="g++ -DTRUE=1 -DFALSE=0"
export CC="gcc -DTRUE=1 -DFALSE=0"
后,再进行lnmp安装

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-5 18:38 , Processed in 0.027322 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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