{"id":5960,"date":"2014-02-12T09:55:33","date_gmt":"2014-02-12T14:55:33","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=5960"},"modified":"2014-02-12T09:55:33","modified_gmt":"2014-02-12T14:55:33","slug":"downgrading-php-with-the-new-easyapache","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/","title":{"rendered":"Downgrading PHP with the new EasyApache"},"content":{"rendered":"<p>Howdy, <\/p>\n<p>cPanel is now upgrading php via an EA by default which when run, can upgrade a customers default php version to 5.4. As mentioned in an earlier post, part of cPanels EA EndOfLife email, 5.2.17 is no longer included in the php version list for EA. With that said, cPanel has made the downgrade process extremely simple. Below are the simple copy\/pasta instructions for downgrading the php to 5.2.17 with the new EA version.<\/p>\n<p><!--more--><\/p>\n<p><code>cd \/var\/cpanel\/easy\/apache\/custom_opt_mods\/<br \/>\nwget http:\/\/docs.cpanel.net\/twiki\/pub\/EasyApache\/EasyApacheCustomModules\/custom_opt_mod-PHP5217.tar.gz<br \/>\ntar -C \/var\/cpanel\/easy\/apache\/custom_opt_mods -xzf custom_opt_mod-PHP5217.tar.gz<br \/>\n\/scripts\/easyapache<\/code><\/p>\n<p>When the EA starts, you will not see 5.2.17 under the php version list, it is instead on the next page in the <strong>&#8220;short options list&#8221;.<\/strong> Simply check the box for the 5.2.17 custom opt and start the EA. A short message pops up letting you know that the php version list will be marked &#8220;none&#8221; but the current version at the top still displays 5.2.17 upon the next run EA. The wget link is subject to change, so be sure to check the Available Modules list found in the cPanel link below: <\/p>\n<p><a href=\"http:\/\/docs.cpanel.net\/twiki\/bin\/view\/EasyApache\/EasyApacheCustomModules\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/docs.cpanel.net\/twiki\/bin\/view\/EasyApache\/EasyApacheCustomModules<\/a><\/p>\n<p><strong>UPDATE:<\/strong>  It seems that there is currently a problem with the custom opt that disables the php 5 extension list in EA, effectively preventing the installation of new modules and extensions through EA. It also appears that compiling with this new custom opt automatically removes certain modules that are already installed, including Ioncube, Mysqli and possibly others. More info to follow&#8230;<\/p>\n<p><strong>UPDATE 2:<\/strong> just finished discussing this with CPanel and they confirmed that support for 5.2.17 has been dropped. This is similar to the drop of php4 that occurred with the rollout of php5.4. While EA will no longer offer extension installation with the 5.2.17 module, we can still install the modules using rawopts. The instructions provided by cPanel seemed comprehensive and we have confirmed they work using the example provided below. In this example, we compile curl through a manual EA using the rawopts with 5.2.17 in place.<\/p>\n<p><code>bash-3.2# touch \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<br \/>\nbash-3.2# echo \"--with-curl\" >> \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<br \/>\nbash-3.2# \/scripts\/easyapache --build<\/code><\/p>\n<p>I can confirmed that the second command works to append new extensions to the all_php5 on a new line as needed so you can substitute <code>--with-curl for --with-gd<\/code> and it will append <code>--with-gd<\/code> to the next line and you can run the EA with <code>--build<\/code> to compile both. With that in mind, running the EA to compile the custom-mod for 5.2.17 still removes certain modules, so be sure to copy the list of current modules from the EA or php -m and compare them once the EA completes in order to add any missing modules back to the server using the rawopts file. <\/p>\n<p><strong>UPDATE 3:<\/strong> We ran into several errors when adding the &#8220;&#8211;with-$module&#8221; to \/var\/cpanel\/easy\/apache\/rawopts\/all_php5. The shared libraries for the modules are not installed and easyapache will not install them. You have to install them manually. <\/p>\n<p><a href=\"http:\/\/nightkidx.com\/wp\/?p=46\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/nightkidx.com\/wp\/?p=46<\/a><\/p>\n<p>*Please note the link above has the -y flag on every command. The -y flag is the yes flag, which means you are saying yes to every questions yum may ask. <em>*We should never use the -y flag*<\/em>. Then you can run &#8220;\/scripts\/easyapache &#8211;build&#8221;.<\/p>\n<p>Also the extensions for php 5.2.x can be installed. Cpanel has a script that will install them. The script is &#8220;\/scripts\/phpextensionmgr&#8221;. You can list all the extensions with the &#8211;list flag. The following link provides an example to install ioncube loader.<\/p>\n<p><a href=\"http:\/\/docs.whmcs.com\/Ioncube_Installation_Tutorial#For_cPanel\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/docs.whmcs.com\/Ioncube_Installation_Tutorial#For_cPanel<\/a> <\/p>\n<p>So, in a nutshell&#8230;<\/p>\n<p><code>cd \/var\/cpanel\/easy\/apache\/custom_opt_mods\/<br \/>\nwget http:\/\/docs.cpanel.net\/twiki\/pub\/EasyApache\/EasyApacheCustomModules\/custom_opt_mod-PHP5217.tar.gz<br \/>\ntar -C \/var\/cpanel\/easy\/apache\/custom_opt_mods -xzf custom_opt_mod-PHP5217.tar.gz<\/p>\n<p>vim \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<\/p>\n<p>--enable-exif<br \/>\n--with-gettext<br \/>\n--with-imap=\/opt\/php_with_imap_client\/<br \/>\n--enable-mbstring<br \/>\n--with-mysql-sock=\/var\/lib\/mysql\/mysql.sock<br \/>\n--with-mysqli=\/usr\/bin\/mysql_config<br \/>\n--with-openssl=\/usr<br \/>\n--enable-pdo=shared<br \/>\n--with-pdo-mysql=shared<br \/>\n--with-pdo-sqlite=shared<br \/>\n--with-sqlite=shared<br \/>\n--with-mime-magic<br \/>\n--enable-soap<br \/>\n--with-pspell<br \/>\n--enable-wddx<br \/>\n--with-xmlrpc<br \/>\n--with-xsl=\/opt\/xslt\/<br \/>\n--with-kerberos<br \/>\n--with-curl<br \/>\n--enable-zip<\/p>\n<p>yum install aspell aspell-devel tidy libtidy libtidy-devel libxslt libxslt-devel<\/p>\n<p>wget -O \/usr\/local\/src\/tidy-1.2.tgz http:\/\/pecl.php.net\/get\/tidy-1.2.tgz<br \/>\ncd \/usr\/local\/src\/<br \/>\ntar zxvf tidy-1.2.tgz<br \/>\ncd tidy-1.2<br \/>\nphpize<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\nphp --ini<br \/>\n# add tidy.so extension, use path from make install.<\/p>\n<p># run ea, select no PHP in first PHP screen and select PHP in second screen.<\/p>\n<p>once complete, run:<br \/>\n\/scripts\/phpextensionmgr install IonCubeLoader<br \/>\n\/scripts\/phpextensionmgr install Zendopt<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Howdy, cPanel is now upgrading php via an EA by default which when run, can upgrade a customers default php version to 5.4. As mentioned in an earlier post, part of cPanels EA EndOfLife email, 5.2.17 is no longer included in the php version list for EA. With that said, cPanel has made the downgrade&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-5960","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Downgrading PHP with the new EasyApache - Linux Shtuff<\/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:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Downgrading PHP with the new EasyApache - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"Howdy, cPanel is now upgrading php via an EA by default which when run, can upgrade a customers default php version to 5.4. As mentioned in an earlier post, part of cPanels EA EndOfLife email, 5.2.17 is no longer included in the php version list for EA. With that said, cPanel has made the downgrade... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-12T14:55:33+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Downgrading PHP with the new EasyApache\",\"datePublished\":\"2014-02-12T14:55:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/\"},\"wordCount\":565,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/\",\"name\":\"Downgrading PHP with the new EasyApache - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2014-02-12T14:55:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/downgrading-php-with-the-new-easyapache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Downgrading PHP with the new EasyApache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Downgrading PHP with the new EasyApache - Linux Shtuff","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:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/","og_locale":"en_US","og_type":"article","og_title":"Downgrading PHP with the new EasyApache - Linux Shtuff","og_description":"Howdy, cPanel is now upgrading php via an EA by default which when run, can upgrade a customers default php version to 5.4. As mentioned in an earlier post, part of cPanels EA EndOfLife email, 5.2.17 is no longer included in the php version list for EA. With that said, cPanel has made the downgrade... Read More","og_url":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2014-02-12T14:55:33+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Downgrading PHP with the new EasyApache","datePublished":"2014-02-12T14:55:33+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/"},"wordCount":565,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/","url":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/","name":"Downgrading PHP with the new EasyApache - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2014-02-12T14:55:33+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/downgrading-php-with-the-new-easyapache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Downgrading PHP with the new EasyApache"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=5960"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5960\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=5960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=5960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=5960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}