www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > General

    General Discussion and support for your general issues associated with web design.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 01-16-2006, 12:00 PM
    Dandaweb Dandaweb is offline
    Registered User
     
    Join Date: Jan 2006
    Posts: 4
    Question Accessing http://localhost through Home Network

    hi,

    My desktop is running WinXP Pro IIS Web Server. I access that through localhost while using it.

    When on my laptop (win xp home), i can use my browser and open http://192.168.1.2/ and see all the websites with no problem.

    but, if while on my laptop, i try to use myphpadmin, i see all the links try to open http://localhost/anything which gives me an error. I can't use phpmyadmin. MySQL databases work fine. I just don't have access to phpmyadmin links.

    the question: How can i access my Local Web Server from my laptop using http://localhost??

    I guess one solution would be to edit phpmyadmin config files, but i prefer to avoid that.

    any ideas??

    thanks!
    Reply With Quote
      #2  
    Old 01-16-2006, 01:20 PM
    Daniel T's Avatar
    Daniel T Daniel T is offline
    Awesome Dude
     
    Join Date: Nov 2003
    Location: Canada
    Posts: 1,893
    Here's a better solution: in config.inc.php (phpmyadmin), look for $cfg['PmaAbsoluteUri'] (line 32 in mine, yours might be different) and give it a blank value:
    PHP Code:
    $cfg['PmaAbsoluteUri'] = '';
    Reply With Quote
      #3  
    Old 01-16-2006, 01:44 PM
    Dandaweb Dandaweb is offline
    Registered User
     
    Join Date: Jan 2006
    Posts: 4
    yeah!

    Oh man, beautiful!

    thanks!

    D.
    Reply With Quote
      #4  
    Old 01-16-2006, 01:49 PM
    Dandaweb Dandaweb is offline
    Registered User
     
    Join Date: Jan 2006
    Posts: 4
    But,

    Now i get this red line on phpMyAdmin home..

    The $cfg['PmaAbsoluteUri'] directive MUST be set in your configuration file!

    Weird.. i saw on the config file, a comment saying that this line does not need to be specified.

    should i care?
    Reply With Quote
      #5  
    Old 01-16-2006, 04:41 PM
    Daniel T's Avatar
    Daniel T Daniel T is offline
    Awesome Dude
     
    Join Date: Nov 2003
    Location: Canada
    Posts: 1,893
    If it's working fine without it set, just ignore the message. But, if you experience problems, you could give it the following value:
    PHP Code:
    $cfg['PmaAbsoluteUri'] = 'http://192.168.1.2/phpmyadmin/';
    (or wherever the phpmyadmin directory is-- just make sure to use the IP of the hosting computer instead of LOCALHOST)

    This is not recommended though, since it will not work when you try to access phpmyadmin from a computer outside your network. If it's not giving you problems, just leave it blank
    Reply With Quote
      #6  
    Old 01-16-2006, 04:54 PM
    felgall's Avatar
    felgall felgall is offline
    Computer Consultant
     
    Join Date: Mar 2005
    Location: Sydney, Australia
    Posts: 7,979
    localhost is supposed to be the web server on the actual computer you are on since its URL is always 127.0.0.1

    what I did instead for my local network was to update the hosts file to assign a domain name (eg. local.home) to the ip address of the computer running the web server.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 10:08 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.