Monday, April 9, 2007

How to clean up the change history of the mediawiki?

From time to time, I make lots of changes into the mediawiki. How can I delete the unwanted history of a page?

Start the command line, and go to the maintenance directory of the mediawiki installation. Finally, enter the following command:

# php deleteOldRevisions.php --delete

Note: You have to have php5 installed, in order to execute this command. Depending on your system configuration, on Dreamhost, it is /usr/local/dh/cgi-system/php5.cgi instead.

2 comments:

Locked said...

HA Thanks, exactly what I needed! I was already on the edge of starting to code when I found this post.

Locked said...

Thanks! exactly what I needed. I was already on the edge of starting to code.