Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1404  / 2 Years ago, mon, june 20, 2022, 8:57:22

So I have new MediaWiki instance install on a brand new Amazon EC2 instances. All is going swimmingly, until I have to log in via the web browser to configure it. Since I'm running on a hosted server, I can't hit http://localhost/mediawiki/config/index.php like the instructions say to.



If I try to hit it via http://<My IP address>/mediawiki/config/index.php, my browser just tries to download the file because anonymous browsing isn't enabled. I seem to be before LocalSettings.php is created, so I don't know how to move forward from here.


More From » server

 Answers
6

Actually there is a splendid generic way of accessing remote resources as if they were local.



ssh -L 8080:localhost:80 username@EC2machine


this will tunnel the port 80 (the http protocol) , on your EC2 instance to your own computers loopback interface on the port 8080



Simply typing http://localhost:8080 on your computers web browser will redirect the request to your EC2 instance through the created SSH tunnel



the reason i choose 8080 instead of 80 for the loopback interface port, is that ports below 1024 are privileged and require sudo to be used.


[#38822] Wednesday, June 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;