All sites down seemingly after PHP update a week ago
-
For about a week now I have been unable to view any of 11 self-hosted sites on Ubuntu 22.04, apparently after a PHP 8.1.x update. I have enabled WordPress error logging and nothing is written to that file.
The server’s Apache2 error log contains the same message (barring the path for the relevant site) when I try to access the homepage of each site: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/html/EXAMPLE.com/public_html/index.php on line 2
I checked the PHP version:
$ php –version
PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend TechnologiesSetting a version has no effect:
There are 2 choices for the alternative php (providing /usr/bin/php).
Selection Path Priority Status
————————————————————
0 /usr/bin/php.default 100 auto mode
1 /usr/bin/php.default 100 manual mode
* 2 /usr/bin/php8.1 81 manual mode
I can access phpMyAdmin so the only virtual hosts I can’t access are the WP sites.I am completely at sea. One of the inaccessible sites is https://www.leecorpweb.com
The page I need help with: [log in to see the link]
- The topic ‘All sites down seemingly after PHP update a week ago’ is closed to new replies.