I am trying to update the version of PHP from 7.2 to at least 7.4. I have updated Dokuwiki to the latest version, but this did not update the version of PHP. Any help with this would be greatly appreciated.
PHP has to be updated on the web server, usually with your package manager. Dokuwiki itself doesn't normally come packaged with php.