{"id":2964,"date":"2025-09-16T09:51:27","date_gmt":"2025-09-16T09:51:27","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=2964"},"modified":"2025-09-16T09:51:29","modified_gmt":"2025-09-16T09:51:29","slug":"changing-a-cpanel-account-package-via-whm-api","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/","title":{"rendered":"Changing a cPanel Account Package via WHM API"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>In WHM\/cPanel, each hosting account is assigned a package that defines its resource limits (such as disk space, bandwidth, number of domains, etc.).<br>There are cases where you may need to change the package of an existing account (e.g., upgrading from a starter plan to a higher plan).<\/p>\n\n\n\n<p>This document outlines the procedure to switch a cPanel account to a different package using the <strong>WHM API<\/strong> and verify the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before proceeding, ensure the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Root\/SSH Access<br>You must have SSH access to the WHM server with root privileges.<\/li>\n\n\n\n<li>WHM API Availability<br>The server should have WHM API (<code>whmapi1<\/code>) installed and accessible. This is usually available by default on cPanel\/WHM servers.<\/li>\n\n\n\n<li>Target Package Exists<br>The package you want to assign (e.g., <code>L-Starter<\/code>) must already be created in WHM under Packages<strong> \u2192 <\/strong>Add a Package.<\/li>\n\n\n\n<li>Username of the cPanel Account<br>You must know the exact cPanel account username to be updated.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Change the Package<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Run the WHM API command<\/h3>\n\n\n\n<p>Use the following command to change the package of the user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <span style=\"color: initial;font-family: inherit;font-size: inherit;text-align: initial\">whmapi1 --output=jsonpretty changepackage user='&lt;username&gt;' pkg='L-Starter'<\/span><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace <code>&lt;username&gt;<\/code> with the actual cPanel username.<\/li>\n\n\n\n<li>Replace <code>L-Starter<\/code> with the desired package name.<\/li>\n\n\n\n<li>The <code>--output=jsonpretty<\/code> option displays the response in a structured format for better readability.<\/li>\n<\/ul>\n\n\n\n<p>If successful, you should see a JSON output indicating the package update.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Verify the Package Assignment<\/h3>\n\n\n\n<p>Run the following command to confirm that the package was updated:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ grep ^PLAN \/var\/cpanel\/users\/&lt;username&gt;\n<\/code><\/pre>\n\n\n\n<p>Expected output (example):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PLAN=L-Starter\n<\/code><\/pre>\n\n\n\n<p>This confirms that the user is now assigned to the <code>L-Starter<\/code> package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>By using the WHM API (<code>whmapi1<\/code>) command, you can efficiently change the package of any cPanel account without manually navigating through the WHM interface.<br>Verification via the <code>\/var\/cpanel\/users\/&lt;username&gt;<\/code> file ensures that the changes have been applied correctly.<\/p>\n\n\n\n<p>This method is especially useful for administrators who manage multiple accounts and want to automate package changes via scripts or provisioning workflows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In WHM\/cPanel, each hosting account is assigned a package that defines its resource limits (such as disk space, bandwidth, number of domains, etc.).There are cases where you may need to change the package of an existing account (e.g., upgrading from a starter plan to a higher plan). This document outlines the procedure to switch ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2964","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction In WHM\/cPanel, each hosting account is assigned a package that defines its resource limits (such as disk space, bandwidth, number of domains, etc.).There are cases where you may need to change the package of an existing account (e.g., upgrading from a starter plan to a higher plan). This document outlines the procedure to switch ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-16T09:51:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-16T09:51:29+00:00\" \/>\n<meta name=\"author\" content=\"srisanthosh s\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"srisanthosh s\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/\"},\"author\":{\"name\":\"srisanthosh s\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/070895e04bc57565b04d6106e4da129c\"},\"headline\":\"Changing a cPanel Account Package via WHM API\",\"datePublished\":\"2025-09-16T09:51:27+00:00\",\"dateModified\":\"2025-09-16T09:51:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/\"},\"wordCount\":304,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/\",\"name\":\"Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2025-09-16T09:51:27+00:00\",\"dateModified\":\"2025-09-16T09:51:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/070895e04bc57565b04d6106e4da129c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/09\\\/16\\\/changing-a-cpanel-account-package-via-whm-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing a cPanel Account Package via WHM API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/070895e04bc57565b04d6106e4da129c\",\"name\":\"srisanthosh s\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g\",\"caption\":\"srisanthosh s\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/srisanthosh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/","og_locale":"en_US","og_type":"article","og_title":"Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base","og_description":"Introduction In WHM\/cPanel, each hosting account is assigned a package that defines its resource limits (such as disk space, bandwidth, number of domains, etc.).There are cases where you may need to change the package of an existing account (e.g., upgrading from a starter plan to a higher plan). This document outlines the procedure to switch ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2025-09-16T09:51:27+00:00","article_modified_time":"2025-09-16T09:51:29+00:00","author":"srisanthosh s","twitter_card":"summary_large_image","twitter_misc":{"Written by":"srisanthosh s","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/"},"author":{"name":"srisanthosh s","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/070895e04bc57565b04d6106e4da129c"},"headline":"Changing a cPanel Account Package via WHM API","datePublished":"2025-09-16T09:51:27+00:00","dateModified":"2025-09-16T09:51:29+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/"},"wordCount":304,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/","name":"Changing a cPanel Account Package via WHM API - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2025-09-16T09:51:27+00:00","dateModified":"2025-09-16T09:51:29+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/070895e04bc57565b04d6106e4da129c"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/09\/16\/changing-a-cpanel-account-package-via-whm-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Changing a cPanel Account Package via WHM API"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/070895e04bc57565b04d6106e4da129c","name":"srisanthosh s","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6aaff236b178a614b2cfa9b0388af65e26cb08bb19608a622574904d2765036d?s=96&d=mm&r=g","caption":"srisanthosh s"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/srisanthosh\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2964"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2964\/revisions"}],"predecessor-version":[{"id":2966,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2964\/revisions\/2966"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}