as python is so poupular today....many clients had requested that feature..
i tried to install it by myself but with no success
make with errors ():
but it still can make, so i make install and add LoadModule && AddModule into httpd.conf
$ service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Fri Dec 30 14:45:38 2005] [warn] Loaded DSO /usr/lib/apache/mod_python.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
[ OK ]
and Apache rilly crashed. i cant load any web page then
i tried to install it by myself but with no success
make with errors ():
make[1]: Entering directory `/root/mod_python-2.7.11/src'
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o mod_python.o mod_python.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from mod_python.c:54:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from mod_python.c:54:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o _apachemodule.o _apachemodule.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from _apachemodule.c:51:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from _apachemodule.c:51:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o requestobject.o requestobject.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from requestobject.c:51:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from requestobject.c:51:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o tableobject.o tableobject.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from tableobject.c:51:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from tableobject.c:51:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o util.o util.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from util.c:54:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from util.c:54:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o serverobject.o serverobject.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from serverobject.c:51:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from serverobject.c:51:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c -o connobject.o connobject.c
In file included from /usr/local/include/python2.4/Python.h:8,
from /root/mod_python-2.7.11/src/include/mod_python.h:77,
from connobject.c:56:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_config.h:45,
from /usr/local/directadmin/customapache/apache_1.3.34/src/include/httpd.h:29,
from /root/mod_python-2.7.11/src/include/mod_python.h:63,
from connobject.c:56:
/usr/include/features.h:172:1: warning: this is the location of the previous definition
Compiling for DSO. For static, do "make static"
/usr/sbin/apxs -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/local/include/python2.4 -c mod_python.o _apachemodule.o requestobject.o tableobject.o util.o serverobject.o connobject.o -lm /usr/local/lib/python2.4/config/libpython2.4.a -lpthread -ldl -lutil -lm
gcc -shared -o mod_python.so mod_python.o _apachemodule.o requestobject.o tableobject.o util.o serverobject.o connobject.o -lm /usr/local/lib/python2.4/config/libpython2.4.a -lpthread -ldl -lutil -lm
Now su and make install
(or, if you only want to perform a partial install,
you can use make install_dso and make install_py_lib)
make[1]: Leaving directory `/root/mod_python-2.7.11/src'
but it still can make, so i make install and add LoadModule && AddModule into httpd.conf
$ service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Fri Dec 30 14:45:38 2005] [warn] Loaded DSO /usr/lib/apache/mod_python.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
[ OK ]
and Apache rilly crashed. i cant load any web page then
Last edited: