My first instincts would be to see if you can write a script that would read a dummy file for you. I.e. see if you could get it to read /home/klacey/dummy.txt or something and output the data to you.
Plus if you have php, creating a file with phpinfo() in there might be able to tell you what modules are loaded, and if mod_chroot's in there, at least you know that you could have an issue there. I realise I'm flogging the chroot horse a lot, but it's an easy one to forget, especially on other systems. Better yet, if you could write a script telling you where it thinks it's located, you can say "Right, so this is the filesystem that the webserver sees". After that, you know where to put your files so they're visible. :) Hope this helps even a bit, Regards, Aoife 2008/11/7 Christian Kortenhorst <[EMAIL PROTECTED]>: > its not in site-packages just have it in > /home/klacey/modulecatalogue.hosting/docs/django and have set the path to be > PythonPath "['/home/klacey/ > modulecatalogue.hosting/docs'] + sys.path > > ls -l /home/klacey/modulecatalogue.hosting/docs/django > rwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:44 http > -rw-r--r-- 1 klacey klacey 299 2008-11-05 16:22 __init__.py > -rw-r--r-- 1 klacey klacey 622 2008-11-05 16:22 __init__.pyc > drwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:44 middleware > drwxr-xr-x 4 klacey klacey 4096 2008-11-06 11:44 newforms > drwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:45 oldforms > drwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:45 shortcuts > drwxr-xr-x 4 klacey klacey 4096 2008-11-06 11:45 template > drwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:45 templatetags > drwxr-xr-x 3 klacey klacey 4096 2008-11-06 11:46 test > drwxr-xr-x 5 klacey klacey 4096 2008-11-06 11:47 utils > drwxr-xr-x 5 klacey klacey 4096 2008-11-06 11:48 views > > > > On 11/6/08, Tim Kersten <[EMAIL PROTECTED]> wrote: >> >> You're really sure django's permissions are set correctly? What does >> ls -l of the django folder inside the site-packages say? >> >> >> Tim ^,^ >> >> >> >> >> >> On Thu, Nov 6, 2008 at 11:05 PM, Christian Kortenhorst <[EMAIL PROTECTED]> >> wrote: >> > Is there any way that i can find out what modpython and user www-data >> > are >> > doing with my configuration? >> > >> > Thank you >> > >> > On 11/6/08, Christian Kortenhorst <[EMAIL PROTECTED]> wrote: >> >> >> >> Thank you a lot more all this, got it working on my own server but not >> >> in >> >> shared server. Seams like there is something wrong with my python path. >> >> >> >> My setup: >> >> >> >> <VirtualHost *> >> >> ServerName django.namit.org >> >> DocumentRoot /var/www/ >> >> LogLevel warn >> >> >> >> <Directory "/var/www"> >> >> Options -Indexes >> >> </Directory> >> >> >> >> <Location "/"> >> >> SetHandler python-program >> >> PythonHandler django.core.handlers.modpython >> >> SetEnv DJANGO_SETTINGS_MODULE myproject_site.settings >> >> PythonOption django.root /myproject_site >> >> PythonDebug On >> >> PythonPath "['/home'] + sys.path" >> >> </Location> >> >> >> >> </VirtualHost> >> >> >> >> ls /home >> >> drwxr-xr-x 20 namit www-data 4.0K 2008-11-05 16:22 django >> >> drwxr-xr-x 7 namit www-data 4.0K 2008-11-05 22:03 >> >> myproject_site >> >> >> >> mine works >> >> >> >> Hosting company: >> >> drwxr-xr-x 20 klacey www-data 4096 2008-11-06 11:48 django >> >> drwxr-xr-x 6 klacey www-data 4096 2008-11-05 19:56 myproject_site >> >> >> >> <VirtualHost *> >> >> ServerAdmin [EMAIL PROTECTED] >> >> ServerName modulecatalogue.hosting >> >> # ServerAlias >> >> >> >> DocumentRoot /var/www/modulecatalogue.hosting/docs >> >> >> >> ErrorLog /var/www/modulecatalogue.hosting/logs/error.log >> >> >> >> # Possible values include: debug, info, notice, warn, error, crit, >> >> # alert, emerg. >> >> LogLevel warn >> >> >> >> Customlog /var/www/modulecatalogue.hosting/logs/access.log combined >> >> >> >> <Location "/"> >> >> SetHandler python-program >> >> PythonHandler django.core.handlers.modpython >> >> SetEnv DJANGO_SETTINGS_MODULE myproject_site.settings >> >> PythonOption django.root /myproject_site >> >> PythonDebug On >> >> PythonPath "['/home/klacey/modulecatalogue.hosting/docs'] + >> >> sys.path" >> >> </Location> >> >> >> >> </VirtualHost> >> >> >> >> on hosting company i get >> >> Mod_python error: "PythonHandler django.core.handlers.modpython" >> >> ... >> >> ImportError: No module named django >> >> >> >> Thank you >> >> >> >> On 11/5/08, Aoife Hughes <[EMAIL PROTECTED]> wrote: >> >>> >> >>> If you're still having problems after all they've said, check that >> >>> your webserver isn't running in a chroot. If it is, it may not see >> >>> /home/mycode, and may have to be relocated inside the chroot. >> >>> >> >>> Hope this helps, >> >>> Aoife >> >>> >> >>> 2008/11/5 Christian Kortenhorst <[EMAIL PROTECTED]>: >> >>> >> >>> > So been wrecking my head about installing django with mod_python on >> >>> > a >> >>> > server >> >>> > that i have limited root access to (by this i mean i have to ask >> >>> > hosting >> >>> > company to do some stuff and then they might say no). >> >>> > >> >>> > So have installed python on my own personal box debian etch, django >> >>> > version >> >>> > 0.97 and have it up and running when i run my project >> >>> > python manage.py runserver 192.168.1.4:8080 >> >>> > >> >>> > directory structure: >> >>> > /home/mycode/ >> >>> > |-- __init__.py >> >>> > |-- __init__.pyc >> >>> > |-- coursedb >> >>> > |-- etc.. >> >>> > >> >>> > /home/django/ >> >>> > |-- __init__.py >> >>> > |-- __init__.pyc >> >>> > |-- bin >> >>> > |-- conf >> >>> > |-- core >> >>> > |-- etc.... >> >>> > >> >>> > But when i configure apache >> >>> > >> >>> > <Location "/coursedb"> >> >>> > SetHandler python-program >> >>> > PythonHandler django.core.handlers.modpython >> >>> > SetEnv DJANGO_SETTINGS_MODULE coursedb.settings >> >>> > PythonDebug On >> >>> > PythonPath "['/home/mycode'] + sys.path" >> >>> > </Location> >> >>> > >> >>> > and then go to visit on it in lynx it just shows up >> >>> > >> >>> > Mod_python error: "PythonHandler django.core.handlers.modpython" >> >>> > ..... >> >>> > ImportError: Could not import settings 'coursedb.settings' (Is it on >> >>> > sys.path? Does it have syntax >> >>> > errors?): No module named settings >> >>> > >> >>> > the django svn install is in /home/django and I put a ln to >> >>> > /usr/local/bin >> >>> > so could run django-admin anywhere. >> >>> > >> >>> > Can anyone help me? >> >>> > n.b: i can change a lot on my own server but when i move to shared >> >>> > hosting >> >>> > server it will be a lot harder to configure, so just wanted all the >> >>> > code for >> >>> > django and my app to be in my home directory and get apache to run >> >>> > it >> >>> > througt mod python. but i seam to be doing something wrong. >> >>> > >> >>> > -- >> >>> > Christian Kortenhorst >> >>> > mob: +353-(0)87-6183349 >> >>> > home: +353-(0)1-4966287 >> >>> > >> >>> > > >> >>> > >> >>> >> >>> >> >> >> >> >> >> >> >> -- >> >> >> Christian Kortenhorst >> >> mob: +353-(0)87-6183349 >> >> home: +353-(0)1-4966287 >> > >> > >> > -- >> > Christian Kortenhorst >> > mob: +353-(0)87-6183349 >> > home: +353-(0)1-4966287 >> > > >> > >> >> > > > > -- > Christian Kortenhorst > mob: +353-(0)87-6183349 > home: +353-(0)1-4966287 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
