mlawson123's picture

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?

 

Mark

Forum: 
Alon Swartz's picture

I am unable to reproduce the error you mentioned (tested on turnkey-mediawiki-2009-04):
cd /usr/share/mediawiki/maintenance
php generateSitemap.php SITENAME
What version are you using?
What changes have you made?
Are you able to reproduce this behaviour on a fresh mediawiki installation?

BTW, see the wiki page for the other options generateSitemap accepts.

Add new comment