<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
1º where do you have your mptest.py? (directory)? <BR>
/home/domain ???<BR>
/home/webmail/python/ ?????<BR>
<BR>
2º what is the url to your mptest?<BR>
http://webmail.domain.com.ve/python ????<BR>
<BR>
I think that is only your httpd.conf config that its wrong. maybe something like:<BR>
<FONT COLOR="#0000ff"><TT><VirtualHost 10.73.219.156><BR>
ServerName webmail.domain.com.ve<BR>
ServerAlias <A HREF="http://www.domain.com.ve"><U>www.domain.com.ve</U></A><BR>
ServerAlias domain.com.ve<BR>
DocumentRoot /home/domain<BR>
ErrorLog /var/log/apache/webmail.domain.com.ve-error_log<BR>
CustomLog /var/log/apache/webmail.domain.com.ve-access_log combined<BR>
</VirtualHost><BR>
<BR>
<Directory </FONT><FONT COLOR="#ff0000">/home/domain/python/</FONT><FONT COLOR="#0000ff">><BR>
AddHandler python-program .py<BR>
PythonHandler mptest<BR>
PythonDebug On<BR>
</Directory></TT></FONT><BR>
<BR>
And your mptest.py must be in: <FONT COLOR="#ff0000"><TT>/home/domain/python/</TT></FONT><BR>
<BR>
Un saludo<BR>
Sharky @ PTNet<BR>
<BR>
<BR>
<BR>
A Qua, 2004-06-23 às 23:26, Juan Hernandez escreveu:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Any Ideas? I haven't got any anser :(
Juan Hernandez wrote:
> Hi there...
>
> This is my first question to this mailing list and I guess it's a
> pretty stupid one... I haven't found a solution to it. I'm trying to
> insta ll mod_python inmy slackware machine, my apache was built from
> source -it's not tar.gz package- and I'm getting this error:
>
> -------
>
> Mod_python error: "PythonHandler mptest"
>
> Traceback (most recent call last):
>
> File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 181, in Dispatch
> module = import_module(module_name, _req)
>
> File "/usr/lib/python2.3/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
> ------
> And here's my apache virtual domain directive
>
> NameVirtualHost 10.73.219.156
>
> <VirtualHost 10.73.219.156>
> ServerName webmail.domain.com.ve
> ServerAlias </FONT><A HREF="http://www.domain.com.ve"><U>www.domain.com.ve</U></A>
<FONT COLOR="#737373">> ServerAlias domain.com.ve
> DocumentRoot /home/domain
> ErrorLog /var/log/apache/webmail.domain.com.ve-error_log
> CustomLog /var/log/apache/webmail.domain.com.ve-access_log combined
> </VirtualHost>
>
> <Directory /home/webmail/python/>
> AddHandler python-program .py
> PythonHandler mptest
> PythonDebug On
> </Directory>
>
> -----
> All I have been able to find is that, is that in version 2.7.7 there
> was a misspelled word that causes this and, that it was fixed in 2.8.8
> and I'm using 2.7.10 with apache 1.3.31
>
> Thanks a lot for your time
>
> Juan
> _______________________________________________
> Mod_python mailing list
> Mod_python@modpython.org
> </FONT><A HREF="http://mailman.modpython.org/mailman/listinfo/mod_python"><U>http://mailman.modpython.org/mailman/listinfo/mod_python</U></A>
<FONT COLOR="#737373">
_______________________________________________
Mod_python mailing list
Mod_python@modpython.org</FONT>
<A HREF="http://mailman.modpython.org/mailman/listinfo/mod_python"><U>http://mailman.modpython.org/mailman/listinfo/mod_python</U></I></A></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>