{"id":1080,"date":"2017-06-21T22:03:39","date_gmt":"2017-06-22T03:03:39","guid":{"rendered":"https:\/\/hostease.com\/blog\/?p=1080"},"modified":"2024-11-24T22:24:55","modified_gmt":"2024-11-25T03:24:55","slug":"how-to-install-or-uninstall-easyapache-4-on-the-command-line","status":"publish","type":"post","link":"https:\/\/www.hostease.com\/blog\/cpanel\/how-to-install-or-uninstall-easyapache-4-on-the-command-line\/","title":{"rendered":"How to Install or Uninstall EasyApache 4 on the Command Line"},"content":{"rendered":"<h2 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-Overview\">Overview<\/h2>\n<p class=\"p1\"><span class=\"s1\">This document explains how to install or uninstall EasyApache 4 with\u00a0the\u00a0<code>\/scripts\/migrate_ea3_to_ea4<\/code>\u00a0script. <\/span><\/p>\n<h2 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-Requirements\" class=\"p1\">Requirements<\/h2>\n<h3 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-Operatingsystems\">Operating systems<\/h3>\n<p>EasyApache 4 supports the following operating systems:<\/p>\n<ul>\n<li>CentOS 6 or 7.<\/li>\n<li>CloudLinux\u2122 6 or 7 (cPanel &amp; WHM version 56 or later\u00a0<strong>only<\/strong>).<\/li>\n<li>Red Hat\u00ae Enterprise Linux\u00ae 6 or 7.<\/li>\n<\/ul>\n<div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\">\n<p class=\"title\">Note:<\/p>\n<div class=\"confluence-information-macro-body\">\n<p>EasyApache 4\u00a0does <strong>not<\/strong> support Amazon Linux.<\/p>\n<\/div>\n<\/div>\n<h3 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-ApacheandPHP\">Apache and PHP<\/h3>\n<p>EasyApache 4 <strong>only<\/strong> supports Apache version 2.4.<\/p>\n<p>EasyApache 4 supports PHP versions 5.4, 5.5, 5.6, 7.0, and 7.1.<\/p>\n<h3 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-Settings\">Settings<\/h3>\n<p>You\u00a0<strong>must<\/strong> activate the <code>RPMUP<\/code> setting if you install EasyApache 4 on your system.\u00a0The system enables this setting by default.\u00a0To do this, perform one of the following steps:<\/p>\n<ul>\n<li>Open the\u00a0<code>\/etc\/cpupdate.conf<\/code> file and set the\u00a0<code>RPMUP<\/code> key&#8217;s value to <code>daily<\/code>. For more information, read our\u00a0<a href=\"https:\/\/documentation.cpanel.net\/display\/ALD\/The+cPanel+Update+Configuration+File+-+cpupdate.conf\">The cPanel Update Configuration File &#8211; cpupdate.conf<\/a> documentation.<\/li>\n<li>In WHM&#8217;s<em> <a href=\"https:\/\/documentation.cpanel.net\/display\/ALD\/Update+Preferences\">Update Preferences<\/a> <\/em> interface (<em>Home &gt;&gt; Server Configuration &gt;&gt; Update Preferences),<\/em> set the <em>Operating System Package Updates<\/em> setting to <em>Automatic<\/em>.<\/li>\n<\/ul>\n<h2 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-HowtoinstallEasyApache4\">How to install EasyApache 4<\/h2>\n<p>To install EasyApache 4, perform the following steps on the command line as the <code>root<\/code> user:<\/p>\n<ol>\n<li>Run the following command:\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_310176\" class=\"syntaxhighlighter sh-confluence nogutter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\" title=\"Hint: double-click to select code\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">\/scripts\/migrate_ea3_to_ea4<\/code> <code class=\"bash plain\">--run<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\">\n<p class=\"title\">Notes:<\/p>\n<div class=\"confluence-information-macro-body\">\n<ul>\n<li>If your system runs CloudLinux, the\u00a0<code>migrate_ea3_to_ea4<\/code>\u00a0script downloads and runs CloudLinux&#8217;s\u00a0<a class=\"external-link\" href=\"http:\/\/docs.cloudlinux.com\/index.html?cpanel_easyapache_4.html\" rel=\"nofollow\">EasyApache 4 migration script<\/a>.<\/li>\n<li>As the migration script runs, the <code>\/scripts\/migrate_ea3_to_ea4<\/code> script copies the <code>\/usr\/local\/lib\/php.ini<\/code> file to the <code>\/opt\/cpanel\/ea-php??\/root\/etc\/php.d\/php.ini<\/code> file and to all installed <code>ea-php<\/code> versions on your server. To prevent complications, the system comments out lines that resemble the following lines:\n<ul>\n<li><code>extension=<\/code><\/li>\n<li><code>extension_dir=<\/code><\/li>\n<li><code>zend_extension-<\/code><\/li>\n<\/ul>\n<\/li>\n<li>The systems does <strong>not<\/strong> adjust any other lines.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/li>\n<li>The interface displays the changes that will occur. To continue, follow the system&#8217;s instructions.<\/li>\n<\/ol>\n<h3 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-Arguments\">Arguments<\/h3>\n<p>The\u00a0<code>\/scripts\/migrate_ea3_to_ea4<\/code> script accepts the following arguments:<\/p>\n<div class=\"table-wrap\">\n<table class=\"wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<thead class=\"tableFloatingHeaderOriginal\"><\/thead>\n<\/table>\n<\/div>\n<div class=\"table-wrap\">\n<table class=\"wrapped confluenceTable tablesorter tablesorter-default stickyTableHeaders\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><code>--run<\/code><\/td>\n<td class=\"confluenceTd\">\n<div class=\"content-wrapper\">\n<p>Run the script.<\/p>\n<div class=\"confluence-information-macro confluence-information-macro-warning conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"warning\">\n<p class=\"title\">Important:<\/p>\n<div class=\"confluence-information-macro-body\">\n<p>You <strong>must<\/strong> include the <code>--run<\/code> option.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\"><code>--help<\/code><\/td>\n<td class=\"confluenceTd\">Display the help information.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\"><code>--revert<\/code><\/td>\n<td class=\"confluenceTd\">Revert the system to the previous version and configuration.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><code>--skip_convert<\/code><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Do<strong> not<\/strong> convert and install the EasyApache 3 profile. This flag installs the EasyApache 4 cPanel <em>Default Profile<\/em> unless you use the <code>--install_profile<\/code> flag.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><code>--install_profile<\/code><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\n<div class=\"content-wrapper\">\n<p class=\"p1\"><span class=\"s1\">Do <strong>not<\/strong> convert the EasyApache 3 profile. Instead, install the specified profile. <\/span><\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_812755\" class=\"syntaxhighlighter sh-confluence nogutter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\" title=\"Hint: double-click to select code\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash spaces\">\u00a0<\/code><code class=\"bash plain\">\/scripts\/migrate_ea3_to_ea4<\/code> <code class=\"bash plain\">--run --install_profile <\/code><code class=\"bash plain\">\/path\/to\/profile<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><code>--convert_fail<\/code><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\n<div class=\"content-wrapper\">\n<p>When you convert an EasyApache 3 profile to an EasyApache 4 profile, this flag prevents execution of the script&#8217;s error-correction code.<\/p>\n<div class=\"confluence-information-macro confluence-information-macro-warning conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"warning\">\n<p class=\"title\">Warning:<\/p>\n<div class=\"confluence-information-macro-body\">\n<p>This may cause a failure when you provision your system. However, you may wish to use this flag for tests.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">\n<p class=\"p1\"><code><br \/>\n<span class=\"s1\">-y | --y | -yes | --yes<\/span><br \/>\n<\/code><\/p>\n<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Answer yes to all of the script&#8217;s yes-or-no questions.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><code>--force<\/code><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">\n<div class=\"content-wrapper\">\n<p>When you add the <code>--force<\/code> argument to the <code>--run<\/code> or <code>--revert<\/code> arguments, the system ignores the protection checks.<\/p>\n<div class=\"confluence-information-macro confluence-information-macro-warning conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"warning\">\n<p class=\"title\">Warning:<\/p>\n<div class=\"confluence-information-macro-body\">\n<p>\u00a0This may cause a failure when you provision your system.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><code>--reinstall<\/code><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Yum attempts to install the required EasyApache 4 RPMs and attempts to reinstall any currently-installed EasyApache 4 packages.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"HowtoInstallorUninstallEasyApache4ontheCommandLine-HowtouninstallEasyApache4\">How to uninstall EasyApache 4<\/h2>\n<div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\">\n<p class=\"title\">Note:<\/p>\n<div class=\"confluence-information-macro-body\">\n<p>You can <strong>only<\/strong> uninstall EasyApache 4 if you migrated your system from EasyApache 3.<\/p>\n<\/div>\n<\/div>\n<p>To uninstall EasyApache 4, perform the following steps on the command line as the <code>root<\/code> user:<\/p>\n<ol>\n<li>To revert to EasyApache 3 from EasyApache 4, run the following command:\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_456775\" class=\"syntaxhighlighter sh-confluence nogutter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\" title=\"Hint: double-click to select code\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">\/scripts\/migrate_ea3_to_ea4<\/code> <code class=\"bash plain\">--revert --run<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\">\n<p class=\"title\">Notes:<\/p>\n<div class=\"confluence-information-macro-body\">\n<ul>\n<li>This command reverts the system to your previous EasyApache 3 installation and configuration.<\/li>\n<li>This command attempts to move the Apache files to a new location and reverts the server to the previous state. You can upgrade and downgrade as many times as you wish.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"confluence-information-macro confluence-information-macro-warning conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"warning\">\n<p class=\"title\">Important:<\/p>\n<div class=\"confluence-information-macro-body\">\n<ul>\n<li class=\"p1\">Each time that you perform a migration from EasyApache 3 to EasyApache 4, the system moves the <code>\/usr\/local\/apache\/<\/code> directory to the <code>\/usr\/local\/apache.ea3\/<\/code> directory.\n<ul>\n<li class=\"p1\">If the\u00a0 <code>\/usr\/local\/apache.ea3<\/code> directory exists, the system moves the <code>\/usr\/local\/apache\/<\/code> directory to the <code>\/usr\/local\/apache.ea3.1\/<\/code> directory.<\/li>\n<li class=\"p1\">If the <code>\/usr\/local\/apache.ea3.1<\/code>\u00a0directory exists when you run a migration, the migration <strong>will fail<\/strong>\u00a0in order to prevent loss of data.<\/li>\n<\/ul>\n<\/li>\n<li>The chance of errors dramatically increases if you migrate your system multiple times. If you revert several times, you <strong>must<\/strong> manually delete the previous <code>\/usr\/local\/apache.ea3.1\/<\/code> backup directory to continue. The system automatically preserves the <code>\/usr\/local\/apache\/<\/code> directory.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install or uninstall EasyApache 4 using the command line with step-by-step instructions. Discover supported operating systems, key requirements, and troubleshooting tips on HostEase Blog.<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[445,442,446],"class_list":["post-1080","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-easyapache-4","tag-server-management","tag-web-hosting-tools"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/1080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/comments?post=1080"}],"version-history":[{"count":1,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/1080\/revisions"}],"predecessor-version":[{"id":2087,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/1080\/revisions\/2087"}],"wp:attachment":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/media?parent=1080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/categories?post=1080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/tags?post=1080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}