Thread:Project:Support desk/Running update.php in a global installation/reply

You should run update.php so its in the current working directory: cd wikis/w/maintenance php update.php

Failing that, you can also try: MW_INSTALL_PATH=/home/account\ username/public_html/wikis/w php wikis/w/maintenance/update.php