Sharky at Code Zone
sharky at codezone.ath.cx
Thu Jun 24 00:43:18 EDT 2004
1º where do you have your mptest.py? (directory)? /home/domain ??? /home/webmail/python/ ????? 2º what is the url to your mptest? http://webmail.domain.com.ve/python ???? I think that is only your httpd.conf config that its wrong. maybe something like: <VirtualHost 10.73.219.156> ServerName webmail.domain.com.ve ServerAlias www.domain.com.ve 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/domain/python/> AddHandler python-program .py PythonHandler mptest PythonDebug On </Directory> And your mptest.py must be in: /home/domain/python/ Un saludo Sharky @ PTNet A Qua, 2004-06-23 às 23:26, Juan Hernandez escreveu: > 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 www.domain.com.ve > > 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 at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modpython.org/pipermail/mod_python/attachments/20040623/880d9bb1/attachment.html
|