I found
python.conf
in "/etc/httpd/conf.d"
and contains:
#
# Mod_python is a module that embeds the Python language interpreter
# within the server, allowing Apache handlers to be written in Python.
#
LoadModule python_module modules/mod_python.so
# Override type-map handler for /var/www/manual
<Directory "/var/www/manual/mod/mod_python">
<Files *.html>
SetHandler default-handler
</Files>
</Directory>
# This will cause files beneath /var/www/html with the extension .spam
# to be handled by the Python script /var/www/html/eggs.py
#
#<Directory /var/www/html>
# AddHandler python-program .spam
# PythonHandler eggs
#</Directory>
# This will cause all requests to the /python heirachy of your
# webserver to be handled by the python script /path/to/myhandler.py
#
#<Location /python>
# SetHandler python-program
# PythonPath "sys.path + ['/path/to']"
# PythonHandler myhandler
#</Location>
# This will cause all requests to the /python heirachy of your
# webserver to be handled by mod_python's Publisher handler
# (see http://localhost/manual/mod/mod_python/hand-pub.html)
#
#<Location /python>
# SetHandler python-program
# PythonHandler mod_python.publisher
#</Location>
# This will cause the output of all requests to files beneath
# /var/www/html with the extension .flt to be filtered through
# the Python script /var/www/html/filter.py
#
#<Directory /var/www/html>
# PythonOutputFilter filter MYFILTER
# AddOutputFilter MYFILTER .flt
#</Directory>
I will try your suggestion, thanks.
Federico
On Mar 9, 2:19 pm, Clodoaldo Neto <[email protected]> wrote:
> 2010/3/9 Federico Capoano <[email protected]>:
>
> > In the main httpd.conf there is no mention to mod_python.
> > In the project I'm working on i've removed the mod_python
> > instructions.
>
> Look for the python.conf file in /etc/httpd/conf.d. If it exists move
> it to python.conf.back.
>
> Regards, Clodoaldo
>
>
>
>
>
> > Actually I think there is a problem in compiling it.
>
> > If I compile it normally using python2.3 everything works fine, if I
> > use the --with-python prefix I get this problem as soon as I load the
> > module in the main httpd.conf and restart apache.
>
> > Do you think I would get the same problem using python2.5?
>
> > Now I tried to run the project with python2.3, but unfortunately "sorl-
> > thumbnail" needs python 2.4.
>
> > The virtual host are loaded for each project in their respective
> > folder in a file called "http.include"
>
> > Do I have to disable mod_python also for those?
>
> > Thanks for your time.
>
> > On Mar 9, 12:40 pm, Graham Dumpleton <[email protected]>
> > wrote:
> >> Have you removed mod_python from Apache configuration?
>
> >> On Tuesday, March 9, 2010, Federico Capoano <[email protected]>
> >> wrote:
> >> > I followed those instructions, i verified the prefix was correct and
> >> > put
>
> >> > WSGIPythonHome /usr/local
>
> >> > in the main httpd.conf file.
> >> > I compiled the module source using --with-python prefix but I can't
> >> > manage to make it work.
> >> > Apache starts having problems as soon as I load the module.
>
> >> > It works only with python 2.3.. and I will switch back now to that
> >> > unfortunately.
>
> >> > Thanks..
>
> >> > F.C.
>
> >> > On Mar 8, 11:52 pm, Graham Dumpleton <[email protected]>
> >> > wrote:
> >> >> On 9 March 2010 05:53, Federico Capoano <[email protected]>
> >> >> wrote:
>
> >> >> > Hello to all,
>
> >> >> > I'm new to mod_wsgi.
>
> >> >> > I've downloaded it on a RHEL4 and installed successfully.
>
> >> >> > Unfortunately then I noticed RHEL uses Python 2.3..
>
> >> >> > So I installed Python 2.6 in /usr/local/
>
> >> >> > Then I reinstalled mod_wsgi, by doing:
>
> >> >> > ./configure --with-python=/usr/local/bin/python2.6
> >> >> > make
> >> >> > make install
>
> >> >> > /etc/init.d/httpd restart
>
> >> >> > And then I'm trying to load the website but I just get the page
> >> >> > loading and loading..
>
> >> >> > What did I do wrong?
>
> >> >> Read:
>
> >> >> http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Pyt...
>
> >> >> Set WSGIPythonHome appropriately to work around your problem.
>
> >> >> Graham
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "modwsgi" group.
> >> > To post to this group, send email to [email protected].
> >> > To unsubscribe from this group, send email to
> >> > [email protected].
> >> > For more options, visit this group
> >> > athttp://groups.google.com/group/modwsgi?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "modwsgi" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group
> > athttp://groups.google.com/group/modwsgi?hl=en.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.