Thank you again for helping. FYI, I am using Fedora Core 6. I set
'PythonHandler mod_python.testhandler' in httpd.conf and got a bunch
of info. The sys.path appears to be correct...relevant bits, and then
full text beneath.

sys.path containes /home/benrawk

REQUEST_URI     /mysite/
SCRIPT_NAME     /mysite
PATH_INFO       /
PATH_TRANSLATED /var/www/html/index.html
***Is this Path being translated correctly?***

DOCUMENT_ROOT   /var/www/html
SCRIPT_FILENAME /var/www/html/mysite
***There is no "mysite" script under the Document root, is this being
interpreted correctly?***

*******FULL TEXT*********
Apache version  Apache/2.2.3 (Fedora)
Apache threaded MPM     No (single thread MPM)
Apache forked MPM       Yes, maximum 256 processes
Apache server root      /etc/httpd
Apache document root    /var/www/html
Apache error log        /etc/httpd/logs/error_log (view last 100 lines)
Python sys.version      2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1
20061011 (Red Hat 4.1.1-30)]
Python sys.path:
/home/benrawk
/usr/lib/python2.4/site-packages/setuptools-0.6c1-py2.4.egg
/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg
/usr/lib/python24.zip
/usr/lib/python2.4
/usr/lib/python2.4/plat-linux2
/usr/lib/python2.4/lib-tk
/usr/lib/python2.4/lib-dynload
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/Numeric
/usr/lib/python2.4/site-packages/gtk-2.0

Python interpreter name www.benrawk.com
mod_python.publisher available  Yes
mod_python.psp available        Yes

DJANGO_SETTINGS_MODULE  mysite.settings
GATEWAY_INTERFACE       CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD  GET
QUERY_STRING
REQUEST_URI     /mysite/
SCRIPT_NAME     /mysite
PATH_INFO       /
PATH_TRANSLATED /var/www/html/index.html
HTTP_HOST       localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9)
Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text
HTTP_ACCEPT     text/xml,application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE    en-us,en;q=0.5
HTTP_ACCEPT_ENCODING    gzip,deflate
HTTP_ACCEPT_CHARSET     ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL      max-age=0
PATH    /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
Apache/2.2.3 (Fedora) Server at localhost Port 80
SERVER_SOFTWARE Apache/2.2.3 (Fedora)
SERVER_NAME     localhost
SERVER_ADDR     ::1
SERVER_PORT     80
REMOTE_ADDR     ::1
DOCUMENT_ROOT   /var/www/html
SCRIPT_FILENAME /var/www/html/mysite
REMOTE_PORT     39639

On Mar 22, 10:42 pm, "Graham Dumpleton" <[EMAIL PROTECTED]>
wrote:
> On Mar 23, 2:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote:
>
> > Also, when I import and print sys.path into a python session, with
> > apache running in the background, sys.path does not include '/home/
> > benrawk'. Is it supposed to? Is there a way I can check the value of
> > PythonPath as it is defined in httpd.conf?
>
> Presuming you are using a recent version of mod_python, change your
> PythonHandler directive to:
>
>   PythonHandler mod_python.testhandler
>
> The result of accessing stuff under /mysite will then be a big page of
> information about the request and the environment of Python
> interpreter being used. One of the things will be sys.path and you can
> then verify it is what you expect.
>
> BTW, what OS are you using. Are you perhaps using one of the SELinux
> enabled variants? These systems can put extra access controls on top
> of normal stuff when using Apache such that it may not be enough for
> files to be readable by Apache. I don't understand the full
> implications of using SELinux or how to set it up but it may be an
> issue if you are using it so be clear in stating what environment you
> are using.
>
> Graham


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to