phpmyadmin, problems over network :(


#1

hi, does anyone know the answer to my problem? i alterd my phpmyadmin folder to be accessable by other computers, so i know i have permission but everytime i try to open the phpmyadmin directory from another computer pages wont load because it is trying to find the pages on ‘localhost’ when it should be looking at the computers ip. do you know how i can change this?

E.G the file is http://192.168.1.3/phpmyadmin/index.php
but it looks for http://localhost/phpmyadmin.php

any ideas? thanks!


#2

Have the user point their browser at

http://192.168.1.3/phpmyadmin/index.php
and not
http://localhost/phpmyadmin.php

Unless I am missing something in your question?

Presumably you also have a webserver running on that machine as well.


#3

if the IP doesn’t work your website at all, if yes then you should be able to t to yor derectory,

if not check if you can PING the IP, if yes try to access computer, if no check your rotaring tables


#4

sorry my post didnt make much sense did it, basically when i look at the phpmyadmin on the local computer it looks for things through localhost, that is good. but when i look at it through a differant computer it still looks for it through localhost, but it is not the local computer so it wont find the files, is there anyway i can stop phpmyadmin refuring to files through localhost and to the computers ip?


#5

Honestly, I?ve never installed PHPAdmin, but are there any config file or variables?

Windows way to solve that without thinking is change ?hosts? file on a server

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

Chanhe 127.0.0.1 to 192.168.1.3 in that way it will request network computer not a local computer no mater if it is ftom different location