[mod_python] Apache wont load/start...

Colin Bean ccbean at gmail.com
Wed Aug 15 16:35:21 EDT 2007


Try following the links from this message, they seem to address the
same problem:

http://www.modpython.org/pipermail/mod_python/2007-June/023861.html

Past that I'm probably not going to be of much help as I don't use
mod_python on windows...
Just to clarify, you are using the installer compiled for apache
2.0.x, correct?  I'm guessing so, as I doubt you would have gotten
this far otherwise.

Take care,
Colin

On 8/15/07, Jacob Carlsson <jagge_90 at hotmail.com> wrote:
> Hey!
>
> Thank you for your fast answer!
>
> There was no errors in the log. Thats why it was so weird. While i waited
> for an answer i downgraded my apache to 2.0.59 again and entered my python
> installation path in the PATH variable. And when i restarted my computer it
> started up fine despite i had entered "LoadModule python_module ...". But
> still it dont work and gives me alot of errors. I'll post my log:
>
>
>
> [Wed Aug 15 21:00:47 2007] [notice] Apache/2.0.59 (Win32) DAV/2 SVN/1.4.4
> configured -- resuming normal operations
> [Wed Aug 15 21:00:47 2007] [notice] Server built: Jul 27 2006 15:55:03
> [Wed Aug 15 21:00:47 2007] [notice] Parent: Created child process 4852
> [Wed Aug 15 21:00:48 2007] [error] python_init: Python version mismatch,
> expected '2.4.3', found '2.4.4'.
> [Wed Aug 15 21:00:48 2007] [error] python_init: Python executable found
> 'H:\\install\\Apache2\\bin\\Apache.exe'.
> [Wed Aug 15 21:00:48 2007] [error] python_init: Python path being used
> 'H:\\install\\Python24\\python24.zip;.\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk;H:\\install\\Apache2\\bin'.
> [Wed Aug 15 21:00:48 2007] [notice] mod_python: Creating 8 session mutexes
> based on 0 max processes and 250 max threads.
> [Wed Aug 15 21:00:48 2007] [notice] Child 4852: Child process is running
> [Wed Aug 15 21:00:48 2007] [notice] Child 4852: Acquired the start mutex.
> [Wed Aug 15 21:00:48 2007] [notice] Child 4852: Starting 250 worker threads.
> [Wed Aug 15 21:00:51 2007] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Wed Aug 15 21:00:51 2007] [error] make_obcallback: Python path being used
> "['H:\\\\install\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'H:\\\\install\\\\Apache2\\\\bin']".
> [Wed Aug 15 21:00:51 2007] [error] get_interpreter: no interpreter callback
> found.
> [Wed Aug 15 21:00:51 2007] [error] [client 127.0.0.1] python_handler: Can't
> get/create interpreter.
>
>
> These last errors comes when i try accessing the following:
>
> <Location /mpinfo>
>    SetHandler mod_python
>    PythonInterpreter main_interpreter
>    PythonHandler mod_python.testhandler
> </Location>
>
> Like what does it mean with "Python version mismatch, expected '2.4.3',
> found '2.4.4'.", expected 2.4.3? How could it expect something else?
>
> Also i tried entering some more paths into the PATH variable like
> "Lib,lib-tk,DLLs" but it doesent seem enough...
>
> Best Regards Jacob Carlsson
>
> >From: "Colin Bean" <ccbean at gmail.com>
> >To: "Jacob Carlsson" <jagge_90 at hotmail.com>
> >CC: mod_python at modpython.org
> >Subject: Re: [mod_python] Apache wont load/start...
> >Date: Wed, 15 Aug 2007 11:08:19 -0700
> >
> >Please post the contents from your Apache error log when you try to
> >start the server, can't really tell what the problem is from the
> >information you've given.
> >
> >On 8/15/07, Jacob Carlsson <jagge_90 at hotmail.com> wrote:
> > > Hello!
> > >
> > > Im using Windows XP.
> > >
> > > I have tried to get apache (both 2.2.4 and 2.0.59 to work with
> >mod_python).
> > > I have python 2.4 and I have tried using
> > > "mod_python-3.2.10.win32-py2.4-apache2.2" &
> > > "mod_python-3.3.1.win32-py2.4-Apache2.2" and also some other different
> > > versions when I tested with apache 2.0.59.
> > >
> > > My problem is that apache simply wont load when i enter "LoadModule
> > > python_module modules/mod_python.so" in httpd.conf.
> > > Now I have tried fixing this in many various ways for hours and not
> >succeded
> > > at all.
> > > For example I have searched google and your page for answers and i found
> >out
> > > that some people had the same problem as I but some of their solutions
> >didnt
> > > work out for me.
> > > For example I tried adding python to my "PATH" variable but that didnt
> >help
> > > much.. Maybe i did it incorrect? I added "C:\Python24" (thats simply
> >where I
> > > installed python)
> > > Also many that have the same problem didnt get an answer that i could
> >read.
> > >
> > > So i would appreciate any help so i finally can solve this really
> >annoying
> > > problem!
> > >
> > > Best Regards Jacob Carlsson
> > >
> > > _________________________________________________________________
> > > Luspank? Tjäna pengar på auktion http://tradera.msn.se/
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
>
> _________________________________________________________________
> Spela roliga Worms'07 i mobilen
> http://msn.cellus.se/?page=game_order&itemId=878908
>
>



More information about the Mod_python mailing list