How to change cPanel theme via command line

Changing theme for your cPanel account is simple via frondend. There is an option in the cPanel itself to change the theme. But, is it possible via commandline? Yes, if you have root access to server, cPanel theme can be updated via command line. It’s also very simple to change the theme via commandline. Please do follow the steps mentioned below to change the theme via commandline.

Log into the server as root.

To change the cPanel theme server-wide (for all users)

# replace RS=old_theme RS=new_theme --/var/cpanel/users/*

This will help you to change the theme of all cPanel users.

To change the theme only for one account

For a cPanel account, you can change the theme from this file “/var/cpanel/users/Username“.

# cd /var/cpanel/users

Open the file with cPanel username and change RS field with the new theme name which you want.

# vi username
Replace the "RS=" line with your new theme.

That’s it!!!

How to change the cPanel theme from frondend?

It’s simple to change the theme from frondend panel. There is an option into the panel to switch the theme.



1, Important cPanel service’s configuration file, path, service name, port – Command line view
2, How to change cpanel port through command line
3, How to enable Varnish in cPanel server
4, How to check the version of your WHM/cPanel from command line ?
5, How to get a list of total cPanel users under a specific re-seller via command line
6, How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option
7, How to rebuild the “httpd conf” file in cPanel server – Command-line option
8, How to change ftp port – cpanel
9, How to change cpanel account password from command line
10, How to remove parked domain through command line – cpanel

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

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