Apache is running under the user/group apache I added chgrp'd apache to the directory (recursively) and chmod'd as well.
Still the errors. I also added apache to the group bestx. This is the group that the user 'thebest' belongs to. On Jun 6, 6:07 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > What user does apache run as - set group read permissions (at least) to that. > > If you're using Ubuntu or Debian, it is likely "www-data", so the > following commands (as root) would do the trick: > > chgrp -R www-data /home/thebest/TheBest/ > chmod -R g+r /home/thebest/TheBest/ > > -joe > > On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to push a beta build of an App I wrote to my Apache server > > but, I'm running into some problems (I'm pretty sure it's permission > > related) > > > Here's the details. > > > httpd.conf > > [code] > > <Location "/"> > > SetHandler python-program > > PythonPath "['/home/thebest/TheBest/alpha1'] + sys.path" > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE TheBest.settings > > PythonDebug On > > </Location> > > [/code] > > > /home/thebest/TheBest/alpha1/TheBest is the root of the Django project > > (contains __init__.py) > > > I can successfully run stuff like manage.py validate / shell / > > runserver > > > So I KNOW the App can see the settings but, when I try to load the web- > > side of it i get > > > [code] > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > **snip** > > EnvironmentError: Could not import settings 'TheBest.settings' > > (Is it on sys.path? Does it have syntax errors?): No module named > > TheBest.settings > > [/code] > > > I know the paths are correct and everything is in the right place so > > I'm left thinking Apache just doesn't have the proper permissions > > here. > > > [code] > > [EMAIL PROTECTED] alpha1]# ls -al > > total 24 > > drwxr-xr-x 3 thebest bestx 4096 Jun 6 15:31 . > > drwxr-xr-x 3 thebest bestx 4096 Jun 6 15:31 .. > > drwxr-xr-x 9 thebest bestx 4096 Jun 6 15:35 TheBest > > [/code] > > > [code] > > [EMAIL PROTECTED] TheBest]# ls -al > > drwxr-xr-x 9 thebest bestx 4096 Jun 6 15:35 . > > drwxr-xr-x 3 thebest bestx 4096 Jun 6 15:31 .. > > drwxr-xr-x 2 thebest bestx 4096 Jun 6 15:35 CRON > > -rwxr-xr-x 1 thebest bestx 82 Jun 6 15:31 ._.DS_Store > > -rwxr-xr-x 1 thebest bestx 6148 Jun 6 15:30 .DS_Store > > drwxr-xr-x 2 thebest bestx 4096 Jun 6 15:30 xapp > > -rwxr-xr-x 1 thebest bestx 0 May 25 12:25 __init__.py > > -rwxr-xr-x 1 thebest bestx 141 May 29 17:48 __init__.pyc > > -rwxr-xr-x 1 thebest bestx 546 May 25 12:25 manage.py > > drwxr-xr-x 2 thebest bestx 4096 May 30 13:55 media > > drwxr-xr-x 2 thebest bestx 4096 Jun 6 15:30 xapp > > drwxr-xr-x 2 thebest bestx 4096 Jun 6 15:30 xapp > > drwxr-xr-x 2 thebest bestx 4096 Jun 6 15:30 SCRIPTS > > -rwxr-xr-x 1 thebest bestx 4096 Jun 6 15:34 ._settings.py > > -rwxr-xr-x 1 thebest bestx 3169 Jun 6 15:34 settings.py > > -rwxr-xr-x 1 root root 2343 Jun 6 15:35 settings.pyc > > drwxr-xr-x 6 thebest bestx 4096 Jun 6 10:26 templates > > -rwxr-xr-x 1 thebest bestx 4382 Jun 6 15:32 ._urls.py > > -rwxr-xr-x 1 thebest bestx 2758 Jun 6 14:13 urls.py > > -rwxr-xr-x 1 thebest bestx 5259 Jun 6 14:14 urls.pyc > > [/code] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---