0

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?

2 Answers 2

2

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.

1
0

remove module loading at apache configuration and restart apache.

2
  • 1
    Please share more details
    – Wolf
    Nov 1, 2020 at 15:24
  • comment out php related configuration in httpd.conf "LoadModule php7_module modules/mod_php.so"
    – T D S
    Nov 1, 2020 at 15:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .