Installed MediaWiki

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 09, 2013 11:11 am

I use vi myself. Works good for me. vim is very similar.

As for the GUI, I meant desktop. If you install the desktop, more can be done without command line. I don't recommend the GUI though as it takes away resources and disk space.
By desktop, do yo u mean this one, which you mentioned earlier. Is this the one that comes with the GUI that you don't like.
https://wiki.amahi.org/index.php/GUI_In ... Express_CD

I think you also mentioned VNC, but recommended against it, b/c it's in beta ?\pp.
http://www.amahi.org/apps/vnc

And the idea might be to supplement these with http://cyberduck.ch/ ?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Installed MediaWiki

Postby bigfoot65 » Sat Nov 09, 2013 1:21 pm

That is correct. The desktop is what log into the actual HDA as if it were a client. The VNC is what lets you remove into the HDA like remote desktop in Windows.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 6:18 am

OK. Deluged at work all week, but here's an update.

I managed with some basic linux terminal commands to install MathJax (a math extension for mediawiki) so that it runs in remote mode (essentially, the math processing is done remotely). That works fine.

For a number of reasons, I also need to do a local install of MathJax, which requires installing the MathJax package into my local mediawiki (the one that I installed via the Amahi app store). The installation here is a little more involved, but actually it's not too bad, though my problem at present is just getting certain subdirectory locations correct.

I have done this twice before on my local installs of the bitnami mediawiki, so I know how to do it for BItnami. I presume the process should be very similar, since whether it's Amahi or Bitnami's version, it's still mediawiki, though I think there may be some naming differences between some of the subdirectories.

Essentially, the problem is to find the "document root" for the Mediawiki in my Amahi install. Here is a Bitnami forum question (see link) I posted back in January as well as the moderator response that solved my problem for Bitnami.

The link is below, but here is an excerpt of the Bitnami Forum moderator's response:
beginning of quote:

The DocumentRoot is the folder that contains the root folder (i.e.: http://localhost/) and in a BitNami stack is placed at:
<installdir>/apache2/htdocs/
Also, the content server by Mediawiki in the BitNami Mediwiki stack is located at
<installdir>/apps/mediawiki/htdocs/"

end of quote.

Can anyone let me know where to find the analogous directories in the case for Amahi ?

Here's the original bitanmi forum link:
http://community.bitnami.com/t/installi ... awiki/9945

Thanks very much !

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Installed MediaWiki

Postby bigfoot65 » Sat Nov 16, 2013 7:17 am

Document root for most apps is /var/hda/web-apps/appname/html. In the case of mediawiki, it's going to be /var/hda/web-apps/mediawiki/html

The Amahi wiki is our primarary source of info. You may find help there for a lot of things as well.
https://wiki.amahi.org
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 4:17 pm

Thank you. Will do.

Question: I need to use "git" to download something to the document root you mentioned. I've used git in terminal mode of my mac in the past, and just tested it to bring that math app down to a directory on my mac harddrive and it worked.

However, when I logged into the server (via ssh), "git" is not known. The specific error was as follows:
[admin@localhost html]$ git
-bash: git: command not found

I found this on the wiki (copied link below), but not certain this is what I need, or, if it's dated. Didn't see anything in the Q&A forums regarding git. Just looking for the command line app. I figured it would be built into fedora (bin directory), but if it's not, is there any easy was to install it from some online source.

https://wiki.amahi.org/index.php/Git_and_Gitweb

Thanks

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 4:22 pm

This is what I'm trying to put into the document root. I was trying to ssh into the server and then invoke the git command. Git is the quickest way to do, but they offer some alternatives.

http://docs.mathjax.org/en/latest/installation.html

Thanks

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 4:25 pm

I just found this, will give it a try:

$ yum install git

http://git-scm.com/download/linux

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Installed MediaWiki

Postby bigfoot65 » Sat Nov 16, 2013 4:33 pm

Yes that is what you need to do.

I prefer not to install git, so I just download the files from github as a zip file. Then I move them to where they need to go. Ensures I have control and prevents from potential breakage of an app or worse, the HDA.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 5:02 pm

OK. Should I not install git, then ? I guess I can do what you describe. A couple of weeks ago I did a wget to bring some files down to the server.

If I do what you describe, does that mean I bring the .zip file to my local hard drive first, before moving it to the server ?
Actually, there are two technical questions:
1) if you do first bring the .zip file to a local hard drive, do you unzip it all in the hard drive before moving them to the server? (That would be my preference since I have no idea how to unzip while in the server via online commands.)
2) How do you copy from the hard drive to the server. As I said, I had no problem using wget to pull files from the internet, but is there a quick way, perhaps via ssh-ing and issuing a terminal command, to copy from the hard drive of a laptop into the hard drive of the server subdirectory (which is what this would be), to the server. So far, I've been getting along with terminal commands to do my various manipulations.

Thanks

galoisienne2
Posts: 125
Joined: Sun Nov 03, 2013 6:06 am

Re: Installed MediaWiki

Postby galoisienne2 » Sat Nov 16, 2013 5:16 pm

How about the following general approach:

1) issue a wget from the server (via ssh) into a temp folder.
2) issue a command to unzip this file. Not sure what this command would be (i'm assuming it exists) or, how to specify how where to put its output. The intention would be to put the unzipped output (which is simply a subdir called mathjax) into the mediawiki document root.

Is that how you might accomplish sans use of git ?

I'll test part (1) on my laptop directory to see what I can do and see if I can find an unzip command within my mac, but I'm asking because I want to tread lightly and be sure of what I'm doing when actually working with the server.

Thanks again.

Who is online

Users browsing this forum: No registered users and 32 guests