TurnKey Linux Virtual Appliance Library

Unable to create sitemap with Mediawiki

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

Alon Swartz's picture

unable to reproduce

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.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)