Avoiding services to be installed
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...
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)
/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/spamdisableBut 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)
-
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. 0 -
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? 0 -
Yes, I believe this is the file you are looking for: /usr/local/cpanel/etc/rpm.versions
Thanks.0 -
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? 0 -
You should see the installed MySQL version listed in: /var/cpanel/rpm.versions.d/local.versions
This document is also helpful: How to Customize and Override the rpm.versions System Thank you.0 -
Nope, this are the contents of that file... --- 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:0 -
Are you trying to ensure MySQL is not managed or updated with cPanel? If so, simply run: /scripts/update_local_rpm_versions --edit target_settings.MySQL55 uninstalled
Thank you.0
Please sign in to leave a comment.
Comments
7 comments