Wolf Asked: 2020-11-02 00:07:47 +0800 CST2020-11-02 00:07:47 +0800 CST 2020-11-02 00:07:47 +0800 CST How to stop PHP service without stoping web-server service? 772 PHP can be stop by stopping the web-server service. e.g. # /etc/init.d/apache2 stop or # apache2ctl stop Would it be possible to stop PHP alone without disrupting apache2 service? linux ubuntu php apache2 2 Answers Voted Gerald Schneider 2020-11-02T00:26:36+08:002020-11-02T00:26:36+08:00 When PHP is running as a standalone service, php-fpm, you can stop it separately. When PHP is running as an Apache module, you can't. T D S 2020-11-02T06:26:20+08:002020-11-02T06:26:20+08:00 remove module loading at apache configuration and restart apache.
When PHP is running as a standalone service,
php-fpm
, you can stop it separately.When PHP is running as an Apache module, you can't.
remove module loading at apache configuration and restart apache.