Editing
Archive
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===MediaWiki=== MediaWiki is not actually installed on mike (it is on caerostris), but instructions are here just in case. The instructions follow http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Mac_OS_X , but are somewhat customized. sudo mkdir /Library/MediaWiki ====MySQL==== On Mac OS Server, MySQL is preinstalled, but is not enabled by default. Enable it with the GUI <code>Server admin</code>: * Click on the server name * Choose <code>Settings</code> and underneath <code>Services</code> * In the list, enable <code>MySQL</code> * Click on the triangle at the right of the server name to open the list of services * Choose the <code>MySQL</code> service * Set the root password * Click on <code>Save</code> * On the bottom of the window, click on <code>Start MySQL</code> ==== Creating MediaWiki Database ==== In order for the MediaWiki software to be able to read and write to the MySQL database, you need to create and give it access to a new database by issuing the following commands: mysqladmin -u root -p create wikidb mysql -u root -p -e "GRANT ALL PRIVILEGES ON wikidb.* TO wikiuser IDENTIFIED BY 'wiki_password'" mysql -u root -p -e "SET PASSWORD FOR wikiuser = OLD_PASSWORD('wiki_password')" mysql -u root -p -e "FLUSH PRIVILEGES" Replace 'wiki_password' with a string of your choice. You will need to enter it later in the MediaWiki configuration. ==== PHP ==== On Mac OS Server, PHP is preinstalled, but is not enabled by default. Enable it with the GUI <code>Server admin</code>: * click on the triangle at the right of the server name to open the list of services * Choose the <code>Web</code> service * Choose <code>Settings</code> and underneath <code>Modules</code> * In the list, enable <code>php5_module</code> * Click on <code>Save</code> ==== WikiMedia Files ==== Get it from http://www.mediawiki.org/wiki/Manual:Downloading_MediaWiki . Unpack it to /Library/WikiMedia/ cd /Library/MediaWiki sudo chown -R www . sudo chgrp -R admin . chmod -R a+rw config sudo mkdir uploads sudo chown www uploads sudo chgrp admin uploads =====Create a Realm===== # Server Admin -> Web -> Sites -> 443 # Select the Realms tab # Click �+� under the Realms box and enter the following: #* Realm Name: wiki #* Authentication: Basic #* Folder: /Library/MediaWiki (Note: You have to change the dropdown) # Click �+� under the Users & Groups box, and drag/drop the users/groups that you want to give access to. Also be sure to give them read/write privileges. # Click the Save button. Now edit /etc/apache2/sites/0001_any_443_default.conf so it looks something like this: Alias /wiki "/Library/MediaWiki" <Directory "/Library/MediaWiki"> AuthType Basic <Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require group localaccounts </Limit> AuthName "wiki" </Directory> <Directory "/Library/MediaWiki/web/uploads"> AllowOverride None AddType text/plain .html .htm .shtml php_admin_flag engine off </Directory> Now restart Apache: sudo apachectl restart ====Configure MediaWiki==== Point your browser at https://caerostris.kin.ucalgary.ca/wiki/index.php . Fill out everything. # As prompted by the webpage, copy the <tt>LocalSettings.php</tt> file from the <tt>config</tt> folder up one level. # Eventually, you should be led to <nowiki>https://caerostris.kin.ucalgary.ca/wiki/index.php/Main_Page</nowiki> and you should see a nice new wiki waiting to be populated. # Once this is working, change the permissions of the config folder to prevent reading by anyone. If the wiki is working, you may as well just delete this folder.
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information