Learn about Centmin Mod LEMP Stack today
Register Now

How to completely disable Nginx, PHP-FPM, and Mysql?

Discussion in 'Centmin Mod Insights' started by RoldanLT, Jul 26, 2015.

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    3:09 AM
    1.11
    10.2
    Is this command enough?


    On CentOS 7.1 64 Bit Linode.
    Thanks :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,862
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,397
    Local Time:
    5:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    For Centmin Mod it's all or nothing only. However, you can enable some settings in centmin.sh to disable services after they are initially installed though on fresh centmin mod installs. In centmin.sh set these variables to = y before initial Centmin Mod install

    change from
    Code:
    # When set to =y, will disable those listed installed services
    # by default. The service is still installed but disabled
    # by default and can be re-enabled with commands:
    # service servicename start; chkconfig servicename on
    NSD_DISABLED=n # when set to =y, NSD disabled by default with chkconfig off
    MEMCACHED_DISABLED=n # when set to =y, Memcached server disabled by default via chkconfig off
    PHP_DISABLED=n # when set to =y, PHP-FPM disabled by default with chkconfig off
    MYSQLSERVICE_DISABLED=n # when set to =y, MariaDB MySQL service disabled by default with chkconfig off
    PUREFTPD_DISABLED=n # when set to =y, Pure-ftpd service disabled by default with chkconfig off
    to
    Code:
    # When set to =y, will disable those listed installed services
    # by default. The service is still installed but disabled
    # by default and can be re-enabled with commands:
    # service servicename start; chkconfig servicename on
    NSD_DISABLED=y # when set to =y, NSD disabled by default with chkconfig off
    MEMCACHED_DISABLED=y # when set to =y, Memcached server disabled by default via chkconfig off
    PHP_DISABLED=y # when set to =y, PHP-FPM disabled by default with chkconfig off
    MYSQLSERVICE_DISABLED=y # when set to =y, MariaDB MySQL service disabled by default with chkconfig off
    PUREFTPD_DISABLED=y # when set to =y, Pure-ftpd service disabled by default with chkconfig off
    This will stop and disable NSD, Memcached server, PHP-FPM, MariaDB MySQL and Pure-FTPD services.

    so for post-install disable, php-fpm, mysql, memcached, nsd services should be stopped and pure-ftpd service too if you don't need it
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    3:09 AM
    1.11
    10.2
    Yes, I already did that.
    But sometimes I need nginx/php-fpm running also so that I can access phpmyadmin and some cache management php file.
    Then disable after I'm done.