[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache + mpm-itk + scponlyc



Hallo !

Ich hab mir auf einem Testrechner folgende Konfiguration geschaffen

Debian Etch (alles aktuell)
apache2-mpm-itk (multiuser apache)
php5
mysql5
scponly (funktionierend, gabs ja probleme bei adm64 systemen)

Nun habe ich mir einen Benutzer 'mt' angelegt. www als writeable directory.
Sieht dann so aus:

ls -la /home/mt/
total 28
drwxr-xr-x  7 root root 4096 Jul 28 09:38 .
drwxr-xr-x  3 root root 4096 Jul 25 19:20 ..
drwxr-xr-x  2 root root 4096 Jul 25 19:20 bin
drwxr-xr-x  2 root root 4096 Jul 25 19:20 etc
drwxr-xr-x  3 root root 4096 Jul 25 19:20 lib
drwxr-xr-x  4 root root 4096 Jul 25 19:20 usr
drwxrwx--- 14 2001 2001 4096 Jul 21 13:50 www

Dann noch eine apache Vhost konfig datei:

<VirtualHost 11.22.33.44:81>
        RewriteEngine On
        ServerAdmin webmaster@mt.de
        DocumentRoot /home/mt/www/

        <Directory /home/mt/www/>
                Options FollowSymlinks
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        <Directory /home/www/mt/storage/audio/>
                MusicLister         On
                MusicAllowStream    On
        </Directory>

        ErrorLog /var/log/apache2/www.mt.de_error.log
        CustomLog /var/log/apache2/www.mt.de_access.log combined

        <IfModule mpm_itk_module>
                AssignUserId mt mt
        </IfModule>
</VirtualHost>

Mit html files in diesem www directory funktioniert das alles. Nun will ich aber
dieses www directory auf ein nfs share auslagern.

also noch ein mount auf eine nfs freigabe nach /var/www2
dadurch gibt es in /var/www2/mt/ mit den html und php files drinnen

nun noch ein
ls -n /var/www2/mt /home/mt/www
welches mir dieses dir direkt in das home directory linkt.

ich könnte das auch gleich direkt dahin mounten, wollte ich aber nicht, da ich
ja noch andere domains gerne laufen haben möchte.

problem:

apache log:
Symbolic link not allowed or link target not accessible: /home/mt/www

su -s /bin/sh mt
ls -la /home/www/mt
permission denied.

Ok denke mal einfach so nen link ins homedirectory geht halt nicht.
probier ich also mit fstab und bind usw mir das direkt dahin zu linken, geht
auch nicht.

Über irgendwelche ansätze wie ich jetzt mal von mehreren verschiedenen domains
mir über nfs verzeichnisse in die einzelnen homedirectories linken könnte wäre
ich jetzt wirklich dankbar ;)

Mit freundlichen Grüßen

Robert Bude


Reply to: