Find the answer to your Linux question:
Results 1 to 7 of 7
guys i have ubuntu 8.10 Server version: Apache/2.2.9 (Ubuntu) when i invoke localhost esult 404 Not Found the apache log error says [Mon Jul 13 17:39:40 2009] [notice] Apache/2.2.9 (Ubuntu) ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    65

    apache2 problem

    guys i have ubuntu 8.10
    Server version: Apache/2.2.9 (Ubuntu)
    when i invoke localhost esult
    404 Not Found
    the apache log error says
    [Mon Jul 13 17:39:40 2009] [notice] Apache/2.2.9 (Ubuntu) configured -- resuming normal operations
    [Mon Jul 13 17:39:56 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
    [Mon Jul 13 17:40:33 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
    [Mon Jul 13 17:40:33 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
    [Mon Jul 13 17:40:34 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
    [Mon Jul 13 17:41:16 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
    i have purged apache2 , apache2.2-common and reinstalled but still no success?

    any help ?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    make the directory or file htdocs under the server's root

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    65
    yes , that solved , i made a directory at the root htdocs , but now it opens that directory when i make localhost at the browser , what configuration directive which makes it back to /var/www


    that is the file /etc/apache2//sites-available/default
    i don't have any other hosts
    <VirtualHost *:80>
    ServerAdmin webmaster@localhost


    DocumentRoot /var/www/
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    open up terminal execute this code
    Code:
    for i in `find /etc/apache2/*` ; do grep -i htdocs $i && echo $i ; done
    this will tell you what file the htdocs is set in (hopefully)

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    65
    nothing is displayed , i m sorry

  6. #6
    Just Joined!
    Join Date
    Aug 2005
    Posts
    65
    even teh folder etc has

    Code:
    for i in `find /etc/*` ; do grep -i htdocs $i && echo $i ; done
    ./apparmor.d/abstractions/web-data: /srv/www/htdocs/ r,
    ./apparmor.d/abstractions/web-data: /srv/www/htdocs/** r,
    ./ffserver.conf:#File "/usr/local/httpd/htdocs/tlive.rm"
    ./ffserver.conf:#File "/usr/local/httpd/htdocs/test.asf"
    ./ffserver.conf:#File "/usr/local/httpd/htdocs/test1.mpg"
    ./ffserver.conf:#File "/usr/local/httpd/htdocs/test1.mpg"
    nothing direct toward through /htdocs , is it something by default in apache2 ?

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    65
    anyway it is solved i just added teh line

    DocumentRoot "/var/www"
    it solved it , thx for ur help

Posting Permissions

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