Saeed Bhuta
saeed.bhuta at placr.co.uk
Tue Jan 12 08:51:43 EST 2010
mog wrote: > On 12/01/2010 12:08, Saeed Bhuta wrote: >> mog wrote: >>> On 12/01/2010 09:28, Saeed Bhuta wrote: >>>> Hi All, >>>> >>>> I am trying to install mod_python for Apache 2.2 for use with >>>> Python 2.6. An internal server error is displayed when the python >>>> is script is accessed from the web and Apache's error log has the >>>> following: >>>> >>>> "*[Tue Jan 12 08:16:56 2010] [error] make_obcallback: could not >>>> import mod_python.apache.\n >>>> ImportError: No module named mod_python.apache >>>> [Tue Jan 12 08:16:56 2010] [error] make_obcallback: Python path >>>> being used "['/usr/local/lib/python2.6', >>>> '/usr/local/lib/python2.6/plat-linux2', '/usr/local$ >>>> [Tue Jan 12 08:16:56 2010] [error] get_interpreter: no interpreter >>>> callback found. >>>> [Tue Jan 12 08:16:56 2010] [error] [client 195.157.141.25] >>>> python_handler: Can't get/create interpreter., referer: >>>> http://placraa1.miniserver.com/py/*" >>>> >>>> I have installed Apache 2.2 on Ubuntu Karmic Koala 9.10 >>>> >>>> Any help is greatly appreciated. >>>> >>>> Saeed >>> >>> >>> Hi, >>> >>> What is this going to be used for? Is it for a new project you are >>> making? >>> >>> mog >>> >> Hi Mog, >> >> Not for a new project, I managed to have mod_python working on Apache >> on my laptop. But its not working on the VPS. >> >> Saeed. > > > Hi Saeed, > > It's much better if you keep conversations on the mailing list, > because that way everyone can join in and help. > > Have you made sure to load the mod_python module into Apache via the > httpd.conf file? > > Also, since mod_python is deprecated and one day will likely stop > working altogether. I would advise you look at migrating any > mod_python projects to use WSGI or something similar to ensure they > continue to be supported. > > mog Hi Mog, I overlooked that when replying to you, thanks for the pointer. I'm not too familiar with Apache, according to the tutorial I followed (http://www.cyberciti.biz/faq/ubuntu-mod_python-apache-tutorial/), I just edited the /etc/apache2/sites-available/default file. Am I meant to also edit httpd.conf? If so, can you provide what is meant to go into it please? Many Thanks, Saeed -- -- ---------------------------------------------------------------- Saeed Bhuta <saeed.bhuta at placr.co.uk> Software Engineer, Placr Ltd. http://www.placr.co.uk/ Twitter @placrsaeed SkypeID: placrsaeed +44 20 3239 9993 Office +44 7903 552369 mobile ------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20100112/0b48babe/attachment-0001.html
|