Ich bin neu hier und bräuchte mal euren Rat in einer Sache
Und zwar bin ich bei meinem aktuellen Django Projekt auf ein Problem gestoßen.
Ich möchte eine Zeile aus der Datei "/etc/bootptab" löschen. Das funktioniert auch soweit wenn ich das Ganze über den Django Development Server als Root starte.
Wenn ich dies jedoch über den Apache (mit mod_python unter Ubuntu 11.04) laufen lasse, bekomme ich folgende Fehlermeldung:
"OSError at /complete/0000
[Errno 13] Permission denied"
Die Datei /etc/bootptab gehört dem Apache User www-data und hat versuchshalber auch die Oktalrechte 777.
Hier ist meine Vhost Config:
Code: Alles auswählen
<VirtualHost *:80>
ServerAdmin webmaster@localhost
SetEnv DJANGO_SETTINGS_MODULE myadmin.settings
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options +ExecCGI Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Code: Alles auswählen
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE myadmin.settings
PythonDebug On
PythonPath "['/var/www', '/var/www/myadmin'] + sys.path"
</Location>
<Location "/media">
SetHandler None
</Location>
<Location "/phpmyadmin">
SetHandler None
</Location>
Vorab vielen Dank!
Viele Grüße, Rush08