Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Installing mod_python and Django on webserver [RSS Feed]

#1 March 24, 2008 02:54:35

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Installing mod_python and Django on webserver


I have a friend that bought a webserver to run a php forum he's got,
he overestimated how much he needed, so he's willing to give me a lot
of the server space, cheap, for my own usage.

I want to be able to run Django on it. Currently, it's running Linux,
has MySQL and PHP installed, Apache too.

He's running a site on vBulletin, so his PHP needs to stay, is there
any issues I should be careful of not upset the PHP, while still
getting Django and mod_python correctly installed on the server?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 March 24, 2008 07:29:51

Peter R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Installing mod_python and Django on webserver


> He's running a site on vBulletin, so his PHP needs to stay, is there
> any issues I should be careful of not upset the PHP, while still
> getting Django and mod_python correctly installed on the server?

The one thing I am aware of is that under certain circumstances there
can be a problem involving md5 libraries loaded by mod_php and
mod_python. I am fuzzy on the specific details, but you may want to
check the following threads:http://groups.google.com/group/django-users/browse_thread/thread/17c589ad4e62d8e9/7475c00fee4c9cee?lnk=st&q=mod_python+mod_php+md5#7475c00fee4c9ceehttp://www.modpython.org/pipermail/mod_python/2007-April/023508.htmlhttp://www.modpython.org/pipermail/mod_python/2007-April/023512.htmlAlso, be aware that Apache can get kind of large if you start
including lots of large interpreters. This reduces the number of
server processes you can have before you start to thrash. You'll have
to run benchmarks to see if this is a problem for you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 March 24, 2008 07:48:51

Graham D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Installing mod_python and Django on webserver


On Mar 24, 5:29 pm, Peter Rowell <> wrote:
> > He's running a site on vBulletin, so his PHP needs to stay, is there
> > any issues I should be careful of not upset the PHP, while still
> > getting Django and mod_python correctly installed on the server?
>
> The one thing I am aware of is that under certain circumstances there
> can be a problem involving md5 libraries loaded by mod_php and
> mod_python. I am fuzzy on the specific details, but you may want to
> check the following threads:
>
>http://groups.google.com/group/django-users/browse_thread/thread/17c5...http://www.modpython.org/pipermail/mod_python/2007-April/023508.htmlhttp://www.modpython.org/pipermail/mod_python/2007-April/023512.htmlThis was all resolved.

The problem was that Debian broke their Python distribution. See
section 'Python MD5 Hash Module Conflict' of:http://code.google.com/p/modwsgi/wiki/ApplicationIssuesThis is documentation for mod_python but it can be affected by the
same problem.

Also, see section 'SSL Shared Library Conflicts' of the same document
for a related issues around md5 module caused by SSL library
conflicts.

Where as there is no documentation for all these sorts of issues an
how they affect mod_python, they are documented for mod_wsgi. So, even
if you persist in using mod_python, you may want to read the
documentation for mod_wsgi which covers problems that can arise.

> Also, be aware that Apache can get kind of large if you start
> including lots of large interpreters. This reduces the number of
> server processes you can have before you start to thrash. You'll have
> to run benchmarks to see if this is a problem for you.

This is generally a configuration issue only. Configure things
properly and use appropriate amounts of memory where you need to and
there isn't generally a problem. Where problems do arise it is
generally because people simply don't understand how Apache works, or
that they are trying to use Apache for conflicting purposes.

For example, using prefork MPM because PHP is not thread safe in
conjunction with Python web applications in embedded mode in a memory
constrained VPS is a bad idea. You either ditch PHP and use worker
MPM, or you go to mod_wsgi and use daemon mode for the Python web
application.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

  • Root
  • » Django
  • » Installing mod_python and Django on webserver [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support