Join the community today
Become a Member

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

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

Tags:
  1. rdan

    rdan Well-Known Member

    5,450
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    1:56 PM
    Mainline
    10.2
    Is this command enough?


    On CentOS 7.1 64 Bit Linode.
    Thanks :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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. rdan

    rdan Well-Known Member

    5,450
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    1:56 PM
    Mainline
    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.