求各位帮忙看看 centos 的 docker 中安装 apache,在配置文件中添加 PHP .ini 后启动失败

查看 48|回复 1
作者:harrietliu   
在 centos7 中安装了 docker ,想要配置 owncloud ,但由于宿主机的 php 版本是 8.2.1 ,owncloud 不支持 php 大于 7.5 ,并且宿主机上依赖 php 运行了一些服务,因此想在 docker 中安装低版本的 php
docker 中 php 版本是 7.3.33 ,当我在 apache 配置文件 httpd.conf 中加上 PHPIniDir /etc/opt/remi/php73/php.ini 后,httpd 就启动失败了,error log 如下
[Wed Feb 21 06:41:53.418770 2024] [:error] [pid 296] AH00000: sd_notifyf returned an error -4
[Wed Feb 21 06:41:54.420020 2024] [mpm_prefork:notice] [pid 296] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 21 07:08:36.527866 2024] [suexec:notice] [pid 739] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Wed Feb 21 07:08:36.539063 2024] [lbmethod_heartbeat:notice] [pid 739] AH02282: No slotmem from mod_heartmonitor
[Wed Feb 21 07:08:36.544309 2024] [mpm_prefork:notice] [pid 739] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Wed Feb 21 07:08:36.544373 2024] [core:notice] [pid 739] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
我不懂 php ,但是无奈要部署 php 项目,求各位能帮忙看看

PHP, Wed, Feb, pid

harrietliu
OP
  
docker 中的 php 是通过 REMI 源安装的
您需要登录后才可以回帖 登录 | 立即注册

返回顶部