Running php update.php
I've had many problems with HostMonster being unable to properly execute the maintenance update of MediaWiki. Here are the problems I've encountered and how to resolve them:
Failed loading /usr/php/54/usr/lib64/php/modules/ZendGuardLoader.so
Failed loading /usr/php/54/usr/lib64/php/modules/ZendGuardLoader.so: /usr/php/54/usr/lib64/php/modules/ZendGuardLoader.so: undefined symbol: zend_new_interned_string Status: 500 Internal Server Error Content-type: text/html
This error occurs because HostMonster's php settings in Shell are messed up. You have to move a custom php.ini into the maintenance folder.
Failed opening required '__DIR__/Maintenance.php'
Warning: require_once(__DIR__/Maintenance.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home1/thealmig/public_html/SecularMusic/Wiki/maintenance/update.php on line 29
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/Maintenance.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home1/thealmig/public_html/SecularMusic/Wiki/maintenance/update.php on line 29
__DIR__ wasn't added until PHP 5.3. If you have 5.3+ loaded, your php command is not finding your current version of php. On my Hostmonster sever, I found that, even though I was using a single PHP version 4.6, the maintenance directory still ran PHP 5.2 somehow. HoseMonster runs PHP 5.2 by default, so you have to run "php54s update.php".
Cannot get command line arguments, register_argc_argv is set to false
This occurs because the default php54s php.ini file turns off register_argc_argv which is needed to run the update.php.