InstallLocalMediaWiki
From Clothbot
(Difference between revisions)
Revision as of 02:33, 3 January 2008 (edit) AndrewPlumb (Talk | contribs) (→Steps) ← Previous diff |
Revision as of 02:36, 3 January 2008 (edit) AndrewPlumb (Talk | contribs) (→Steps) Next diff → |
||
Line 8: | Line 8: | ||
## Launch the pkg installer (mysql-5.0.45-osx10.4-i686.pkg) | ## Launch the pkg installer (mysql-5.0.45-osx10.4-i686.pkg) | ||
## Install the MySQLStartupItem.pkg to make automatic start-up easier to manage. | ## Install the MySQLStartupItem.pkg to make automatic start-up easier to manage. | ||
- | # Download and install CocoaMySQL | ||
# In your '''System Preferences''', go into '''Sharing''' and turn on '''Web Sharing''' | # In your '''System Preferences''', go into '''Sharing''' and turn on '''Web Sharing''' | ||
#* You should now be able to see an Apache web server running at http://localhost/ | #* You should now be able to see an Apache web server running at http://localhost/ | ||
Line 28: | Line 27: | ||
##** Retry running configuration. | ##** Retry running configuration. | ||
## Configure using the web form | ## Configure using the web form | ||
+ | ##* Be sure to assign a prefix in the '''Database table prefix''' field. Makes it easier to maintain multiple wikis and/or start from scratch. | ||
### '''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'' | ### '''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'' | ||
##* '''Change:''' Field '''Database Host''' from ''localhost'' to ''127.0.0.1'' | ##* '''Change:''' Field '''Database Host''' from ''localhost'' to ''127.0.0.1'' | ||
Line 36: | Line 36: | ||
## '''sudo mv config/LocalSettings.php .''' | ## '''sudo mv config/LocalSettings.php .''' | ||
# Follow the link to ''http://localhost/wiki/mediawiki-1.11.0/index.php'' | # Follow the link to ''http://localhost/wiki/mediawiki-1.11.0/index.php'' | ||
+ | |||
+ | ===Tips and Tricks=== | ||
+ | |||
+ | # Download and install CocoaMySQL to more easily maintain your MySQL databases. | ||
+ | # If you want to reconfigure your wiki from scratch, delete or rename the LocalSettings.php and rerun the install process. | ||
=References= | =References= |
Revision as of 02:36, 3 January 2008
Contents |
How To Install a Local MediaWiki
Steps
- Download mysql-5.0.45-osx10.4-i686.dmg
- Read the included ReadMe.txt file
- Shut down any existing MySQL servers that are running
- Launch the pkg installer (mysql-5.0.45-osx10.4-i686.pkg)
- Install the MySQLStartupItem.pkg to make automatic start-up easier to manage.
- In your System Preferences, go into Sharing and turn on Web Sharing
- You should now be able to see an Apache web server running at http://localhost/
- Problem with permissions with Leopard-upgraded account.
- sudo vi /etc/apache2/httpd.conf
- uncomment: LoadModule php5_module libexec/apache2/libphp5.so
- sudo cp /etc/httpd/users/*.conf /etc/apache2/users/.
- You should now be able to see an Apache web server running at http://localhost/
- Reboot so mysql and apache start up fresh.
- Download MediaWiki
- Read Installation Guide
- cd /Library/WebServer/Documents
- sudo mkdir wiki
- cd wiki
- sudo tar xvfz ~/Downloads/mediawiki-1.11.0.tar.gz
- Browse to http://localhost/wiki/mediawiki-1.11.0/
- Note the message to change permissions:
- cd .../mediawiki-1.11.0
- sudo chmod a+w config
- Retry running configuration.
- Note the message to change permissions:
- Configure using the web form
- Be sure to assign a prefix in the Database table prefix field. Makes it easier to maintain multiple wikis and/or start from scratch.
- 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
- Change: Field Database Host from localhost to 127.0.0.1
- Error: Attempting to connect to database server as wikiuser...failed due to authentication errors. Check passwords.
- Change:
- Checkbox Superuser account to checked
- Leave field Superuser password blank.
- sudo mv config/LocalSettings.php .
- Follow the link to http://localhost/wiki/mediawiki-1.11.0/index.php
Tips and Tricks
- Download and install CocoaMySQL to more easily maintain your MySQL databases.
- If you want to reconfigure your wiki from scratch, delete or rename the LocalSettings.php and rerun the install process.