Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM Disable PHP

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    669
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    12:37 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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:37 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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