Apache links to others drives

Discussion in 'Server Operation' started by sfunk1x, Jan 24, 2011.

  1. sfunk1x

    sfunk1x New Member

    Hey all -

    I've having a heck of a time attaching seperate drives to my apache server. I have tried soft symlinks as well as adding .conf files to my Ubuntu 10.10 apache2 server httpd.conf file. The error log for apache2 simply says "/var/www/media does not exist". My httpd.conf file contains the following:

    Alias /music/ /media/FunkMedia2/music
    <Directory /media/FunkMedia2/music>
            Options Indexes MultiViews
            AllowOverride None
    What exactly am I doing wrong here?
  2. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    df -h
  3. sfunk1x

    sfunk1x New Member

    df -h:

    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sdc5              14G   12G  1.3G  91% /
    none                 1001M  388K 1000M   1% /dev
    none                 1005M  1.3M 1004M   1% /dev/shm
    none                 1005M  320K 1005M   1% /var/run
    none                 1005M     0 1005M   0% /var/lock
    none                 1005M     0 1005M   0% /lib/init/rw
    /dev/sdb1             1.4T  578G  729G  45% /media/FunkMedia2
    /dev/sdc5 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    none on /dev type devtmpfs (rw,mode=0755)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/gulp/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=gulp)
    /dev/sdb1 on /media/FunkMedia2 type ext4 (rw,nosuid,nodev,uhelper=udisks)
  4. sfunk1x

    sfunk1x New Member

    So, the solution to this problem was to make the FunkMedia2 folder eXecutable to the 'Other' group. I'm not comprehending that completely, but it seemed to fix the problem. Considering I'm not actually executing anything, just reading - that's what throwing me off. But I'm glad I figured it out finally. :)

    Thank you!

Share This Page