I am currently using a…

I am currently using a Raspberry PI for my Website testing environment, but I want to try virtual, since I have a virtual server running. I will allocate 512MB RAM with 10GB of hard drive space. If this works as expected, I will repurpose or retire my PI. 😉

Just upgrade from 18.04 LTS…

Just upgrade from 18.04 LTS to 20.04 LTS to 22.04 LTS. Worked great and no issues! 🙂

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy

PHP was upgrade as well:

php --version
PHP 8.2.5 (cli) (built: Apr 14 2023 04:27:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.5, Copyright (c) Zend Technologies
with Zend OPcache v8.2.5, Copyright (c), by Zend Technologies

PHP parse error / XAMPP WordPress file rights

PHP

In testing an older theme with PHP 7.x, an error popped up:
PHP Warning: preg_match():


Solution:
It’s the ‘[\w-]+.@’ part at the end where the problem is. The hyphen needs to be escaped. So it should be ‘[\w\-]+.@’.

Although the error was not an exact match, the error was close enough for me to try the solution, that worked.
The solution was provided in a <a href=”https://wordpress.org/support/topic/php-warning-preg_match-compilation-failed/” alt=”Wordpress forum” title=”Wordpress forum”>WordPress forum</a>



XAMPP

I installed XAMPP on my Linux workstation, wanting to create a development site for WordPress. When trying to install new themes/update plugins the following error popped up: Unable to create directory wp-content/uploads/. Is its parent directory writable by the server?

Solution:
After changing the owner and group to daemon (sudo chown -R daemon:daemon DirectoryName) there were no further issues in install/update of themes and plugins.