{"id":52439,"date":"2019-05-14T13:28:41","date_gmt":"2019-05-14T18:28:41","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=52439"},"modified":"2019-05-14T13:28:41","modified_gmt":"2019-05-14T18:28:41","slug":"removal-of-php-5-6-and-php-7-0-in-easyapache-profiles","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/removal-of-php-5-6-and-php-7-0-in-easyapache-profiles\/","title":{"rendered":"Removal of PHP 5.6 and PHP 7.0 in EasyApache Profiles"},"content":{"rendered":"\n
PHP 5.6 and PHP 7.0 reached End of Life at the beginning of the year<\/a>, and are no longer receiving any security patches from PHP. <\/p>\n\n\n\n We are encouraging users to upgrade to supported PHP versions in EasyApache 4. Here’s what you need to know about upgrading:<\/p>\n\n\n\n If your server is currently using PHP versions 5.6 or 7.0, you will not <\/strong>be affected unless or until the EasyApache 4 profile on your server is updated or reinstalled. <\/p>\n\n\n\n As both of these versions have been End of Life since the beginning of 2019, these versions are no longer supported or receiving updates from the providers of PHP. <\/p>\n\n\n\n If you or your customers are currently running websites using either PHP 5.6 or 7.0, this is a good opportunity to encourage an upgrade to PHP 7.2. <\/p>\n\n\n\n Any sites continuing to use these unsupported PHP versions are at risk for potential security or compromise issues. If moving from versions 5.6 or 7.0 is impossible, CloudLinux<\/a> provides updated and patched versions of PHP that have reached End of Life. If CloudLinux is not an option for you or your customers, there is the option to create a custom EasyApache 4 profile<\/a> and continue to use PHP 5.6 and 7.0, but we do not recommend it.<\/p>\n\n\n\n Ensuring that you or your customers have updated their software to use PHP 7.2 (or higher) is a great way to start. Popular CMSs such as WordPress<\/a>, Joomla<\/a>, and Drupal<\/a> provide instructions on how to update their versions to those that support PHP 7.2 (WordPress version 5+, Joomla version 3.9, and Drupal version 8.7.1).<\/p>\n\n\n\n If you need to check which of your domains are currently running either PHP 5.6 or 7.0, you can use the API call php_get_vhost_versions<\/a>. If you’d like to use the Command Line API tools<\/a> your command would look like this:<\/p>\n\n\n\n This API call, with some modification, has the potential to tell you what version of PHP the domains are running, thereby identifying them as candidates for upgrading their PHP versions.<\/p>\n\n\n\n If you are unsure of what to do next or want to discuss these changes further, please join us in our\u00a0Slack<\/a> or\u00a0Discord<\/a> channels, or join us on our official cPanel\u00a0subreddit<\/a>!\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":" PHP 5.6 and PHP 7.0 reached End of Life at the beginning of the year, and are no longer receiving any security patches from PHP. We are encouraging users to upgrade to supported PHP versions in EasyApache 4. Here’s what you need to know about upgrading: We are removing PHP 5.6 and 7.0 from our […]<\/p>\n","protected":false},"author":77,"featured_media":65161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-52439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products"],"acf":[],"yoast_head":"\nWhat does this mean to me?<\/h2>\n\n\n\n
How do I prepare for PHP 5.6 and 7.0 removal?<\/h2>\n\n\n\n
whmapi1 php_get_vhost_versions | grep -A1 version: <\/code>
The results will look similar to this: <\/p>\n\n\n\n[root@server ~]# whmapi1 php_get_vhost_versions | grep -A1 version:<\/code><\/sub>
\u00a0 \u00a0 \u00a0 version:<\/strong> ea-php70<\/code><\/sub>
\u00a0 \u00a0 \u00a0 vhost: dnstest.com<\/a><\/code><\/sub>
--<\/code><\/sub>
\u00a0 \u00a0 \u00a0\u00a0version:<\/strong> ea-php71<\/code><\/sub>
\u00a0 \u00a0 \u00a0 vhost: example.com<\/a><\/code><\/sub>
--<\/code><\/sub>
\u00a0 \u00a0 \u00a0 version:<\/strong> ea-php70<\/code><\/sub>
\u00a0 \u00a0 \u00a0 vhost: cptest.com<\/a><\/code><\/sub>
--<\/code><\/sub>
\u00a0 \u00a0 \u00a0 version:<\/strong> ea-php70<\/code><\/sub>
\u00a0 \u00a0 \u00a0 vhost: test.com<\/a><\/code><\/sub>
--<\/code><\/sub>
\u00a0 \u00a0 \u00a0 version:<\/strong> ea-php71<\/code><\/sub>
\u00a0 \u00a0 \u00a0 vhost: thisisatest.com<\/a><\/code><\/sub><\/h6>\n\n\n\n
Have any questions?<\/h2>\n\n\n\n