我是配置Apache的新手,并且正在尝试优化我的Apache服务器。通读文档,我发现我应该使用Event MPM而不是Prefork MPM。到目前为止,一切都非常简单,因为我只需要在00-mpm.conf中注释掉Prefork和uncomment Event 。但是,当我重新启动Apache时,出现以下错误-
AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
挖掘更多信息,我发现mod_php不应与Event一起使用。所以,我注释掉php_value在php.conf也注释掉的LoadModule在10 php.conf。
我的网页无法再加载了,我意识到我应该使用php-fpm。但是,关于此的文档确实不清楚,我不确定如何使用它。我试过了-
[root@ip-xxx-xx-xx-xxx ~]# yum install php-fpm
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package php70w-fpm.x86_64 0:7.0.4-1.w7 will be installed
--> Processing Dependency: php70w-common(x86-64) = 7.0.4-1.w7 for package: php70w-fpm-7.0.4-1.w7.x86_64
--> Running transaction check
---> Package php70w-common.x86_64 0:7.0.4-1.w7 will be installed
--> Processing Conflict: php70w-common-7.0.4-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我不确定该如何进行,非常感谢您提供有关此问题的帮助。谢谢!
您将需要删除当前安装的php,并且php-common将作为依赖项被卸载。
我可以确认已经完成此操作,并发现当我卸载php时,也删除了许多相关的软件包,因此您需要添加各种插件的相关php70w版本(例如php70w-fpm,php70w-mysql,等等)
我还发现roundcube已卸载,但是由于我拥有PHP 7,因此我现在正计划安装此版本的最新版本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句