The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Avoiding services to be installed

Discussion in 'General Discussion' started by Silent Ninja, May 28, 2014.

  1. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Buenos Aires, Argentina
    Hi, I'm deploying a new clustered base cPanel that would work like this...

    - Server 1: cPanel with HTTP + FTP
    - Server 2: Postfix and Dovecot
    - Server 3: MySQL
    - Server 4-5: cPanel DNSONLY

    I can handle the installation and I don't need support for MySQL, Postfix and Dovecot... but I want some help in what would be the best way (or the right way) to install cPanel with Only the HTTP Service.

    I know that I can disable services with these /etc/ files like you do on the DNSONLY servers...
    Code:
    /etc/apachedisable
    /etc/cpdavddisable
    /etc/cppopdisable
    /etc/dnsadmindisable
    /etc/entropychatdisable
    /etc/ftpddisable
    /etc/ftpupdisable
    /etc/imapdisable
    /etc/interchangedisable
    /etc/melangedisable
    /etc/proftpddisable
    /etc/spamddisable
    /etc/spamdisable
    But I don't know if there's more of these (ie hordedisable, webmaildisable eximdisable) that I can use, and what exactly does each one of them (for instance there's spamdisable and spamddisable; also ftpupdisable and ftpddisable).

    I also know that I can disable most of these services on the Service Monitor, but since they're installed anyways, they eat a lot of disk space and still can be exploited or accessed if, for some reason, the init.d file is executed.

    I want the cPanel Server to have ONLY PureFTP and Apache+PHP (no Ruby or CGI or anything other than that), NO MySQL (thus no cpHulk and Eximstats), and NO Email support at all (Exim, Roundcube, Horde, Squirremail, Dovecot).

    What would be the best way to remove those services that is consistent with future updates? (so those services are never installed)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can configure some of the services as "Disabled" via:

    "WHM Home » Service Configuration"

    Beyond that, you can set certain RPMs as "uninstalled" so they are not managed through cPanel. There is a document on this at:

    RPM Cookbook

    Thank you.
     
  3. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Buenos Aires, Argentina
    Wow, the RPM Cookbook is an awesome feature!

    Do you know where can I find the list of targets to check which ones I need?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Buenos Aires, Argentina
    That's the file I was looking for.

    Only as a sidenote, I've noticed that it says on the target_settings list...

    MySQL51: uninstalled
    MySQL55: uninstalled
    MySQL56: uninstalled

    However MySQL 5.5 is installed... could cPanel be overriding this setting or simply not updating the file?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Buenos Aires, Argentina
    Nope, this are the contents of that file...

    Code:
    --- 
    file_format: 
      version: 2
    install_targets: {}
    
    rpm_locations: {}
    
    srpm_sub_packages: {}
    
    srpm_versions: {}
    
    target_settings: 
      easy-tomcat7: uninstalled
      munin: installed
    url_templates: {}
    In case you want to check, here's the contents for the rpm.versions file: http://pastebin.com/7dyKizgn

    It seems that MySQL is being installed by some other dependence like horde or roundcube, but it's not being checked on this list. On the cpanel.config file it is checked:

    Code:
    cat /var/cpanel/cpanel.config | grep -i mysql
    
    mysql-host=localhost
    usemysqloldpass=0
    mysqldebug=0
    mysql-version=5.5
    roundcube_db=mysql
    Do you want me to create a ticket to check this more appropriately?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you trying to ensure MySQL is not managed or updated with cPanel? If so, simply run:

    Code:
    /scripts/update_local_rpm_versions --edit target_settings.MySQL55 uninstalled
    Thank you.
     
Loading...

Share This Page