[mod_python] can't get modperl working

Nicolas Lehuen nicolas at lehuen.com
Tue Apr 4 15:01:30 EDT 2006


One thing that we should put in the documentation if it's not already : if
you change your PATH variable to solve this problem, and Apache runs as a
service, you probably have to restart your computer to make sure the
variable change is taken into account.

If restarting is a luxury you cannot afford, then you should at least stop
and start the service. Restarting using apache -k restart WON'T do the
trick, as the parent process is not stopped, so the environment is not
refreshed. You have to do "apache -k stop & apache -k start" or use the
Services control panel.

Regards,
Nicolas


2006/4/4, Nicolas Lehuen <nicolas at lehuen.com>:
>
> Hi,
>
> One of the possible cause of your problem is that Apache does find
> mod_python.so but not one of the DLL it relies on. Unfortunately the error
> reporting in this case is quite scarce and misguiding.
>
> The candidates missing DLLs are python24.dll and the Microsoft Runtime
> DLLS (normally msvcr71.dll and msvcp71.dll).
>
> Make sure that your Python directory and the runtime DLLs can be found on
> your PATH. The runtime DLLs are normaly copied in your Python directory, so
> putting the Python directory on your PATH variable should do the trick.
>
> Also, make sure that the user which is running Apache has its PATH
> variable properly set. The best way to do this is to define it at the
> system-wide level, but logging it under the user and defining the variable
> at the user level is also possible.
>
> I hope this will solve your problem.
>
> Regards,
> Nicolas
>
> 2006/4/4, y y <vinehand at yahoo.com>:
>
> > line 173 was the line that uses LoadModule on
> > mod_python. I checked the directory and mod_python.so
> > in fact there.
> >
> > --- Jim Gallacher <jpg at jgassociates.ca> wrote:
> >
> > > y y wrote:
> > > > Hi,
> > > >
> > > > I installed:
> > > > python 2.4
> > > > Apache 2.0.55
> > > > mod_python 3.2.8
> > > > on Windows XP
> > > >
> > > > and I cannot get it working. I've tried this too
> > > many
> > > > times and with too many mix of versions and I'm
> > > > getting the same problem when I run Apache on
> > > console:
> > > >
> > > > Syntax error on line 173 of C:/Program
> > > Files/Apache
> > > > Group/Apache2/conf/httpd.conf:
> > > > Cannot load C:/Program Files/Apache
> > > > Group/Apache2/modules/mod_python.so into server:
> > > The
> > > > specified module could not be found.
> > > >
> > > > Please help!
> > >
> > > So what exactly does line 173 of httpd.conf say?
> > >
> > > Is the C:/Program Files/Apache
> > > Group/Apache2/modules/mod_python.so file
> > > in fact missing?
> > >
> > > Did you use the mod_python binary for the
> > > installation or did you
> > > compile it yourself?
> > >
> > > Jim
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > 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://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060404/acad60b1/attachment-0001.html


More information about the Mod_python mailing list