Setting up a mediawiki instance on the sandbox: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 27: Line 27:


Now go to the wiki setup script: https://hub.xpub.nl/sandbox/~USERNAME/wiki/mw-config/index.php
Now go to the wiki setup script: https://hub.xpub.nl/sandbox/~USERNAME/wiki/mw-config/index.php
Use USERNAMEwiki for database + username + fill in the password you used.
 
In Step 2 (database:
 
  Database name (no hyphens): Enter USERNAMEwiki
  Database table prefix (no hyphens): (leave blank)
 
  Database username: Enter USERNAMEwiki
  Database name (no hyphens): Enter the password you used above
 


== See also ==  
== See also ==  

Revision as of 00:48, 15 January 2021

Instructions

ssh to the sandbox

cd public_html

Download the latest mediawiki (copy link location from mediawiki download page)...

wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz
tar xf mediawiki-1.35.1.tar.gz 

Rename the wiki folder something short like "wiki"

mv mediawiki-1.35.1 wiki

Setup the database: SEE Rita's Notes PART 6!

NB: REPLACE USERNAME with your user name!

 sudo mysql -u root -p
 CREATE DATABASE USERNAMEwiki;  
 CREATE USER 'USERNAMEwiki'@'localhost' IDENTIFIED BY 'SOMEPASSWORD';
 GRANT ALL PRIVILEGES ON USERNAMEwiki.* TO 'USERNAMEwiki'@'localhost'; 
 FLUSH PRIVILEGES;
 quit

Now go to the wiki setup script: https://hub.xpub.nl/sandbox/~USERNAME/wiki/mw-config/index.php

In Step 2 (database:

 Database name (no hyphens): Enter USERNAMEwiki
 Database table prefix (no hyphens): (leave blank)
 Database username: Enter USERNAMEwiki
 Database name (no hyphens): Enter the password you used above


See also