Derrick Beery
derrick.beery at itd.state.ia.us
Tue Oct 15 14:17:56 EST 2002
Hello, I am new to Python and interested in capabilities as a web language. I have downloaded the source for mod_python-2.7.8. I am attempting to configure it statically or as a DSO, thus far without complete success. The host is an RS6000 running AIX 4.3.3 and the web server is Apache 1.3.27. Using gcc version 2.95.3 20010315 (release) Python was: ./configure --without-threads --with-gcc Apache: ./configure --with-layout=custom --enable-module=most --enable-module=so For mod_python I do: ./configure --with-apache=../apache_1.3.27 --with-apxs=/apache/bin/apxs --with-python=/usr/local/src/Python-2.2.1 No errors. Well, I did have to link to the Makefile: cd /usr/local/src/Python-2.2.1/Modules ln -s /usr/local/src/Python-2.2.1/Makefile Makefile After that, there were no errors following configure. I then do: make dso There were errors until I I added -bE:/usr/local/src/Python-2.2.1/Modules/python.exp to apxs script: my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/apache2/libexec/httpd.exp -bE:/apache2/libexec/httpd.exp -bE:/usr/local/src/Python-2.2.1/Modules/python.exp -lld -lc); # substituted via Makefile.tmpl Then no errors, so I do: make install (as root) no errors! Added the following to DSO section of httpd.conf: LoadModule python_module libexec/mod_python.so I then attempt to restart httpd: /apache/bin/apachectl start This is what I get: apachectl restart /apache2/bin/apachectl restart: configuration broken, ignoring restart /apache2/bin/apachectl restart: (run 'apachectl configtest' for details) apachectl configtest Syntax error on line 205 of /apache/conf/httpd.conf: Can't locate API module structure `python_module' in file /apache2/libexec/mod_python.so: Function not implemented (python_module) When I tried statically, apache builds httpd with Python but If I try to add PHP I get a TOC size error. Apache and just PHP builds and works great. I did not test Python only version because even if it worked, I cannot use. Any advice here would be greatly appreciated. Derrick
|