|
Steven Hum
s.hum at rogers.com
Mon Jul 17 17:37:13 EDT 2006
Hi,
Installed Darwin ports for apache 2.2.e and mod_python 3.2.8 and get
this in the error_log:
[Mon Jul 17 17:05:10 2006] [warn] Init: Session Cache is not
configured [hint: SSLSessionCache]
[Mon Jul 17 17:05:12 2006] [notice] mod_python: Creating 8 session
mutexes based on 256 max processes and 0 max threads.
[Mon Jul 17 17:05:12 2006] [notice] Digest: generating secret for
digest authentication ...
[Mon Jul 17 17:05:12 2006] [notice] Digest: done
[Mon Jul 17 17:05:12 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:05:12 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:05:13 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:05:13 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2
OpenSSL/0.9.8b DAV/2 mod_python/3.2.8 Python/2.4.3 configured --
resuming normal operations
Not sure if the above errors are anything to be concerned about.
Added lines to the http.conf file:
LoadModule python_module modules/mod_python.so
<Location /mpinfo>
SetHandler mod_python
PythonHandler mod_python.testhandler
</Location>
In the apache2/htdocs/.htaccess have:
AddHandler mod_python .py
PythonHandler mptest.py
PythonDebug On
In apache2/htdocs/mptest.py have:
from mod_python import apache
def handler(req):
req.send_http_header()
req.content_type = 'text/plain'
req.write("Hello World!")
return apache.OK
When I try http://localhost/mptest.py, I simply get the above python
script listed in the browser and get in the error_log:
[Mon Jul 17 17:25:43 2006] [error] [client ::1] File does not exist: /
opt/local/apache2/htdocs/favicon.ico
[Mon Jul 17 17:25:44 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: driver for not available
[Mon Jul 17 17:25:44 2006] [crit] (70023)This function has not been
implemented on this platform: DBD: failed to initialise
[Mon Jul 17 17:25:51 2006] [error] [client ::1] File does not exist: /
opt/local/apache2/htdocs/favicon.ico
Not sure why the above url referenced the favicon.ico file. I put a
favicon in the htdocs directory and when the url is reloaded, don't
get any error messages but still only get the python source listed in
the browser.
Any ideas?
Thanks in advance,
Steven Hum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060717/f9c3d047/attachment.html
|