leifg
09.05.03, 13:20
ich hab extra ne schön große partition um da mein web-server zeux drauf zu kloppen. die is gemountet unter /data. fstab sieht so aus:
[QUOTE]
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 errors=remount-ro 0 1
/dev/hda1 none swap sw 0 0
/dev/hdb1 /data ext3 defaults,user 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
[QUOTE]
die pladde "gehört" einem user:
drwxr--r-- 8 leifg samba 4.0k 9. Mai 14:07 data
wenn ich das apache verzeichnis nach /var/www lege, funzt alles einwandfrei. auch wenn ich es nach /var/www2 lege ist das ganze kein problem (dazu stelle ich "DocumentRoot /var/www" und "<Directory /var/www/>" in der /etc/apache/httpd.conf um). aber immer wenn ich mit dem browser drauf zugreifen will kommt folgende seite:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
You don't have permission to access /
on this server.<p>
<hr>
<address>Apache/1.3.26 Server at malter.genserts Port 80</address>
</body></html>
woran kann das liegen. Ich hab hier noch meine /var/log/apache/error.log:
[Fri May 9 13:59:10 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:11 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:11 2003] [warn] pid file /var/run/apache.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri May 9 13:59:12 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:12 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 13:59:12 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 13:59:12 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:00:04 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:00:05 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:00:06 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:00:06 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:00:06 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:00:06 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:01:24 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:01:25 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:01:26 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:01:26 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:01:26 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:01:26 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:02:06 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:02:08 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:02:09 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:02:09 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:02:09 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:02:09 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:04:32 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:04:34 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:04:34 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:04:34 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:11:22 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:11:24 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:11:24 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:11:24 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
das verzeichnis /data/www hat folgende berechtigungen:
drwxr-xr-x 9 www-data www-data 4.0k 21. Apr 19:21 www
danke im voraus
[QUOTE]
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 errors=remount-ro 0 1
/dev/hda1 none swap sw 0 0
/dev/hdb1 /data ext3 defaults,user 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
[QUOTE]
die pladde "gehört" einem user:
drwxr--r-- 8 leifg samba 4.0k 9. Mai 14:07 data
wenn ich das apache verzeichnis nach /var/www lege, funzt alles einwandfrei. auch wenn ich es nach /var/www2 lege ist das ganze kein problem (dazu stelle ich "DocumentRoot /var/www" und "<Directory /var/www/>" in der /etc/apache/httpd.conf um). aber immer wenn ich mit dem browser drauf zugreifen will kommt folgende seite:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
You don't have permission to access /
on this server.<p>
<hr>
<address>Apache/1.3.26 Server at malter.genserts Port 80</address>
</body></html>
woran kann das liegen. Ich hab hier noch meine /var/log/apache/error.log:
[Fri May 9 13:59:10 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:11 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:11 2003] [warn] pid file /var/run/apache.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri May 9 13:59:12 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 13:59:12 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 13:59:12 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 13:59:12 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:00:04 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:00:05 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:00:06 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:00:06 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:00:06 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:00:06 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:01:24 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:01:25 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:01:26 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:01:26 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:01:26 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:01:26 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:02:06 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:02:08 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:02:09 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Fri May 9 14:02:09 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:02:09 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:02:09 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:04:32 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:04:34 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:04:34 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:04:34 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri May 9 14:11:22 2003] [notice] caught SIGTERM, shutting down
[Fri May 9 14:11:24 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations
[Fri May 9 14:11:24 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Fri May 9 14:11:24 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
das verzeichnis /data/www hat folgende berechtigungen:
drwxr-xr-x 9 www-data www-data 4.0k 21. Apr 19:21 www
danke im voraus