InstallLocalMediaWiki

=How To Install a Local MediaWiki=

Specific to Mac OS X
 * Performed on a Leopard-upgraded-from-Tiger machine (not clean)

Steps

 * 1) Download mysql-5.0.45-osx10.4-i686.dmg
 * 2) Read the included ReadMe.txt file
 * 3) Shut down any existing MySQL servers that are running
 * 4) Launch the pkg installer (mysql-5.0.45-osx10.4-i686.pkg)
 * 5) Install the MySQLStartupItem.pkg to make automatic start-up easier to manage.
 * 6) In your System Preferences, go into Sharing and turn on Web Sharing
 * 7) * You should now be able to see an Apache web server running at http://localhost/
 * 8) ** Problem with permissions with Leopard-upgraded account.
 * 9) *** Terminal: sudo cp /etc/httpd/users/*.conf /etc/apache2/users/.
 * 10) Terminal:  sudo vi /etc/apache2/httpd.conf
 * 11) * Uncomment: LoadModule php5_module       libexec/apache2/libphp5.so
 * 12) ** vi (find the php5 string): /php5
 * 13) ** vi (move to the start of the line): ^
 * 14) ** vi (erase the # character): x
 * 15) ** vi (colon character, write and quit): :wq
 * 16) GUI Editor Alternative:  sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/apache2/httpd.conf
 * 17) * Erase the # in front of the LoadModule php5_module       libexec/apache2/libphp5.so line.
 * 18) * Save and exit. Make sure it does not Line-Wrap.
 * 19) Reboot so mysql and apache start up fresh.
 * 20) Download MediaWiki
 * 21) Read the Installation Guide
 * 22) Terminal: cd /Library/WebServer/Documents
 * 23) Terminal: sudo mkdir wiki
 * 24) Terminal: cd wiki
 * 25) Terminal: sudo tar xvfz ~/Downloads/mediawiki-1.11.0.tar.gz
 * 26) Browse to http://localhost/wiki/mediawiki-1.11.0/
 * 27) * Note the message to change permissions:
 * 28) ** Terminal: cd .../mediawiki-1.11.0
 * 29) ** Terminal: sudo chmod a+w config
 * 30) ** Retry running configuration.
 * 31) Configure using the web form
 * 32) * If you're going to use a Creative Commons license, configure it first before anything else. The new form won't retain of the field values so you'll be entering things twice.
 * 33) * Be sure to assign a prefix in the Database table prefix field. Makes it easier to maintain multiple wikis and/or start from scratch.
 * 34) * Error: Attempting to connect to database server as root...failed with error [2002] Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock
 * 35) ** Change: Field Database Host from localhost to 127.0.0.1
 * 36) * Error: Attempting to connect to database server as wikiuser...failed due to authentication errors. Check passwords.
 * 37) ** Change:
 * 38) *** Checkbox Superuser account to checked
 * 39) *** Leave field Superuser password blank.
 * 40) Terminal: sudo mv config/LocalSettings.php .
 * 41) Follow the link to http://localhost/wiki/mediawiki-1.11.0/index.php

Tips and Tricks

 * 1) Download and install CocoaMySQL  to more easily maintain your MySQL databases.
 * 2) If you want to reconfigure your wiki from scratch, delete or rename the LocalSettings.php and rerun the install process.

=References=


 * MySQL
 * MySQL on Mac OS X
 * Installing and Configuring MySQL on Mac OS X
 * MySQL 5.0 for Mac OS X
 * CocoaMySQL Database Management UI
 * MediaWiki
 * MediaWiki Main Page
 * Installation