将前叉更改为工人的问题

问题描述 投票:0回答:1

Apache / 2.4.25,PHP 7.3.17问候语我希望从prefork更改为worker,并按照以下步骤操作:

a2dismod php7.3
systemctl restart apache2
a2dismod mpm_prefork
a2enmod mpm_worker
systemctl restart apache2
a2enmod php7.3

在上述最后一步之后,我得到了错误:

Considering dependency mpm_prefork for php7.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
ERROR: Module mpm_worker is enabled - cannot proceed due to conflicts. It needs to be disabled first!
ERROR: Could not enable dependency mpm_prefork for php7.3, aborting

我该怎么做才能使工人工作?

apache2
1个回答
0
投票
您必须安装其他替代程序,例如PHP-FPM。

要安装PHP-FPM,请执行以下操作:

a2dismod php7.3 a2dismod mpm_prefork a2enmod mpm_worker systemctl restart apache2 apt install php-fpm -y a2enmod proxy_fcgi setenvif a2enconf php7.3-fpm systemctl start php7.3-fpm systemctl restart apache2

© www.soinside.com 2019 - 2024. All rights reserved.