Thanks for your reply. I have used port forwarding to use web installer from my laptop and installed it.
Now I am getting 301 moved permanently error and 500 internal server error.
From my laptop I logged in with the node in which I want to install Mediawiki as below:
ssh -C -L 9999:localhost:80 s7
Then I opened the browser from my laptop as http://s7:9999/mediawiki and installed the mediawiki.
After I tried to ssh with s7 as usual and if I try to access with wget I got the following error:
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://s7:9999/mediawiki/index.php/Main_Page [following]
--2018-06-14 16:57:31-- http://s7:9999/mediawiki/index.php/Main_Page
Resolving s7 (s7)... 10.10.2.8
Connecting to s7 (s7)|10.10.2.8|:9999... failed: Connection refused.
Then I changed
$wgServer = "http://s7:9999"; to
$wgServer = "http://localhost";
in LocalSettings.php. But still I am getting the same error.
wget http://localhost/mediawiki
--2018-06-14 17:01:33-- http://localhost/mediawiki
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://localhost/mediawiki/ [following]
--2018-06-14 17:01:33-- http://localhost/mediawiki/
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://localhost/mediawiki/index.php/Main_Page [following]
--2018-06-14 17:01:33-- http://localhost/mediawiki/index.php/Main_Page
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 500 Internal Server Error
I would like to know how to solve this error. I would like to appreciate any help.