Results 1 to 10 of 10

Thread: Beginner help! Receiving 404 errors while trying to access localhost

  1. #1
    Join Date
    Sep 2008
    Beans
    6

    Beginner help! Receiving 404 errors while trying to access localhost

    i installed ubuntu server edition on my old athlon xp machine. i then installed the ubuntu desktop package so i could have a gui to work with. i then installed webmin and tested to make sure i could login and it works just fine. right now i have the server setup with just a local static IP address (192.168.1.xxx) and when i first started if i typed that into my browser on any machine on the network i would get a real basic web page stating "It works!" so i tried editing the index.html file that i thought was associated with it using the root username and it stopped working...

    exact error:
    404 Not Found. the requested URL/was not found on the server
    Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Server at localhost Port 80

    what i am trying and failing to do is figuring out what directory the site is trying to pull index.html file from. i know 404 errors usually mean the page i was looking for does not exist. thats great...but where can i put my index.html or my test.php file so that it DOES exist. i can't get any farther in any of the guides because i cannot get this simplest thing to work that was working just fine before i started playing around with everything. any ideas?

    edit* after logging in, i just realized i have no virtual hosts...that can't be right.
    Last edited by dalearyous; September 15th, 2008 at 11:15 AM.

  2. #2
    Join Date
    May 2008
    Location
    Center of England
    Beans
    219
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    I'm sure the default directory for Apache is /srv/www

    Make sure that contains an valid HTML file called index.html

    All the best
    vim Java PHP Perl and C a long time ago :/
    ssh_user to ssh in then su to sudo_user. They have to guess 'name' and 'password' X 2 - sudo is good

  3. #3
    Join Date
    Sep 2008
    Beans
    6

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    i thought it was /var/www

    btw, if it helps, localhost/phpmyadmin works

  4. #4
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    how i got mine setup was /var/www/ then do you have your server on static info like 192.168.1.5? because if you do and if you want to log into webmin its this https://192.168.1.5:10000 and its not localhost its whatever your ip address is of the machine.

  5. #5
    Join Date
    Sep 2008
    Beans
    6

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    there must have been something wrong with my install. i got fed up at like 4am and reinstalled ubuntu and started from scratch. since then i have not run into any problems. all my stuff has worked so far and i even got a database going with tables etc...

    i do have a manual ip assigned to the machine and localhost does work but only on the server...for all other machines on network i type in the manual ip.

    now i just need to figure out how to link it with the domain i bought from godaddy.com

  6. #6
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    to do that from godaddy you must have a static ip or if you got DHCP address u want to try no-ip get get a ip address then update it inside your godaddy settings.

  7. #7
    Join Date
    Sep 2008
    Beans
    6

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    well i got that figured out. now when i type in my domain, it takes me to the no-ip domain i setup and my website...however i do not think it works outside my local network. i only have my iphone to try it but it cannot navigate to my page. i have port 80 forwarded to the server...anything else?

    yeah i had a friend try it, he said it forwards to my no-ip domain and then just sits there. i installed the program to update my ip with no-ip.com. whats causing conflict
    Last edited by dalearyous; September 16th, 2008 at 02:58 AM.

  8. #8
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    Have you tried canyouseeme to make sure port 80 isn't being blocked by your isp.

  9. #9
    Join Date
    Sep 2008
    Beans
    6

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    it states port 80 is blocked. but i never really trusted that because on my main gaming machine i have port 6112 opened for battle.net and it states that its not open but i have no trouble hosting games.

  10. #10
    Join Date
    Sep 2008
    Beans
    6

    Re: Beginner help! Receiving 404 errors while trying to access localhost

    well i guess port 80 was blocked. i changed it to 8080 in the /etc/apach2 file and in my no-ip account and it works now.

    now to the fun stuff of the actual design of the website.

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
  •