Main Page: Difference between revisions

From jetwiki
Jump to navigation Jump to search
No edit summary
Line 33: Line 33:


{{ α }}
{{ α }}
==Another Test==
[[File:RmodeHBookImage3.png|right|r-mode image (300 x 225 px)]]
<font color="orange">4 June 2021:</font> I successfully uploaded the "r-mode image" &#8212; shown here, on the right &#8212; from my Mac to the a2Hosting file system.
<ol>
  <li>I pointed my browser to the URL: Tohline.education/SelfGravitatingFluids; this opened the "Main Page" of my MediaWiki app</li>
  <li>I logged into the MediaWiki site; as a result, the "Upload file" link was added to the left-hand menu</li>
  <li>Clicking on this "Upload file" link, a familiar MediaWiki page opened; it allowed me to upload a selected r-mode image from my Mac</li>
  <li>From the a2Hosting's cPanel, I double-clicked on the "File Manager"; I located the file under public_html/SelfGravitatingFluids/images/3/3b</li>
</ol>
<font color="orange">5 June 2021:</font> I found [https://www.siteground.com/kb/how_to_change_my_mediawiki_logo_image/ this URL] useful as I attempted to change my MediaWiki Logo image.
<font color="orange">5 June 2021:</font> via a cPanel-Terminal session, I changed directory to "~/public_html/SelfGravitatingFluids" and &hellip;
<ol>
  <li>Found <font color="green">index.php</font>; its contents were not immediately useful.</li>
  <li>Found <font color="green">LocalSettings.php</font>
  <ol type="a">
    <li>$wgServer = "https://tohline.education"</li>
    <li>$wgScriptPath = "/SelfGravitatingFluids"</li>
    <li>$wgResourceBasePath = $wgScriptPath</li>
    <li>$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];</li>
  </ol>
  </li>
</ol>
<font color="orange">5 June 2021:</font> I realized that, when using the cPanel-File_Manager, I must click on the **name** (e.g., SelfGravitatingFluids) of a directory folder as well as the tiny folder icon in order to see all of the directory's files and sub-directories.
[[File:RmodeImage5big.png|right|200px|r-mode image (300 x 300 px)]]
<font color="orange">5 June 2021:</font> I successfully uploaded the "r-mode image" &#8212; shown here, on the right &#8212; from my Mac to the a2Hosting file system. 
<ol>
  <li>It is 135 x 135 pixels, which is the size used for the replacement MediaWiki Logo; actually, what is displayed here is a 300 x 300 pixel image.</li>
  <li>From the a2Hosting's cPanel, I double-clicked on the "File Manager"; I located the file under public_html/SelfGravitatingFluids/images/8/8b; actually, the displayed image is in ~/images/9/97</li>
  <li>Now, let's try opening the <font color="green">LocalSettings.php</font> file and changing the $wgLogos specification to read:<br />$wgLogos = [ '1x' => "$wgResourceBasePath/images/8/8a/RmodeHBookImage6.png" ];</li>
  <li>That did not work, but the following did:<br />$wgLogos = [ '1x' => "images/8/8a/RmodeHBookImage6.png" ];</li>
  <li>I added the "Self-Gravitating Fluids" label to the same image, then repeated the above-enumerated upload steps.  Now the appropriate Logo can be found at the following location:<br /><font color="red">$wgLogos = [ '1x' => "images/d/d3/RmodeImage8.png" ];</font></li>
</ol>
<font color="orange">5 June 2021:</font> Where do new MediaWiki pages get stored?
<ol>
  <li>Looks like one ''test'' example is at:  ~/www/SelfGravitatingFluids/tests/phpunit/includes/page/</li>
  <li>Perhaps the real thing is at:  ~/www/SelfGravitatingFluids/includes/page/</li>
  <li>Even more likely to be useful:  ~/www/SelfGravitatingFluids/includes/content/<br />
<font color="maroon">88% into ''TextContent.php'' &hellip;</font> "Generates an HTML version of the content, for display.  Used by fillParserOutput() to provide HTML for the ParserOutput object."
  </li>
</ol>
<font color="orange">8 June 2021:</font> SSH and SFTP.
<ol>
  <li>After reading [https://www.a2hosting.com/kb/getting-started-guide/accessing-your-account/using-ssh-secure-shell this document], I learned how &#8212; from my iMac &#8212; to log into the a2Hosting linux servers via a secure shell (SSH; port 7822) session.</li>
  <li>After reading [https://www.a2hosting.com/kb/getting-started-guide/accessing-your-account/using-ftp-with-linux-hosting-accounts a separate document], I followed a2Hosting's advice and installed [https://filezilla-project.org/download.php FileZilla] on my iMac.  This allows me &#8212; via a very pleasant "windowed" interface &#8212; to establish and use SFTP to transfer files from the iMac to my account on a2Hosting servers.</li>
</ol>
<font color="orange">8 June 2021:</font> Contemplate installation of "Math" extension.
<ol>
  <li>Consider reading <font color="darkgreen">www.mediawiki.org/wiki/Manual:Configuration_settings</font></li>
  <li>Steps drawn from: [https://www.mediawiki.org/wiki/Extension:Math#Installation Extension:Math#Installation]
<ul>
<li>Download and place the file(s) in a directory called Math in your extensions/ folder.</li>
<li>Add the following code at the bottom of your ~/SelfGravitatingFluids/LocalSettings.php:
  <ul>
    <li>wfLoadExtension( 'Math' );</li>
  </ul>
</li>
<li>Run the update script which will automatically create the necessary database tables that this extension needs.</li>
</ul>
  </li>
</ol>

Revision as of 14:53, 9 June 2021

MediaWiki has been installed.

Consult the User's Guide for information on using the wiki software.

Getting started

Various Trials & Tests

  1. First (bad) MediaWiki tests
  2. Learning how to modify and enhance the a2Hosting MediaWiki environment.


I'm just testing to see if I'm properly editing. E=mc2

H=dPρ .

Try another way: Template:Math

Template:TeX

Template:Α