User:MarkJurgens/ParsoidSetupFromScratch

So I don't know much, but I know I want to use Mediawiki and VE and Parsoid for my next web project. So, I'm taking a run at installing it, with little knowledge, in the hopes it actually works, or some kind soul takes pity on me and helps me out.

Steps:

1. After GabrielW's suggestion, I purchased a cheap VPS from HostHatch

2. Next, I installed Fedora 20 by loging into my control panel for the site.

3. THEN, I logged into my brand spanking new server using PUTTY.

4. Then I found this page

https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Fedora

And installed Mediawiki by typing And then: Actually, I think didn't type the #
 * 1) yum install mediawiki

5.

THEN, I tried to see my install online, so I typed in my IP, but got a default fedora welcome page, which thankfully told me to put filed in var/www/html or I wouldn't see them.

SO, I copied my mediawiki installation (which was installed into my /www directory) into the /html/wiki directory

to do this I used this handy document:

http://www.itcs.umich.edu/itcsdocs/s4148/#renamedir

and typed

6. THEN I decided I wanted to try and get parsoid running first, because I know how to install mediawiki, it's parsoid that's the problem.

SO, I looked at this document:  https://www.mediawiki.org/wiki/Parsoid/Setup#Get_the_code

and tried to 'get the code' for parsoid, but I realised I didn't have git installed, so I went here: http://git-scm.com/download/linux

then I typed:

Actually, I didn't type the $

And then I had git

7. THEN I tried to get the parsoid code but using the clone function and steps outlined here:

https://www.mediawiki.org/wiki/Parsoid/Setup#Get_the_code

And then I had the code on my server

8. THEN I installed it referring to my previous attempt documented here: www.mediawiki.org/wiki/User:MarkJurgens/VESetup by typing:

and node.js was installed.

9. Then I *tried to run the parsoid server and got:  Error: Cannot find module 'yargs' 

So I went here: https://www.versioneye.com/nodejs/yargs/1.3.1

and installed yargs, whatever the *&#$#!;) that is, by typing:

10. Then I found my parsoid directory, which was installed in var/www/parsoid/ and ran this:

.. and I got an error, it still could not find the 'yargs' module. So..

11. So, I thought maybe the module didn't get installed, so for no reason in particular, except that I had seen it somewhere in the documentation, I typed

And 135 things got updated and verified, it was a little scary.

12. Then I remembered to look at the original documentation and setup the JS dependencies

By running this command in the Parsoid directory: npm install And a lot of things scrolled.

13. Then went to var/www/parsoid/api and copied localsettings.js.example to localsettings.js

by typing:

14. Then I edited localsettings.js to point to my webserver by replacing a similar line with:

15. Then I went to my parsoid/api directory, took a deep breath, and typed

and then I had a parsoid server running!!!!

16. Then I navtigated to www.mysite.com:8000, clicked on the test links and saw that Parsoid was indeed translating wiki to html and back again. :)

17. Then I killed the workers temporarily by using CTRL + C

Then, because I was feeling bold, and foolish and slightly giddy, I went back to my previous web server, which has Cpanel and all the easy bells and whilstles and created a new database, installed mediawiki 1.24wmf20,

Downloaded the latest snapshot of mediawiki 1.24wmf20 here: https://tools.wmflabs.org/snapshots/#!/mediawiki-core/wmf/1.24wmf20

Downloaded the Visual Editor Master here: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/VisualEditor

Quietly bit my lip when 1.24 made me download my own skin here: https://www.mediawiki.org/wiki/Skin:Vector

Uploaded all that to my server, installed everything,

Changed my local settings to include:

And went back to my website, ... and VE was running.

Incredible.