Last modified: 2012-12-13 12:03:36 UTC
I was fixing cron job wikimedia-periodic-update.sh on hume, ran the updateStats.php script by hand to check that it was working, and got this instead: root@hume:~# php -n /home/wikipedia/common/multiversion/MWScript.php extensions/FlaggedRevs/maintenance/updateStats.php alswiki Fatal error: Class 'Memcached' not found in /home/wikipedia/common/php-1.21wmf5/includes/objectcache/MemcachedPeclBagOStuff.php on line 57 What needs to be tweaked to fix this? Thanks.
So Reedy figured it out: php -n means no php.ini file read which in this case means no pecl memcached module loaded. This script is broken on lucid hosts too, I checked and it has the same behavior. I am assuming that the -n is so we don't hit the 30 second time limit on scripts?
NM that's 30 secs default anyways. I have removed the -n and if there's some undesirable side effect someone can let me know.