Auto update apps

Hi, am I using latest v18 NC version on cPanel hosting, and I wish to auto update apps over cPanel Cron job, but when I setup that, there is error:

Content-type: text/html; charset=UTF-8

An unhandled exception has been thrown:
TypeError: Return value of OC\AppFramework\Http\Request::getScriptName() must be of the type string, null returned in /home/xxxxxx/public_html/lib/private/AppFramework/Http/Request.php:836
Stack trace:
#0 /home/xxxxxx/public_html/lib/base.php(159): OC\AppFramework\Http\Request->getScriptName()
#1 /home/xxxxxx/public_html/lib/base.php(582): OC::initPaths()
#2 /home/xxxxxx/public_html/lib/base.php(1089): OC::init()
#3 /home/xxxxxx/public_html/console.php(48): require_once('/home/declo35e/...')
#4 /home/xxxxxx/public_html/occ(10): require_once('/home/declo35e/...')
#5 {main}

This is command used: php /home/xxxxx/public_html/occ app:update --all

PHP Version is 7.3
CentOS 7.8

Executing commend over SSH is OK, all apps get updated.