Results 1 to 10 of 10

Thread: [SOLVED] localhost and phpmyadmin

  1. #1
    Join Date
    May 2008
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Red face [SOLVED] localhost and phpmyadmin

    Being a total noob... Screwed up bigtime.

    I am trying to make lampp server and could not access phpmyadmin so i followed some forum advice - made changes and can access it via 127.0.1.1 and it works fine but I lost my localhost. I either get 404 or am taken to that subject in the wikipedia depending on the access method.

    Sure could use some help.

    Thanks,
    lou

  2. #2
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: localhost and phpmyadmin

    So when you type in
    http://localhost/
    what does it do.
    IS it only phpmyadmin that does not work.
    Have you edited your hosts file?

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  3. #3
    Join Date
    May 2008
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: localhost and phpmyadmin

    if i go to http://127.0.1.1/phpmyadmin all works fine but if I try
    http://localhost/ (in firefox) I am taken to the wikipedia, subject localhost. If go to 127.0.1.1/index.php i access my site but any links referencing localhost gets me a 404.

    And yes, I did try to edit my hosts file but that did not seem to work.

    thanks

  4. #4
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: localhost and phpmyadmin

    Whats the contents off your hosts file?

    Code:
    sudo gedit /etc/hosts
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  5. #5
    Join Date
    May 2008
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: localhost and phpmyadmin

    127.0.0.1 site
    127.0.1.1 louis-laptop

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

  6. #6
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: localhost and phpmyadmin

    127.0.0.1 localhost

    Add that to the top

    Then
    Code:
    sudo /etc/init.d/apache2 restart
    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  7. #7
    Join Date
    May 2008
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: localhost and phpmyadmin

    That did it!!!

    Phpmyadmin works too!!

    thanks,
    lou

  8. #8
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: localhost and phpmyadmin

    NO problem.

    Please mark as thread.Thank YOu

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  9. #9
    Join Date
    May 2008
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: localhost and phpmyadmin

    How do I do this?

  10. #10
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: localhost and phpmyadmin

    Thread Tools at the top on top of your first post.

    Mark As Solved.

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •