{"id":3867,"date":"2026-06-22T15:04:33","date_gmt":"2026-06-22T15:04:33","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=3867"},"modified":"2026-06-22T15:04:36","modified_gmt":"2026-06-22T15:04:36","slug":"easyapache-4-profile-backup-using-cli","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/","title":{"rendered":"EasyApache 4 Profile Backup Using CLI"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>EasyApache 4 is used in cPanel\/WHM servers to manage Apache, PHP versions, PHP extensions, and related web server packages. Before making any EasyApache 4 changes, upgrades, PHP version modifications, or package updates, it is recommended to take a backup of the current EasyApache 4 profile.<\/p>\n\n\n\n<p>This backup helps us keep a record of the currently installed EasyApache 4 packages and allows us to reuse the same configuration if required later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before taking the EasyApache 4 profile backup, ensure the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Root SSH access to the cPanel\/WHM server.<\/li>\n\n\n\n<li>EasyApache 4 must be installed and active on the server.<\/li>\n\n\n\n<li>Sufficient permission to execute cPanel system commands.<\/li>\n\n\n\n<li>Basic knowledge of Linux CLI commands.<\/li>\n\n\n\n<li>Enough disk space to store the exported JSON profile file.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Take EasyApache 4 Backup from CLI<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Login to the Server<\/h3>\n\n\n\n<p>Login to the server using SSH as the root user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@server-ip\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: View the Current EasyApache 4 Custom Profile<\/h3>\n\n\n\n<p>Run the below command to check if any custom EasyApache 4 profile already exists on the server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/cpanel\/ea4\/profiles\/custom\/*.json 2&gt;\/dev\/null || \\\nls \/etc\/cpanel\/ea4\/profiles\/\n<\/code><\/pre>\n\n\n\n<p>This command will display the existing custom profile JSON file if available. If no custom profile is found, it will list the available EasyApache 4 profile directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Export the Current Installed EasyApache 4 Profile<\/h3>\n\n\n\n<p>Run the below command to export the currently installed EasyApache 4 configuration into a JSON backup file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/bin\/ea_current_to_profile \\\n  --output=\/tmp\/ea4_profile_$(hostname)_$(date +%Y%m%d).json\n<\/code><\/pre>\n\n\n\n<p>This will create a backup file in the <code>\/tmp<\/code> directory with the server hostname and current date.<\/p>\n\n\n\n<p>Example output file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/tmp\/ea4_profile_servername_20260622.json\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Verify the Exported Backup File<\/h3>\n\n\n\n<p>After exporting the profile, verify the generated JSON file using the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/tmp\/ea4_profile_$(hostname)_$(date +%Y%m%d).json\n<\/code><\/pre>\n\n\n\n<p>Confirm that the file contains the EasyApache 4 package details in JSON format.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Recommended \u2014 Copy the Backup to a Permanent Location<\/h3>\n\n\n\n<p>Since <code>\/tmp<\/code> is a temporary directory, copy the backup file to a safer location.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/root\/ea4-profile-backup\n\ncp \/tmp\/ea4_profile_$(hostname)_$(date +%Y%m%d).json \/root\/ea4-profile-backup\/\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Confirm the Backup File<\/h3>\n\n\n\n<p>Run the below command to confirm that the backup file is available.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lh \/root\/ea4-profile-backup\/\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verification<\/h2>\n\n\n\n<p>To verify the backup, check the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The JSON file was created successfully.<\/li>\n\n\n\n<li>The file size is not zero.<\/li>\n\n\n\n<li>The file contains EasyApache 4 package information.<\/li>\n\n\n\n<li>The backup file is stored in a safe location.<\/li>\n<\/ol>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lh \/root\/ea4-profile-backup\/\ncat \/root\/ea4-profile-backup\/ea4_profile_$(hostname)_$(date +%Y%m%d).json\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The current EasyApache 4 configuration has been successfully exported and backed up using the CLI. This backup can be used as a reference before making any EasyApache 4 changes, PHP version updates, or package modifications. It is recommended to keep a copy of this backup in a safe location or external backup storage for future rollback or audit purposes.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction EasyApache 4 is used in cPanel\/WHM servers to manage Apache, PHP versions, PHP extensions, and related web server packages. Before making any EasyApache 4 changes, upgrades, PHP version modifications, or package updates, it is recommended to take a backup of the current EasyApache 4 profile. This backup helps us keep a record of the ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/\" 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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-3867","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>EasyApache 4 Profile Backup Using CLI - 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\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EasyApache 4 Profile Backup Using CLI - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction EasyApache 4 is used in cPanel\/WHM servers to manage Apache, PHP versions, PHP extensions, and related web server packages. Before making any EasyApache 4 changes, upgrades, PHP version modifications, or package updates, it is recommended to take a backup of the current EasyApache 4 profile. This backup helps us keep a record of the ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-22T15:04:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-22T15:04:36+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\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/\"},\"author\":{\"name\":\"srisanthosh s\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/070895e04bc57565b04d6106e4da129c\"},\"headline\":\"EasyApache 4 Profile Backup Using CLI\",\"datePublished\":\"2026-06-22T15:04:33+00:00\",\"dateModified\":\"2026-06-22T15:04:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/\"},\"wordCount\":400,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/\",\"name\":\"EasyApache 4 Profile Backup Using CLI - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2026-06-22T15:04:33+00:00\",\"dateModified\":\"2026-06-22T15:04:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/070895e04bc57565b04d6106e4da129c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/06\\\/22\\\/easyapache-4-profile-backup-using-cli\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EasyApache 4 Profile Backup Using CLI\"}]},{\"@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":"EasyApache 4 Profile Backup Using CLI - 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\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/","og_locale":"en_US","og_type":"article","og_title":"EasyApache 4 Profile Backup Using CLI - PheonixSolutions Knowledge-Base","og_description":"Introduction EasyApache 4 is used in cPanel\/WHM servers to manage Apache, PHP versions, PHP extensions, and related web server packages. Before making any EasyApache 4 changes, upgrades, PHP version modifications, or package updates, it is recommended to take a backup of the current EasyApache 4 profile. This backup helps us keep a record of the ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2026-06-22T15:04:33+00:00","article_modified_time":"2026-06-22T15:04:36+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\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/"},"author":{"name":"srisanthosh s","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/070895e04bc57565b04d6106e4da129c"},"headline":"EasyApache 4 Profile Backup Using CLI","datePublished":"2026-06-22T15:04:33+00:00","dateModified":"2026-06-22T15:04:36+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/"},"wordCount":400,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/","name":"EasyApache 4 Profile Backup Using CLI - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2026-06-22T15:04:33+00:00","dateModified":"2026-06-22T15:04:36+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/070895e04bc57565b04d6106e4da129c"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/06\/22\/easyapache-4-profile-backup-using-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"EasyApache 4 Profile Backup Using CLI"}]},{"@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\/3867","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=3867"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3867\/revisions"}],"predecessor-version":[{"id":3868,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3867\/revisions\/3868"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=3867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=3867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=3867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}