mod_python problem

Sdävtaker sdavtaker at
Wed Apr 22 12:03:21 PDT 2009

Im having some problems trying to get mod_python working.
I got DFBSD 2.2r, and installed from pkgsrc apache22 and ap2-python,
both from last pkgsrc version.
 (updated pkg-src with make pkgsrc-update) and the install of both
pkgs was bmake install straight foward.
When i run  "apachectl start" I get
httpd: Syntax error on line 416 of /usr/pkg/etc/httpd/httpd.conf:
Can't locate API module structure `mod_python' in file
/usr/pkg/lib/httpd/ Undefined symbol "mod_python"
At httpd.conf i got:

. ..
LoadModule php5_module lib/httpd/
AddHandler application/x-httpd-php .php

LoadModule wsgi_module lib/httpd/
LoadModule mod_python lib/httpd/
AddHandler python-program .py


And i had added to /usr/pkg/sbin/envvars-std:

LD_PRELOAD=/usr/lib/  # or


Any idea whats wrong?
Thanks for any help

More information about the Users mailing list