On Fri, Jan 15, 2010 at 12:48:22PM +1100, Graham Dumpleton wrote: > 2010/1/15 Graham Dumpleton <[email protected]>: >> 2010/1/15 Giel van Schijndel <[email protected]>: >>> On Fri, Jan 15, 2010 at 11:57:43AM +1100, Graham Dumpleton wrote: >>>> 2010/1/15 Giel van Schijndel <[email protected]>: >>>>> On 14 jan, 00:27, mog <[email protected]> wrote: >>>>>> On 13/01/2010 21:47, Graham Dumpleton wrote: >>>>>>> So, at least so you can move forward try with embedded mode, but I may >>>>>>> keep quizzing you about things so can work out why daemon mode isn't >>>>>>> working on FreeBSD. >>>>>> >>>>>> Yeah I'll do that, I need to crack on with the new project and make >>>>>> some progress with migrating the old ones. That's no problem, if I >>>>>> can help or provide more info that will assist with solving the >>>>>> issue, I'll certainly do what I can. I'd still like to be able to >>>>>> use daemon mode one day :) >>>>> >>>>> Thus I'm subscribing as another tester should you need one. >>>> >>>> If you are both using mod_wsgi 3.1, can you instead try mod_wsgi 2.8. >>>> >>>> There were changes to how threads were managed on daemon process side >>>> in mod_wsgi 3.1 and want to eliminate that as a cause. >> >> Can you give me the result of running: >> >> ldd mod_wsgi.so >> >> for .so file from both mod_wsgi 2.8 and mod_wsgi 3.1.
> [g...@hyde:~]$ ldd > /usr/tmp/usr/ports/www/mod_wsgi/work/mod_wsgi-2.8/.libs/mod_wsgi.so > /usr/tmp/usr/ports/www/mod_wsgi/work/mod_wsgi-2.8/.libs/mod_wsgi.so: > libpython2.6.so => /usr/local/lib/libpython2.6.so (0x28300000) > libutil.so.7 => /lib/libutil.so.7 (0x281a8000) > libm.so.5 => /lib/libm.so.5 (0x281b6000) > libc.so.7 => /lib/libc.so.7 (0x28080000) > libthr.so.3 => /lib/libthr.so.3 (0x281cb000) > [g...@hyde:~]$ ldd > /usr/tmp/usr/ports/www/mod_wsgi3/work/mod_wsgi-3.1/.libs/mod_wsgi.so > /usr/tmp/usr/ports/www/mod_wsgi3/work/mod_wsgi-3.1/.libs/mod_wsgi.so: > libpython2.6.so => /usr/local/lib/libpython2.6.so (0x28300000) > libutil.so.7 => /lib/libutil.so.7 (0x281ad000) > libm.so.5 => /lib/libm.so.5 (0x281bb000) > libc.so.7 => /lib/libc.so.7 (0x28080000) > libthr.so.3 => /lib/libthr.so.3 (0x281d0000) >> I am presuming here you are installing binary packages and not >> something compiled from source code. Correct? I'm using FreeBSD ports. Which is a source-based distribution system. (Similar to Gentoo's portage, if you're familiar with that). >> One other possibility besides mod_wsgi 3.1 code changes, is whether >> linked with same threading libraries. I understand that on some BSD >> systems there are multiple threading libraries. > > Another request. When Apache is installed, it creates a 'build' > install directory where apxs files are. In that directory is a file > called 'config.nice', eg., > > /usr/share/httpd/build/config.nice > > I would like to see the contents of that. Its contents: > [g...@hyde:~]$ cat /usr/local/share/apache22/build/config.nice > #! /bin/sh > # > # Created by configure > > CC="cc"; export CC > CFLAGS="-O2 -fno-strict-aliasing -pipe -I/usr/local/include/mysql > -DHAVE_MYSQL_H -I/usr/include -DLDAP_DEPRECATED"; export CFLAGS > CPPFLAGS="-I/usr/local/include"; export CPPFLAGS > LDFLAGS=" -L/usr/local/lib/mysql -pthread -rpath=/usr/lib:/usr/local/lib > -L/usr/lib -L/usr/local/lib"; export LDFLAGS > "./configure" \ > "--enable-layout=FreeBSD" \ > "--with-perl=/usr/local/bin/perl5.8.9" \ > "--with-port=80" \ > "--with-expat=/usr/local" \ > "--with-iconv=/usr/local" \ > "--enable-http" \ > "--with-pcre=/usr/local" \ > "--disable-authn-file" \ > "--disable-authn-default" \ > "--disable-authz-host" \ > "--disable-authz-groupfile" \ > "--disable-authz-user" \ > "--disable-authz-default" \ > "--disable-auth-basic" \ > "--disable-charset-lite" \ > "--disable-include" \ > "--disable-log-config" \ > "--disable-env" \ > "--disable-setenvif" \ > "--disable-mime" \ > "--disable-status" \ > "--disable-autoindex" \ > "--disable-asis" \ > "--disable-cgid" \ > "--disable-cgi" \ > "--disable-negotiation" \ > "--disable-dir" \ > "--disable-imagemap" \ > "--disable-actions" \ > "--disable-userdir" \ > "--disable-alias" \ > "--disable-filter" \ > "--disable-proxy" \ > "--disable-proxy-connect" \ > "--disable-proxy-ftp" \ > "--disable-proxy-http" \ > "--disable-proxy-ajp" \ > "--disable-proxy-balancer" \ > "--enable-so" \ > "--with-suexec-caller=www-data" \ > "--with-suexec-uidmin=1000" \ > "--with-suexec-gidmin=1000" \ > "--with-suexec-userdir=public_html" \ > "--with-suexec-docroot=/usr/local/www/data" \ > "--with-suexec-safepath=/usr/local/bin:/usr/local/bin:/usr/bin:/bin" \ > "--with-suexec-logfile=/var/log/httpd-suexec.log" \ > "--with-suexec-bin=/usr/local/sbin/suexec" \ > "--enable-mods-shared=auth_basic auth_digest authn_file authn_dbd authn_dbm > authn_anon authn_default authn_alias authz_host authz_groupfile authz_user > authz_dbm authz_owner authz_default cache disk_cache file_cache dav dav_fs > ldap authnz_ldap actions alias asis autoindex cern_meta cgi charset_lite > deflate dir dumpio env expires headers imagemap include info log_config logio > mime mime_magic negotiation rewrite setenvif speling status unique_id userdir > usertrack vhost_alias filter version ssl suexec suexec" \ > "--with-dbm=db41" \ > "--with-berkeley-db=/usr/local" \ > "--with-mysql=/usr/local" \ > "--with-pgsql=/usr/local" \ > "--with-sqlite3=/usr/local" \ > "--with-ssl=/usr" \ > "--with-ldap" \ > "--with-ldap-lib=/usr/local/lib" \ > "--with-ldap-include=/usr/local/include" \ > "--enable-v4-mapped" \ > "--enable-threads" \ > "--enable-nonportable-atomics" \ > "--with-mpm=prefork" \ > "--prefix=/usr/local" \ > "--mandir=/usr/local/man" \ > "--infodir=/usr/local/info/" \ > "--build=i386-portbld-freebsd7.2" \ > "build_alias=i386-portbld-freebsd7.2" \ > "CC=cc" \ > "CFLAGS=-O2 -fno-strict-aliasing -pipe -I/usr/local/include/mysql > -DHAVE_MYSQL_H -I/usr/include -DLDAP_DEPRECATED" \ > "LDFLAGS= -L/usr/local/lib/mysql -pthread -rpath=/usr/lib:/usr/local/lib > -L/usr/lib -L/usr/local/lib" \ > "LIBS=" \ > "CPPFLAGS=-I/usr/local/include" \ > "$@" -- With kind regards, Giel van Schijndel - Interlink <www.il.fontys.nl>
signature.asc
Description: Digital signature
