Mediawiki

From Provider Wiki

Jump to: navigation, search


To make Mediawiki work on Tiger Server, you'll need to do the following:

  • Enable MySQL.
    • Edit /etc/hostconfig and add MYSQL=-YES- onto the end.
    • Create the MySQL databases by running mysql_install_db.
    • Dunno if anything else will do this, but chown -R mysql /var/mysql if necessary.
    • PHP is incompatible in some ways with the new MySQL password scheme, which needs a workaround. Create a my.cnf file in /var/mysql containing:
[mysqld]
# use old password encryption method
old_passwords
  • Oh yeah, you'll need to enable PHP as it's not turned on by default. Edit /etc/httpd/httpd.conf and uncomment these two lines (they're not next to each other in reality):
#LoadModule php4_module           libexec/httpd/libphp4.so
#AddModule mod_php4.c
  • Restart Apache from the server configurator or from the command line. Start MySQL. Or just reboot the machine, I guess.
  • Set a MySQL root password.
  • From here on in, the installation should be pretty easy - just untar Mediawiki in an appropriate place, chmod the config directory into something that's world-writable (and remember to take that away again once you're finished), point a web browser at config/ and follow your nose. And the instructions.

It shouldn't be much more trouble to get it working on standard OS X - the only major thing missing which it needs is MySQL, and installing that isn't exactly rocket science.

--Bob DeSilets 17:12, 6 March 2006 (EST)

Copied from article found [[1]]here.

Additional Notes

How to export and then import a MYSQL database:

Before upgrading, use the Terminal to export the data from your pre-10.3.3 database:

# mysqldump -p table > backup-file.sql

  • or

# mysqldump --opt database > backup-file.sql

After the upgrade, and after initializing the MySQL database, import the data:

# mysql -p table < backup-file.sql

  • or

# mysql database < backup-file.sql

---Bob DeSilets


Additional Links

  • MediaWiki [2]
  • Restoring your database from backup using phpMyAdmin [3]
  • Moving Wordpress to a new server [4]
  • Visual guide to restoring a database using phpMyAdmin [5]
  • Upgrading Wordpress [6]
Personal tools