简体   繁体   English

尽管安装成功,但Apache未使用PHP5-FPM

[英]Apache not using PHP5-FPM despite successful installation

I managed to successfully install php5-fpm 我设法成功安装了php5-fpm

xxx@xxx:/etc/apache2/conf-available$ a2enmod actions fastcgi alias 
Module actions already enabled
Module fastcgi already enabled
Module alias already enabled
xxx@xxx:/etc/apache2/conf-available$ a2enconf php5-fpm 
Conf php5-fpm already enabled

However, despite having successfully install php5-fpm and enabled it, phpinfo() shows that i am still using Apache 2.0 Handler as its SAPI. 但是,尽管已经成功安装了php5-fpm并启用了它,但phpinfo()表明我仍在使用Apache 2.0 Handler作为其SAPI。

Any ideas as why is this happening ? 有什么想法为什么会这样?

Cheers... 干杯...

Apache has a module called PHP5 . Apache有一个名为PHP5的模块。 Should you need to use php-fpm, you will need to disable that module and restart apache. 如果需要使用php-fpm,则需要禁用该模块并重新启动apache。 Example

a2dismod php5
service apache2 restart

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM