Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    196
    Likes Received:
    0
    Trophy Points:
    166
    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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, I believe this is the file you are looking for:

    Code:
    /usr/local/cpanel/etc/rpm.versions
    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Silent Ninja

    Silent Ninja Well-Known Member

    Joined:
    Apr 18, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice