Press "Enter" to skip to content

cPanel: Disabling cPanel Store Promotions

A few people have got a bit annoyed at the promotions/advertisements within their WHM webhosting control panel as developed by cPanel Inc (specifically, I saw the feature request “give server admins a way to turn off spam ads“).

Whilst cPanel partners (i.e. whoever your brought your cPanel licence from – usually your datacenter or web hosting provider) have the ability to toggle these cPanel Store Purchases from their cPanel Inc “manage2” interface, there is a way of disabling it yourself by “abusing” the internal testing code built into cPanel (specifically /usr/local/cpanel/Cpanel/Config/Sources.pm which is called by /usr/local/cpanel/Cpanel/Whostmgr/Store.pm which, in turn, is called by /usr/local/cpanel/Whostmgr/Store/Product/ImunifyAVPlus.pm ):

1. Create a file (as root) called /etc/cpsources.conf

2. In that file add the following line:

STORE_SERVER_URL=https://invalid.example.com/

(or any non-resolvable URL you like)

WHM/cPanel will then be unable to fetch the list of available products and will fall back to not promoting them.

One Comment

  1. Kostya S Kostya S

    This killed my AutoSSL, apparently this hack is too brutal.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.