

PHP End of Life (A Reminder)
source link: https://www.tuicool.com/articles/7BfuuyA
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

As of December 2018 PHP 5 and 7.0 became End of Life . It is now July 2019 and up to 74% of PHP powered sites in the top 1 million are running software that is End of Life. This means there is no support and more importantly if new vulnerabilities are discovered, there will be no security fixes released.
Upgrades do take work and major updates can take even more work. People are busy and the reluctance for patching when things are just working is understandable. However, when things go End of Life , there are no more valid reasons to not upgrade. In fact, with the latest releases of PHP there are a number of benefits to upgrading including a significant increase in site speed .
Warning: For those planning to upgrade, being a major version change from 5 to 7 a number of functions were deprecated. Ensure thorough testing is performed so that the upgrade process is a smooth one.
PHP End of Life Stats
Methodology
During July we performed a semi regular analysis of WordPress usage in the top 1 million sites . The methodology for this process is to download the default page from the top 1 million sites and performing analysis on the HTTP headers
and HTML source
of the resulting pages.
The following data is based on sites that reveal the PHP version in the HTTP headers
.
The number of sites running unsupported PHP is staggering. Especially when considering that these are among the highest traffic sites in the world. If a serious security vulnerability were to be discovered in PHP core or a module these sites would have no way to patch and get protected.
Just show me the Stats!
of the Top 1 Million sites.
We found 208806 sites leaking the PHP version of these 154645 are running a version that does not include PHP/7.1 or PHP/7.2 or PHP/7.3.
This is where we get the figure of 74% of sites running PHP that is currently End of Life (unsupported).

PHP versions and WordPress
WordPress will require a minimum PHP version of 7 by the end of the year . This matters because WordPress runs close to 30% of all websites accounting for a large percentage of PHP powered sites.
According to statistics from wordpress.org 37.1% are running End of Life PHP. There is however no detail as to how the version was determined.
Another popular content management system Drupal recommends a minimum PHP version of 7.1.
Important Caveat
Newer versions of PHP do hide the version by default through the expose_php Off
directive in the php.ini
file, so in the overall PHP statistics we would expect the percentage to be better than the 74% shown in the data we have.
Distributions such as Red Hat, Ubuntu and Debian can provide security patching to packaged PHP even if the version is no longer supported through the official PHP project. An example of this is ongoing support provided as part of the Ubuntu LTS (long term support) releases. Distribution packaged PHP reveals the distribution in the X-Powered-By
and Server:
headers.
Examples: X-Powered-By: PHP/5.6.30-0+deb8u1 Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips PHP/5.5.38 X-Powered-By: PHP/5.5.9-1ubuntu4.29 Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.6.40
Checking for these Linux distributions shows 25532 sites are using the distributions packaging (this does not verify that these are all supported but some would be). In the chart below you can see the versions with number using a distribution package for the PHP software.
PHP Vulnerabilities
At the time of the article there are currently 599 PHP vulnerabilties with CVE's. The chart below shows number of PHP vulnerabilities discovered with a CVE score of 6 or higher by month.
As can be seen over the years there has been a steady stream of vulnerabilities discovered. Of course this is the case in any popular and complex piece of software , whether it is commercial or open source software. This is here as simply another reminder that it is time to upgrade your PHP to a current release.
Comparing Microsoft IIS End of Life
For a quick comparison against a very different software environment we examined Microsoft IIS server versions. The IIS web server version aligns closely with the Windows Server releases as can be seen in the table below.
The statistics are based on Microsoft IIS versions found in our survey of the Alexa top 1 million sites .
Total Microsoft-IIS Powered Sites: 67787 (6.8% of top 1M)
Microsoft IIS 7.5or earlier versions accounts for 30.3% of sites.
* IIS/7.5 is covered by Extended Security Updates until January 14 2020. Extended Security Updates (ESU) are available for the Datacenter, Standard, and Embedded editions of this product, for up to an additional three years past the end of support.
Conclusion
Even if we take into account the caveats and accept that the number would be lower than 74% across all PHP based sites, it is clear that a significant number of sites do need to upgrade . Site administrators need to get to work and fix this issue now. A new vulnerability could appear any day, and if you are not running a support version then that will be a bad day.
Recommend
-
7
Adobe Flash reaches end of life The once-ubiquitous technology for displaying rich media content in web browsers and mobile devices will no longer be supported in 2021. By
-
13
Adobe Flash Player reaches the end of its lifeAdobe Flash Player reaches the end of its lifeAdobe Flash Player reaches the end of its lifeAdobe Flash Player, the b...
-
9
Nanobox - End of life...
-
11
CentOS End of Life - Well, what comes next? Six years after the takeover of CentOS by Red Hat, they announced on 2020-12-08 that the support for CentOS Linux 8 will be discontinued at the...
-
5
TL;DR The table below summarizes the message in this blog post. For more details and reasoning, please continue reading. What What is happening and when Percona Monitoring and Management v1 End of Life – May...
-
6
Today we are talking about Drupal 8 End of Life with Gábor Hojtsy. TalkingDrupal.com/320 Topics John - NEDCamp is in two weeks April - Planning Drupal Camp Ashev...
-
7
homeblogcentos 8 is end of life eol now whatCentOS 8 is end-of-life: Now what?by Paul Ree...
-
8
'I planned to end my life at 16 but I'm still here''I planned to end my life at 16 but I'm still here'A teenage girl who tried to take her own life is volunteering her...
-
14
One more step Please complete the security check to access www.nginx.com What can I do to prevent...
-
6
PHP 8.0 Reaches End of Life
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK