PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 14, 2022

[FIXED] I'm not able to access localhost on my linux m/c running Apache/2.2.14 (Ubuntu)

 January 14, 2022     apache2, html, lamp, linux, php     No comments   

Issue

Accessing http://localhost or http://127.0.0.1 gives me a 404 URL not found error. This is in spite of me having apache 2.2.14 running on my PC (the apache process is started). Any help in this regard will be appreciated. Thank you!


Solution

If you're getting a 404 not found it means that the server is running but can't find the document you're looking for.

If you look in your Apache config file you'll find a setting for "document root". Place a file called "index.html" in that directory.

This usually defaults to /var/www on Ubuntu.

For more info you can check the Ubuntu community site



Answered By - Andy
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing