|
Karl Kobata
karl.kobata at syncira.com
Sun Jun 25 10:42:03 EDT 2006
Initial thought. To compile and install 3.2.8, I believe needs flex 2.5.33
or newer. RHN has flex 2.5.4. you will need to make sure that this is
current. I would suggest when using the .configure, that options for flex,
python, and apxs be fully specified to insure that you know which versions
have be used to build mod_python.
It may be easier to start with what RHN provides for their servers. ES
packages should work on AS. The latest released for ES is python 2.3.4-14.x
and mod_python 3.1.3-5.x.
- rename or move flex, and python binaries if applicable from /usr/local/bin
. if the default paths have not been modified, this directory will be
searched before /usr/bin.
- install python first - "up2date python" - if up2date fails, one strong
possibilities is that the python it files does not have the correct scripts
in the site-packages directory under the pythonx.x directory. Next, using
this command will also resolve any dependencies needed to make python work.
All should be done as root.
- next install mod_python - "up2date python" - this should address
installing and resolving dependencies.
- check install and version
- "python -V" - see version above
- "which python" - should show "/usr/bin/python"
- check if mod_python.so installed in "/etc/httpd/modules"
- add the required changes into the .conf file -
/etc/httpd/conf.d/python.conf.
- add the load directive for mod_python.so
- test if the server will read the .so file correctly
- stop the server - "/sbin/service httpd stop"
- execute "/usr/sbin/httpd -X -e DEBUG - the list of
.so files loading should scroll by, mod_python.so should be in this list.
- assuming no errors/warnings to this point, restart the web server -
"/sbin/service httpd restart
- now you will need to add into "python.conf" the <Directory.> directives,
the restart server.
Hope this helps.
Good luck.
karl
_____
From: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] On Behalf Of JWang at fhsu.edu
Sent: Saturday, June 24, 2006 9:09 AM
To: mod_python at modpython.org
Subject: [mod_python] A newbie question
Hi,
I attempted to install Apache 2.0.54 (or Apache 2.2), python 2.4 and
mod_python 3.2.8 on AS 4 from source codes, but I failed. The mod_python
does not generate mod_python.so. Does anyone run into the same problem and
have a solution to fix it? Thanks! JW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060625/2b59ef17/attachment-0001.html
|