Installing Python
Platform: Red Hat Enterprise Linux, Version 3I have ran configure/make on python/mod_python and have added the following to httpd.conf in apache 1.3.
Code:
LoadModule python_module libexec/mod_python.so AddModule mod_python.c <Directory /home/*/public_html> #AddHandler mod_python .py #PythonHandler mod_python.publisher #AddType application/x-httpd-py .py AddHandler python-program .py PythonHandler mptest PythonDebug On </Directory>
Code:
Mod_python error: "PythonHandler mptest" Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 181, in Dispatch module = import_module(module_name, _req) File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 332, in import_module f, p, d = imp.find_module(parts[i], path) ImportError: No module named mptest