MediaWiki comes with google sitemap generator. It is a command line utility and located in /usr/share/mediawiki/maintenance
I should be able to run it from the command shell, by using "php GenerateSitemap.php <sitename>".
However, when I try this all I get is an error "This script must be run from the command line".
Is there any way around this?