Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I can't reach http://localhost/ . Apache works, but it looks like he doesn't find the files. (404 Not Found) I tried to re-install apache, but nothing changed... I think ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2

    Apache localhost not found


    Hello,

    I can't reach http://localhost/. Apache works, but it looks like he doesn't find the files. (404 Not Found)
    I tried to re-install apache, but nothing changed...
    I think the setting of the webroot path is wrong, but in wich file can i change it?

    It worked before I installed php with the snmp extension...

    Thx.

  2. #2
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Quote Originally Posted by final fantasy
    Hello,

    I can't reach http://localhost/. Apache works, but it looks like he doesn't find the files. (404 Not Found)
    I tried to re-install apache, but nothing changed...
    I think the setting of the webroot path is wrong, but in wich file can i change it?

    It worked before I installed php with the snmp extension...

    Thx.
    /usr/local/apache/conf/httpd.conf
    or look for httpd.conf elsewhere by
    Code:
    locate httpd.conf
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2
    I found the error.
    My path was correct.
    But in the conf.d/apache2 i had to change APACHE2_OPTS="-D SSL -D PHP5" into APACHE2_OPTS="-D SSL -D PHP5 -D DEFAULT_VHOST".

    Now I'm trying to get php back working!

  4. $spacer_open
    $spacer_close

Posting Permissions

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