ataylorme / WordPress-Hosting-Best-Practices-Documentation

Other
84 stars 16 forks source link

Required PHP modules and utilities outdated #32

Closed ottok closed 5 years ago

ottok commented 6 years ago

The list at https://github.com/ataylorme/WordPress-Hosting-Best-Practices-Documentation/blob/master/server-environment/server-environment.md would be much more useful if it included some motivations why something is needed. For example mcrypt has been deprecated in PHP 7.1 in favour of OpenSSL. I am pretty sure nothing in WordPress or plugins has been using it for years. Why recommend it here?

Also the list would be great if each item was a link to the home page of that PHP module or software library. Some of the modules mentioned I cannot find at all (filter, fileinfo, mod_xml). I suspect they are outdated old names for something that does not exist as a PHP module anymore..?

ataylorme commented 6 years ago

Hi @ottok, We took an inventory of which PHP modules WordPress could be using.

mcrypt, even though it has been deprecated in newer versions of PHP, is still in use when WordPress is when running on older PHP versions or when other libraries are missing.

See wp-includes/random_compat/random.php and wp-includes/random_compat/random_bytes_mcrypt.php.

These docs aren't just recommendations for hosts with newer PHP versions but for all hosts, even those with older versions.

We do, however, want to encourage hosts to adopt newer PHP versions. If you would like to contribute a pull request splitting the list into a PHP 7+ and 5.x list would be great. That way hosts would be able to see what they should be installed if they are running newer PHP versions.

ottok commented 5 years ago

The same issue was reported in https://meta.trac.wordpress.org/ticket/3632#comment:9

Since we now have https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions this entire repository seems obsolete and this issue can be closed.