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.