Do you still use PHP 5 for your web application and want to stop PHP 5 after running the service? Run the following command to stop PHP5-FPM in your Ubuntu server.
$ sudo service php5-fpm stop
If your server using Ubuntu version 16+ or Debian 8+
$ sudo systemctl start php5-fpm.stop