Ich bin neu bei der Konfiguration von Apache und versuche, meinen Apache-Server zu optimieren. Lesen der Dokumentation, ich fand, dass ich die Event MPM anstelle der Prefork MPM verwenden sollte. Alles war einfach bis zu diesem Punkt, da ich Prefork nur auskommentieren und das Event in 00-mpm.conf auskommentieren musste. Allerdings, wenn ich Apache neu gestartet, ich folgende Fehlermeldung bekam -Wie benutze ich php-fpm auf RHEL 7.2?
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
für einige weitere Informationen Graben, fand ich heraus, dass Mod_php nicht mit Ereignis verwendet werden soll. Also, ich bin auf Kommentar php_value in php.conf und auch LoadModule- in 10-php.conf Kommentar gesetzt.
Meine Webseiten würden nicht mehr laden und ich erkannte, dass ich php-fpm verwenden sollte. Die Dokumentation darüber ist jedoch sehr unklar und ich bin mir nicht sicher, wie ich sie verwenden soll. Ich habe versucht, diese -
[[email protected] ~]# 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
Ich bin nicht sicher, wie es weitergehen und wirklich jede Hilfe bei diesem Problem schätzen würde. Vielen Dank!