Discover Centmin Mod today
Register Now

PHP-FPM Disable PHP

Discussion in 'Install & Upgrades or Pre-Install Questions' started by BamaStangGuy, Jan 4, 2020.

  1. BamaStangGuy

    BamaStangGuy Premium Member Premium Member

    650
    188
    43
    May 25, 2014
    Ratings:
    +263
    Local Time:
    11:36 AM
    I have one server that simply redirects domains and has no need for PHP. What is the best way to completely disable PHP so that nginx never handles any PHP requests?
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,744
    10,201
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,810
    Local Time:
    2:36 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Just stop PHP-FPM service

    for centos 6
    Code (Text):
    service php-fpm stop
    chkconfig php-fpm off
    

    for centos 7
    Code (Text):
    systemctl stop php-fpm
    systemctl disable php-fpm