[SPAM] Re: [mod_python] [SPAM] please recompile it with -DEAPI..

mario curiel mario at avepublishing.com
Wed Jun 20 19:52:47 EDT 2007


Graham

thanks,

I am looking for a way to access via web pages page, databases via  
python
I will check for those software, and update one of the machines with  
apache (but it doesnt seem easy in mac)

Alberto

On 18/06/2007, at 05:11 PM, Graham Dumpleton wrote:

> Even if you get past the -DEAPI issue with mod_python 2.7.X with
> Apache 1.3 on Mac OS X there are other problems in that old version of
> mod_python that will cause it to crash on Mac OS X, especially when
> performing an Apache restart.
>
> I would strongly recommend against using mod_python 2.7.X and instead
> install a newer version of Apache and use a newer version of
> mod_python.
>
> If for some reason you really don't want to upgrade then you could dig
> up patches to get it working from old mailing list posts, but as I
> said, it wouldn't be my first choice although I will still point you
> in the right direction if you want to do that.
>
> If your reason for wanting mod_python is to host a Python application
> framework or application which supports WSGI, eg. Django, TurboGears,
> MoinMoin, Trac etc, then I would instead suggest you give mod_wsgi
> (www.modwsgi.org) a go. This will work straight out of the box with
> Apache 1.3 on MacOS X.
>
> Since mod_wsgi exists and will work with your configuration, if you
> don't want to upgrade to a newer version of Apache and are doing what
> you want because you want to learn about web programming in Python,
> you might be better off looking at WSGI based frameworks rather than
> mod_python. With WSGI there are standalone Python web servers as well
> as mod_wsgi, so your choices are greater.
>
> Graham
>
> On 19/06/07, mario curiel <mario at avepublishing.com> wrote:
>>
>>
>> Hello, on another machine I have
>> MAC OSX server 10.4.9,
>> PPC,
>> Server version: Apache/1.3.33 (Darwin)
>> mod_python-2.7.11
>>
>>
>> like the server admin only uses apache 1.3.33, (pre-installeted)  
>> then I
>> installed mod_python-2.7.11
>>
>> then error in httpd  is:
>> [Mon Jun 18 10:43:02 2007] [warn] Loaded DSO
>> /usr/libexec/httpd/mod_python.so uses plain Apache 1.3 API,
>> this module might crash under EAPI! (please recompile it with -DEAPI)
>>
>> any idea how to recompile it with -DEAPI?
>> which program has to be recompiled with -deapi ? the httpd or the  
>> program
>> mod_python ?
>>
>> thanks a lot
>>
>> Alberto
>>
>>
>> root# httpd
>> [Mon Jun 18 10:46:59 2007] [warn] Loaded DSO
>> /usr/libexec/httpd/mod_python.so uses plain Apache 1.3 API,
>> this module might crash under EAPI! (please recompile it with -DEAPI)
>> Processing config directory: /etc/httpd/sites/*.conf
>>  Processing config file:
>> /etc/httpd/sites/0000_10.129.0.37_80_www.NN.com.conf
>>  Processing config file:
>> /etc/httpd/sites/0004_10.129.0.37_80_www.YY.com.mx.conf
>>  Processing config file:
>> /etc/httpd/sites/virtual_host_global.conf
>>
>> root# CFLAGS="-DEAPI" ./configure --with-apxs=/usr/sbin/apxs
>> loading cache ./config.cache
>> checking for gcc... (cached) gcc
>> checking whether the C compiler (gcc -DEAPI ) works... yes
>> checking whether the C compiler (gcc -DEAPI ) is a cross- 
>> compiler... no
>> checking whether we are using GNU C... (cached) yes
>> checking whether gcc accepts -g... (cached) yes
>> checking for ranlib... (cached) ranlib
>> checking for ar... (cached) ar
>> checking for a BSD compatible install... (cached) /usr/bin/install -c
>> checking whether make sets ${MAKE}... (cached) yes
>> checking for main in -lm... (cached) yes
>> checking for working const... (cached) yes
>> checking your blood pressure... a bit high, but we can proceed
>> checking whether apxs is available
>> checking for --with-apxs... /usr/sbin/apxs executable, good
>> checking for Apache libexec directory... /usr/libexec/httpd
>> checking for Apache include directory... -I/usr/include/httpd
>> checking for --with-apache... no
>> configure: warning: **** No apache sources specified, static  
>> compilation
>> will not be available.
>> configure: warning: **** You can use --with-apache to specify  
>> where your
>> Apache sources are.
>> checking for --with-python... no
>> checking for python... (cached)
>> /Library/Frameworks/Python.framework/Versions/Current/bin/python
>> checking Python version... 2.5
>> checking whether Python is compiled with thread support... no  
>> threads, good
>> checking Python install prefix...
>> /Library/Frameworks/Python.framework/Versions/2.5
>> checking what libraries Python was linked with...
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> config/libpython2.5.a
>>   -ldl
>> checking linker flags used to link Python...
>> checking where Python include files are...
>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> checking for mkdep... (cached) /usr/bin/mkdep
>> creating ./config.status
>> creating Makefile
>> creating src/Makefile
>> creating src/libpython.module
>> creating Doc/Makefile
>> analyzing dependencies
>>
>>
>> root# make CFLAGS=-deapi
>>
>>  root# make install
>>
>> Performing DSO installation.
>>
>> /usr/bin/install -c src/mod_python.so /usr/libexec/httpd
>> /usr/bin/install -c -d
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python
>> python
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> compileall.py
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python
>> Listing
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/__init__.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/apache.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/cgihandler.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/httpdapi.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/publisher.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/util.py
>> ...
>> Compiling
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
>> site-packages/mod_python/zhandler.py
>> ...
>>
>> Now don't forget to edit your main config and add
>>     LoadModule python_module
>> /usr/libexec/httpd/mod_python.so
>> and if your configuration uses ClearModuleList, then also
>>     AddModule mod_python.c
>>
>> root#httpd
>> [Mon Jun 18 10:52:46 2007] [warn] Loaded DSO
>> /usr/libexec/httpd/mod_python.so uses plain Apache 1.3 API,
>> this module might crash under EAPI! (please recompile it with -DEAPI)
>> Processing config directory: /etc/httpd/sites/*.conf
>>  Processing config file:
>> /etc/httpd/sites/0000_10.129.0.37_80_www.NN.com.conf
>>  Processing config file:
>> /etc/httpd/sites/0004_10.129.0.37_80_www.YY.com.mx.conf
>>  Processing config file:
>> /etc/httpd/sites/virtual_host_global.conf
>>
>>
>>  root# httpd -V
>> Server version: Apache/1.3.33 (Darwin)
>> Server built:   Mar 20 2005 15:08:27
>> Server's Module Magic Number: 19990320:16
>> Server compiled with....
>>  -D EAPI
>>  -D HAVE_MMAP
>>  -D USE_MMAP_SCOREBOARD
>>  -D USE_MMAP_FILES
>>  -D HAVE_FCNTL_SERIALIZED_ACCEPT
>>  -D HAVE_FLOCK_SERIALIZED_ACCEPT
>>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>>  -D DYNAMIC_MODULE_LIMIT=64
>>  -D HARD_SERVER_LIMIT=2048
>>  -D HTTPD_ROOT="/usr"
>>  -D SUEXEC_BIN="/usr/sbin/suexec"
>>  -D DEFAULT_PIDLOG="/var/run/httpd.pid"
>>  -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
>>  -D DEFAULT_LOCKFILE="/var/run/httpd.lock"
>>  -D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
>>  -D TYPES_CONFIG_FILE="/etc/httpd/mime.types"
>>  -D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"
>>  -D ACCESS_CONFIG_FILE="/etc/httpd/access.conf"
>>  -D RESOURCE_CONFIG_FILE="/etc/httpd/srm.conf"
>>
>>
>>
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>>
>



More information about the Mod_python mailing list