On Aug 31, 2006, at 11:39 AM, Owen Davis wrote:

>
> Not being much of an apache wiz, I'm a little stumped by this issue.
> wsgi.py cannot seem to find my startup.py.
> -------------------------
> Apache error_log ->
> PythonHandler mod_python.wsgi: ImportError: No module named startup
>
> Apache httpd.conf ->
> <Location /admin>
>     SetHandler mod_python
>     PythonHandler mod_python.wsgi
>     PythonPath "['/home/odavis/project/LeverageFactors/LeverageAdmin']
> + sys.path"
>     PythonAutoReload Off
>     PythonOption wsgi.application startup::app
> </Location>
>
> startup.py ->
> from paste.deploy import loadapp
> import os
> heredir = os.path.dirname(__file__)
> app = loadapp("config:%s" % os.path.join(heredir, 'test.ini'))
> -----------------------------
>
> I verified that my Pylons home dir
> (/home/odavis/project/LeverageFactors/LeverageAdmin) is most  
> definitely
> in the PythonPath accessible to wsgi.py.
>
> I ran 'chmod 777' on startup.py to eliminate any permissions problems,
> and changed its ownership to the apache user.
>

My guess is one of the parent directories does not grant apache the  
+x bit. Try:

su apache -c 'cat /full/path/startup.py'

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to