Yes that was indeed the problem. My /home/admin was 700 although I had
fixed permissions is /home/admin/py_run. Changing /home/admin
permissions to 755 fixed it.
Thanks

On Jul 10, 10:32 am, Graham Dumpleton <[email protected]>
wrote:
> You are missing a WSGIProcessGroup directive to go with your
> WSGIDaemonProcess directive. That isn't the cause of your problem.
>
> The problem is more likely because the user that Apache runs as can't
> read into your /home/admin directory because there is no permission
> for others to read into it. Ie., home directory is rwxr-x--- and not
> rwxr-xr-x. That or permissions on stuff in it prevents it.
>
> The other option is that you have SELinux enabled and it is stopping
> Apache from reading stuff in that location.
>
> Graham
>
> On 10 July 2012 15:22, RedBaron <[email protected]> wrote:
>
>
>
>
>
>
>
> > I know this question has been asked many times and you have patiently
> > answered it each time. But those solutions are not working for me. I
> > have already looked at the wiki and checked my installation. I have
> > standard python 2.6 installed on my system. I have also created a
> > virtual environment to host my pyramid project. I built mod_wsgi by
> > using ./configure then make and make install. The python path was /usr/
> > bin/python (Standard system python).
> > Here are the ldd outputs
>
> > My virtual env
> > # ldd /home/admin/py_run/bin/python
> >         linux-vdso.so.1 =>  (0x00007fff49963000)
> >         libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0
> > (0x0000003d79c00000)
> >         libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d6d800000)
> >         libdl.so.2 => /lib64/libdl.so.2 (0x0000003d6d000000)
> >         libutil.so.1 => /lib64/libutil.so.1 (0x0000003d7d000000)
> >         libm.so.6 => /lib64/libm.so.6 (0x0000003d6e000000)
> >         libc.so.6 => /lib64/libc.so.6 (0x0000003d6d400000)
> >         /lib64/ld-linux-x86-64.so.2 (0x0000003d6cc00000)
>
> > # ldd /usr/bin/python
> >         linux-vdso.so.1 =>  (0x00007fffa9d67000)
> >         libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0
> > (0x0000003d79c00000)
> >         libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d6d800000)
> >         libdl.so.2 => /lib64/libdl.so.2 (0x0000003d6d000000)
> >         libutil.so.1 => /lib64/libutil.so.1 (0x0000003d7d000000)
> >         libm.so.6 => /lib64/libm.so.6 (0x0000003d6e000000)
> >         libc.so.6 => /lib64/libc.so.6 (0x0000003d6d400000)
> >         /lib64/ld-linux-x86-64.so.2 (0x0000003d6cc00000)
>
> > # ldd /usr/lib64/httpd/modules/mod_wsgi.so
> >         linux-vdso.so.1 =>  (0x00007fff4df4f000)
> >         libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0
> > (0x00007f85aa0e7000)
> >         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f85a9ecb000)
> >         libdl.so.2 => /lib64/libdl.so.2 (0x00007f85a9cc6000)
> >         libutil.so.1 => /lib64/libutil.so.1 (0x00007f85a9ac3000)
> >         libm.so.6 => /lib64/libm.so.6 (0x00007f85a983f000)
> >         libc.so.6 => /lib64/libc.so.6 (0x00007f85a94af000)
> >         /lib64/ld-linux-x86-64.so.2 (0x0000003d6cc00000)
>
> > The LD_LIBRARY_PATH variable is not set. I have configured
> > WSGIPythonHome as WSGIPythonHome /home/admin/py_run (Where py_run is
> > my virtual environment). But on restarting apache I get the following
> > error in the log
>
> > [error] mod_wsgi (pid=28815): Unable to import 'site' module.
>
> > If I remove the WSGIPythonHome entry and just leave the following in
> > the application config
>
> > WSGIApplicationGroup %{GLOBAL}
> > WSGIPassAuthorization On
> > WSGIDaemonProcess pyramid user=apache group=apache \
> >            python-path=/home/admin/py_run/lib/python2.6
> > #Alias your project. n my case localhost:8080/argus calls up the home
> > page
> > WSGIScriptAlias /scrooge /opt/jinja_proj/pyramid.wsgi
> > # Get the static and favicon.ico pages working by properly aliasing
> > them
> > Alias /favicon.ico /opt/jinja_proj/jinja_proj/static/images/
> > favicon.ico
> > Alias /static /opt/jinja_proj/jinja_proj/static
> > <Directory /opt/jinja_proj>
> >   Order allow,deny
> >   Allow from all
> > </Directory>
>
> > Then there is no error on start, but on accessing the website, I get a
> > 500 error with the following log entries
>
> > [error] [client 31.21.18.100] mod_wsgi (pid=28818): Target WSGI script
> > '/opt/jinja_proj/pyramid.wsgi' cannot be loaded as Python module.
> > [Tue Jul 10 10:39:00 2012] [error] [client 31.21.18.100] mod_wsgi
> > (pid=28818): Exception occurred processing WSGI script '/opt/
> > jinja_proj/pyramid.wsgi'.
> > [Tue Jul 10 10:39:00 2012] [error] Traceback (most recent call last):
> > [Tue Jul 10 10:39:00 2012] [error]   File "/opt/jinja_proj/
> > pyramid.wsgi", line 1, in <module>
> > [Tue Jul 10 10:39:00 2012] [error]     from pyramid.paster import
> > get_app
> > [Tue Jul 10 10:39:00 2012] [error] ImportError: No module named
> > pyramid.paster
>
> > However from the virtualenv py_run I can import both these modules.
> > Any help is appreciated
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "modwsgi" 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 
> > athttp://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to