All set.
Now my setup is running fine.

Thank you.
You saved me loads of work.

On Sun, Dec 11, 2011 at 3:58 PM, Graham Dumpleton <
[email protected]> wrote:

> You have either set up Directory directive wrong or have permissions
> issue. Watch the presentation:
>
>
> http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations
>
> which explains these common errors.
>
> Otherwise give the error messages from Apache error log at time this
> happens so can tell you, as the presentation does, what the problem
> is.
>
> Graham
>
> On 11 December 2011 21:18, lankesh87 <[email protected]> wrote:
> > I am running opensuse 11.4, python 2.6.7 and apache2.2
> >
> > I downloaded the mod_wsgi-3.3.tar.gz. It didn't work.
> > Then I installed mod_wsgi from opensuse repo and now it is working
> > fine.
> >
> > But when I run my code from Directory apache gave an Access Forbidden
> > Error.
> > Error Code:403
> >
> > Thank you for helping me.
> >
> > Cheers.
> >
> > On Dec 11, 8:25 am, Graham Dumpleton <[email protected]>
> > wrote:
> >> Which mod_wsgi source code are you using?
> >>
> >> The '-Wl,-F -framework' options are from Mac and you are on Linux.
> >>
> >> If you are trying to use mod_wsgi source code from repo, I may have
> >> broken non Mac build.
> >>
> >> Otherwise, make sure you ran a:
> >>
> >>   make distclean
> >>
> >> and rerun configure in mod_wsgi source code before rebuilding.
> >>
> >> Graham
> >>
> >> On 11 December 2011 10:20, lankesh87 <[email protected]> wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > I am not able to understand what this error is all about:
> >>
> >> > /usr/sbin/apxs2-worker -c   mod_wsgi.c -Wl,-F -framework
> >> > /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic
> >> > -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -
> >> > funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall
> -fno-strict-
> >> > aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
> >> > pthread -I/usr/include/apache2-worker  -I/usr/include/apr-1   -I/usr/
> >> > include/apr-1   -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
> >> > In file included from Python.h:8:0,
> >> >                 from mod_wsgi.c:135:
> >> > pyconfig.h:1031:0: warning: "_POSIX_C_SOURCE" redefined
> >> > /usr/include/features.h:158:0: note: this is the location of the
> >> > previous definition
> >> > pyconfig.h:1040:0: warning: "_XOPEN_SOURCE" redefined
> >> > /usr/include/features.h:160:0: note: this is the location of the
> >> > previous definition
> >> > mod_wsgi.c: In function ‘wsgi_server_group’:
> >> > mod_wsgi.c:949:17: warning: unused variable ‘value’
> >> > mod_wsgi.c: In function ‘Log_isatty’:
> >> > mod_wsgi.c:1606:15: warning: unused variable ‘result’
> >> > mod_wsgi.c: In function ‘Log_writelines’:
> >> > mod_wsgi.c:1743:17: warning: unused variable ‘msg’
> >> > mod_wsgi.c: In function ‘Adapter_output’:
> >> > mod_wsgi.c:3022:9: warning: unused variable ‘n’
> >> > mod_wsgi.c: In function ‘Adapter_file_wrapper’:
> >> > mod_wsgi.c:4036:15: warning: unused variable ‘result’
> >> > mod_wsgi.c: In function ‘wsgi_python_term’:
> >> > mod_wsgi.c:5643:20: warning: unused variable ‘tstate’
> >> > mod_wsgi.c:5642:25: warning: unused variable ‘interp’
> >> > mod_wsgi.c: In function ‘wsgi_python_child_init’:
> >> > mod_wsgi.c:6792:17: warning: unused variable ‘l’
> >> > mod_wsgi.c:6690:25: warning: unused variable ‘interp’
> >> > mod_wsgi.c: In function ‘wsgi_add_import_script’:
> >> > mod_wsgi.c:7443:17: warning: unused variable ‘error’
> >> > mod_wsgi.c: In function ‘wsgi_add_handler_script’:
> >> > mod_wsgi.c:7891:26: warning: unused variable ‘dconfig’
> >> > mod_wsgi.c:7890:23: warning: unused variable ‘sconfig’
> >> > mod_wsgi.c: In function ‘wsgi_hook_handler’:
> >> > mod_wsgi.c:8937:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8939:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8941:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8945:39: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8965:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8967:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c:8970:13: warning: suggest parentheses around assignment
> >> > used as truth value
> >> > mod_wsgi.c: In function ‘wsgi_daemon_worker’:
> >> > mod_wsgi.c:10279:20: warning: unused variable ‘duration’
> >> > mod_wsgi.c:10278:20: warning: unused variable ‘start’
> >> > mod_wsgi.c: In function ‘wsgi_hook_daemon_handler’:
> >> > mod_wsgi.c:12499:9: warning: unused variable ‘i’
> >> > mod_wsgi.c:12497:30: warning: unused variable ‘elts’
> >> > mod_wsgi.c:12496:31: warning: unused variable ‘head’
> >> > mod_wsgi.c: At top level:
> >> > mod_wsgi.c:7854:20: warning: ‘wsgi_set_user_authoritative’ defined but
> >> > not used
> >> > mod_wsgi.c:14413:12: warning: ‘wsgi_hook_check_user_id’ defined but
> >> > not used
> >> > /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o
> >> > mod_wsgi.la  -rpath /usr/lib64/apache2-worker -module -avoid-
> >> > version    mod_wsgi.lo -Wl,-F -framework
> >> > libtool: link: the `-framework' option requires an argument
> >> > libtool: link: Try `libtool --help --mode=link' for more information.
> >> > apxs:Error: Command failed with rc=65536
> >> > .
> >> > make: *** [mod_wsgi.la] Error 1
> >>
> >> > thanks in advance
> >>
> >> > On Dec 11, 3:31 am, Graham Dumpleton <[email protected]>
> >> > wrote:
> >> >> Search mod_wsgi docs for --enable-shared. You need to use this
> option when
> >> >> building your Python installation from source code so that it has a
> shared
> >> >> library which mod_wsgi can link to.
> >>
> >> >> Graham
> >>
> >> >> On Sunday, 11 December 2011, lankesh87 <[email protected]> wrote:
> >> >> > Hi,
> >> >> >   I am new to python and want to use mod_wsgi for my project but I
> >> >> > cannot install it.
> >>
> >> >> > I am getting this error:
> >>
> >> >> >
> "/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/
> >> >> > bin/ld: /usr/local/lib/libpython2.6.a(abstract.o): relocation
> >> >> > R_X86_64_32 against `.rodata.str1.8' can not be used when making a
> >> >> > shared object; recompile with -fPIC
> >> >> > /usr/local/lib/libpython2.6.a: could not read symbols: Bad value
> >> >> > collect2: ld returned 1 exit status
> >> >> > apxs:Error: Command failed with rc=65536
> >> >> > .
> >> >> > make: *** [mod_wsgi.la] Error 1"
> >>
> >> >> > when I type this
> >>
> >> >> > " ./configure --with-apxs="/usr/sbin/apxs2-worker"
> --with-python="/usr/
> >> >> > local/bin/python2.6""
> >>
> >> >> > --
> >> >> > 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.
> >>
> >> > --
> >> > 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.
> >
>
> --
> 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.
>
>

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