Default Web site and http://local host with MySQL

Posted on 2011-10-21
Last Modified: 2012-08-14
Hi, Way back when i set up our Local Intranet (IIS6) Windows 2003 std, i deleted the Default Web Site and created a web site with a new name which lives on the E Drive.
If i enter http://localhost i get page cannot be displayed, to view the website on the server i enter http://<ipaddressofserver>. Client PC's can access the website fine by its hostname.
I plan to introduce a members area to our Intranet so i have installed php5.2 and mysql5.5 and will download a software bolt on that is wizard based as i dont know SQL.
After i had installed  Mysql and ran the My SQL Administrator , i wasnt able to enter the hostname or ip address of the server in the server host field, but had to enter localhost. As http://localhost doesnt work as i deleted the Default WebSite, i guess its going to cause me problems having MySQL set to localhost?
Hopefully that sort of makes sense.
Question by:Rick_Penney
    LVL 59

    Accepted Solution

    It sounds like potentially you are dealing with multiple IP addresses. In IIS, you have the option to have IIS serve its pages to all bound addresses or just one in particular. If you change that, then http://localhost should work just fine. Further, MySQL is database and not web, so its port is typically not 80 by default; therefore, its hostname and port should not collide. Consequently, you have the same option for MySQL to set which IP address it is bound to via its bind-address option.

    Author Comment

    The Server has 2 network cards, one of which is disabled.
    I looked at the properties of the website and on the tab which shows the ip address of the server, i clicked on Advanced, in the Multiple identities for this website was just the ip address of the server, i clicked on add and added All Unassigned, port 80 to this list which added the entry default, port 80.
    http://localhost/ now works correctly,  many thanks for that.
    My SQL is set to port 3306, i'll look at the binding when i'm back in the office on Monday.
    Thanks again for your quick reply and detailed explanation.

    Author Comment

    I've requested that this question be closed as follows:

    Accepted answer: 0 points for Rick_Penney's comment http:/Q_27409012.html#37010665

    for the following reason:

    quick reply and good explanation, thank you.

    Author Comment


    Sorry i clicked on the wrong accept as solution, please can you reward all point to mwvisa1: and thank you for your help
    LVL 59

    Expert Comment

    by:Kevin Cross
    Glad that helped, Rick_Penney! Objecting to the auto-close, as that should allow you to select proper comment http:#37007446 as solution.
    Best regards and happy coding,


    Author Closing Comment

    Thanks again for all your help, regards , Rick

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now