Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

using Mediawiki in VMware localhost on (virtual) OpenSuse computer (latest version of distro) in company domain. MediaWiki using sqlite database. I had long latency (slow response) in localhost and also in company's network, so I tried first advice found through Google:

in /etc/hosts change:

127.0.0.1 localhost

to

127.0.0.1:8080 localhost

after restarting server, I cannot already access localhost of this computer (on other company's PC via internet browser, url address is ip address of computer with OpenSuse). Localy (on OpenSuseĀ“s) localhost works fine.

So, I tried to revert this change (removing :8080) and restart server again, but accessing issue is still there. Also tried /etc/init.d/network restart command.

share|improve this question
    
Firstly, make sure there is a tab between the IP address of 127.0.0.1 and the name localhost. Secondly - if you run "ping localhost", does it resolve to 127.0.0.1? –  Adam Thompson Mar 3 at 10:35
    
Adam Thompson: yes, it it tab character between these two items (no spaces). And localhost is accessible on OpenSuse (also ping, yes resolving 127.0.0.1), but on another computer in company´s network now not. –  Jerry1 Mar 3 at 10:55
    
I might be missing something here. On your OpenSuse computer, you can access the Mediawiki site by going to 127.0.0.1:8080, but you can't access it from another computer by going to 192.168.123.123:8080 (assuming 192.168.123.123 is the IP of the OpenSuse server)? –  Adam Thompson Mar 3 at 11:19
    
in browser on OpenSuse (localy): 127.0.0.1 - OK 127.0.0.1:8080 - unable to connect localhost - OK on another PC in company's network: 192.168.109.204 - timeout 192.168.109.204:8080 - timeout Before changing etc/hosts file connection works! –  Jerry1 Mar 3 at 11:23
    
So your OpenSuse server is listening on port 80, and not 8080. If you're running MediaWiki on Apache, check the listenaddress is set to the proper IP of the OpenSuse server, and not 127.0.0.1 –  Adam Thompson Mar 3 at 11:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.