0

I came across a weird situation. My localhost in Ubuntu LAMP installation gives 404 error, when I access http://localhost/.

All the files are in /var/www/ folder. I can use phpmyadmin access which is placed in /usr/shr/ folder. It was working fine earlier. It started happening after I was playing with vhosts. I reverted back all the things, but it doesn't seem to be working.

6
  • there is probably something wrong with your configuration then. it's kind of hard to guess what without seeing. btw, this should probably be either on stackoverflow or serverfault, not on superuser.
    – eis
    Oct 16, 2012 at 6:01
  • Thanks eis for a reply, am the new user so didn't know where to post.I will recheck my config Oct 16, 2012 at 6:51
  • 1
    @eis Please do not tell users to go ask somewhere else. This will lead to cross-posting which is not allowed. If you think a question is off topic and should be migrated, flag it for moderator attention, you don't have to tell the OP. Thanks!
    – slhck
    Oct 16, 2012 at 7:04
  • Dushyant, your question is on-topic here. You don't have to post it on Stack Overflow because you don't face a programming issue and neither on Server Fault because you don't seem to be a server administrator in the professional environment. You might want to post your apache configuration though, we're missing a bit of information here.
    – slhck
    Oct 16, 2012 at 7:04
  • Solved. I solved it by adding virtual host entry of localhost in httpd.conf. Thanks for support Oct 17, 2012 at 5:13

0

You must log in to answer this question.

Browse other questions tagged .