Failed to enable crypto stream_socket_client() error after upgrading PHP

I just upgraded the version of PHP on the server running this blog, and popped over to /wp-admin/site-health.php to check for any errors. There were a few, the main one which caught my eye being The REST API encountered an error. For the Google results, that error message in text is: The REST API request failed due to an error. Error: stream_socket_client(): SSL operation field with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://words.samtarling.co.uk:443 (Unknown error) (http_request_failed) ...

December 5, 2023 · 1 min · 130 words · Sammy Fox

php-ast on PHP 8.2 (Windows)

php-ast by nikic exposes the abstract syntax tree generated by PHP 7 and 8 — nikic currently only provides pre-built Windows DLLs up to PHP v8.1, and building it yourself can be a minor hassle. So here’s a collection of pre-built DLLs for PHP 8.0 - 8.2 (ts/nts) https://github.com/theresnotime/php-ast-windows-build/releases/tag/1.0.4

December 5, 2023 · 1 min · 49 words · Sammy Fox

Upgrading Apache from PHP 7.3 to PHP 7.4

Okay, I know we’re not upgrading Apache, but y’know what I mean - let’s upgrade a Debian web server using PHP 7.3 to PHP 7.4! I’ll also cover some pointers on if that web server is running WordPress. 0) Assumptions I’m assuming: The server runs Debian 9 (Stretch) or Debian 10 (Buster) with Apache version 2.4.38* (though it should work for other versions) Apache is using the PHP module, not PHP-FPM You have sudo and SSH access You’ve made backups and any sites you’re hosting can tolerate downtime 😉 * You can get this info by running /usr/sbin/apache2 -v ...

December 5, 2023 · 5 min · 930 words · Sammy Fox