Lion Wiki: Delete Current Wikis and Start Fresh


    Here is a set of TERMINAL commands that will reset Mac OSX Lion Server Wiki. All posts will be deleted. You will restart with a clean wiki database:

    sudo serveradmin stop postgres

    sudo mv /var/pgsql /var/pgsqlold

    sudo mkdir /var/pgsql

    sudo chmod 700 /var/pgsql

    sudo chown _postgres:_postgres /var/pgsql

    sudo /System/Library/ServerSetup/CleanInstallExtras/01_PostgreSQLSetup.rb

    sudo serveradmin fullstatus postgres

    sudo serveradmin start postgres

    To restore Wiki Server from a backup go here.