Russell Whitaker
whitaker at isharp.com
Wed Sep 20 13:45:41 EST 2000
Hello all, I have used this as my guide: "http://www.modpython.org/live/mod_python-2.5/doc/installation.html" My host o/s: SunOS 2.7 Generic_106542-04 i86pc I statically linked mod_python into my apache 1.3.9 httpd and moved it into place, then restarted the daemon. Telnet to port 80 shows: Server: Apache/1.3.9 (Unix) mod_python/2.5 Python/1.5.2 I followed the instructions in bullet points 3-7 in section "3. Testing" in installation.html, as my reading of points 1-2 indicates those steps apply to the DSO option only. I then created a file "mptest.py" as indicated in the instructions, (bullet point 6) mode 755 in /usr/local/apache/cgi-bin/test, which is world readable (httpd runs as user "http"). My first .htaccess in the same directory contained the following, as per the instructions: AddHandler python-program .py PythonHandler mptest PythonDebug I tried to call mptest.py via CGI, with this error_log output (attn Gregory): [Wed Sep 20 12:49:52 2000] [alert] /usr/local/apache/cgi-bin/test/.htaccess: PythonDebug must be On or Off ...after which I modified .htaccess as follows ("On" switch): AddHandler python-program .py PythonHandler mptest PythonDebug On Trying again, I get the following error_log output: make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. [Wed Sep 20 13:10:24 2000] [error] python_handler: make_obcallback returned no obCallBack! My httpd.conf contains the following: <Directory "/usr/local/apache/cgi-bin"> AllowOverride All Options ExecCGI Order allow,deny Allow from all </Directory> Insight, anyone? I'm not sure if the contents of these archives contain insight relevant to my problem: "http://www.modpython.org/pipermail/mod_python/2000-June/000091.html" "http://www.modpython.org/pipermail/mod_python/2000-June/000092.html" Any help would be greatly appreciated, Russell -- Russell Whitaker whitaker at NOSPAM.best.com
|