Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
Ok, My server and client are both 192.168.1.2. I wasn't aware the suEXEC was even enabled. I honestly didn't touch anything in the httpd.conf file but... I suppose the error ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    weird


    Ok,

    My server and client are both 192.168.1.2. I wasn't aware the suEXEC was even enabled. I honestly didn't touch anything in the httpd.conf file but... I suppose the error HAS to do with the config files. What amazes me is that I always view httpd.conf as a regular user and I don't have write access.
    Code:
    [brock@parker apache]$ tail error.log
    [Thu Mar  6 13:36:17 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
    [Thu Mar  6 13:36:17 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Mar  6 13:52:37 2003] [notice] caught SIGTERM, shutting down
    [Thu Mar  6 15:14:19 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
    [Thu Mar  6 15:14:19 2003] [alert] apache: Could not determine the server's fully qualified domain name, using 192.168.1.2 for ServerName
    [Thu Mar  6 15:14:19 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
    [Thu Mar  6 15:14:19 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
    [Thu Mar  6 15:14:19 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
    [Thu Mar  6 15:14:19 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Mar  6 15:15:12 2003] [error] [client 192.168.1.2] client denied by server configuration: /usr/share/doc/apache
    This was the last log on the access.log. Just contained information about the client system trying to get files I guess.
    Code:
    192.168.1.2 - - [06/Mar/2003:15:15:12 -0500] "GET /doc/apache/ HTTP/1.1" 403 289 "http://192.168.1.2/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1"
    The best things in life are free.

  2. #12
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Try getting a file that you know is in /usr/share/doc/apache, but through the /doc/apache virtual directory.

  3. #13
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Dolda,

    ... Exactly how would I do get the file through virtual directory?
    The best things in life are free.

  4. #14
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Access http://127.0.0.1/doc/apache/file.html (assuming that "file.html" is a file in /usr/share/doc/apache).

  5. #15
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Dolda,

    Yea, when I try to access something like 127.0.0.1/doc/apache/intro.html, I get the same error telling me that I don't have access. I've checked that directory and all files are readable by the user.
    The best things in life are free.

  6. #16
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Then there's something in the config file. Try to find anything relevant in it (try searching for "doc").
    What apache version do you use?

  7. #17
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    This is the info I dug up. What still confuses me is that I was able to see this page the first time I installed apache. I'm using v1.3.26 which is the default stable debian version. The ONLY thing I installed after was the apache-doc.
    Code:
    Alias /doc/ /usr/share/doc/
    
    <Location /doc>
      order deny,allow
      deny from all
      allow from 127.0.0.0/255.0.0.0
      Options Indexes FollowSymLinks MultiViews
    </Location>
    I still haven't read everything about apache and the modules and directives yet so none of this makes much sense to me write now but if you could just tell me what I'm doing wrong for now, I assure you I will read the modules and directives at a later time.
    The best things in life are free.

  8. #18
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    understood

    OK,

    After reading the directives, this part of the configuration is clear. I'd like to thank all those that helped, especially dolda.
    The best things in life are free.

  9. #19
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Dolda,

    What does the following code do? I can't make out the second line with the move command.
    Code:
    for file in /etc/rc?.d/S??apache; do mv $file $&#123;file%/*&#125;/K20$&#123;file##*/S??&#125;; done
    The best things in life are free.

  10. #20
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Those things are really, really useful. They are fully documented in bash(1). Search for ${parameter#word} in the manpage. Remember, less searches with regexps, so you'll have to escape $, { and } (therefore searching for \$\{parameter#word\}). If you didn't know, searches in less are initiated by typing a slash.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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