Page 1 of 2 12 LastLast
Results 1 to 15 of 29

Thread: Django / Python with cPanel ?

  1. #1
    Member
    Join Date
    Sep 2007
    Location
    South Croydon, UK
    Posts
    19

    Default Django / Python with cPanel ?

    Is it possible to do Python via cPanel?

    And if so, would there be any potential issues (security / performance)?

  2. #2
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,125
    cPanel/WHM Access Level

    Root Administrator

    Default

    I think it relies upon mod_python, which you would need to install manually. Once that is done, setup is rather easy using the Python setup tools. Performance issues will like be the same as any other dynamic language (PHP, Perl, etc). If you don't have any experience with Python specific services, you might want to do some research on Python-specific sites.

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    South Croydon, UK
    Posts
    19

    Default

    Thanks. I've only dabbled a bit with Python scripts, so I'll look for some sites about Python services.

  4. #4
    Member
    Join Date
    Jan 2004
    Posts
    5

    Default

    I have also been looking into running Django with Cpanel. If you choose to go the mod_python route you will need to be running apache 2.

    From what I have been reading, it is also possible to run Django with FastCGI, but I am still unclear if this also requires apache 2.

  5. #5
    Member
    Join Date
    Sep 2007
    Location
    South Croydon, UK
    Posts
    19

    Default

    Thanks for the info, I am on Apache 2.

    I'll post anything useful I find back in this thread.
    (Nothing yet; I've been busy all today.)

  6. #6
    Member
    Join Date
    Jan 2004
    Posts
    5

    Default

    I managed to get django running on Apache 1.3 using mod_wsgi. Mod_wsgi will also work with apache 2. I would be happy to help if necessary.

  7. #7
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Howdy everyone. Yay for my first post.

    I've been trolling on these forums for a little while now, everyone seems really switched on - a nice change from the rest of the internet and forums out there.

    I updated Apache from 1.3 to 2.2 in preparation to install Django (not interested in using FastCGI) - everything went pretty smoothly when switched over to EDGE.

    I have Python 2.4.4 and mod_python installed, now it's just time for Django. I've never used Django, nor do I really want to learn what it's about. When reading the install guide, it gives several branches to setup for either MySQL, PostgreSQL, SQLite - can't I use all depending on the end user/programmer?

    I'm about to have a little stab at it and will write back if I have any troubles - any heads up would be awesome.

    Cheers Guys.
    Dazz

  8. #8
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,125
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by darren.nolan View Post
    Howdy everyone. Yay for my first post.

    I've been trolling on these forums for a little while now, everyone seems really switched on - a nice change from the rest of the internet and forums out there.

    I updated Apache from 1.3 to 2.2 in preparation to install Django (not interested in using FastCGI) - everything went pretty smoothly when switched over to EDGE.

    I have Python 2.4.4 and mod_python installed, now it's just time for Django. I've never used Django, nor do I really want to learn what it's about. When reading the install guide, it gives several branches to setup for either MySQL, PostgreSQL, SQLite - can't I use all depending on the end user/programmer?

    I'm about to have a little stab at it and will write back if I have any troubles - any heads up would be awesome.

    Cheers Guys.
    Dazz
    As long as you have the Python interfaces for PostgreSQL, MySQL and SQLite, DJango will work with them. It then depends upon the configuration of the Django application. There may be more to it, as I've only progressed to the point of installing Django, not actually using it.

  9. #9
    Member
    Join Date
    May 2003
    Posts
    8

    Default

    It would be nice to be able to easily run Django applications on cPanel servers.

    We'd prefer to use Django for many web applications we're developing, but we had to choose a PHP framework just because running Django on a cPanel shared hosting would be - AFAIK - a nightmare.

    Regards,
    Rodrigo

  10. #10
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Quote Originally Posted by rsferreira View Post
    It would be nice to be able to easily run Django applications on cPanel servers.

    We'd prefer to use Django for many web applications we're developing, but we had to choose a PHP framework just because running Django on a cPanel shared hosting would be - AFAIK - a nightmare.

    Regards,
    Rodrigo
    Not sure I follow this. You'd have to explain. Django works fine on a shared host for me, you can setup inside <virtualhost></virtualhost> your site's settings etc, so I'd love a clarification on this.

    I'm in the same boat as cpanelkenneth mostly, I've installed everything, everything appears to work and I have two-three people using it at the moment. They just open a support ticket and ask me nicely to change the apache conf file for settings as needed.

  11. #11
    Member
    Join Date
    Jun 2002
    Posts
    51

    Default Leaning towards fcgi for django

    I've had a client ask to install this on a VPS and I'm leaning towards using fcgi over mod_python for the simple reason that with mod_python they have to restart apache to see their changes. Whereas with the fastcgi method, it will load the new changes without any restarts. Which simplifies things as its a production server. Since he's also using Ruby, that will be two services using fastcgi as well.

    Hal

  12. #12
    Member
    Join Date
    Feb 2005
    Posts
    240

    Default

    I'm getting a number of Django requests lately as well. cPanel did such a nice job with the Rails integration, sure would be nice to see parallel support for Django.

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by shacker23 View Post
    I'm getting a number of Django requests lately as well. cPanel did such a nice job with the Rails integration, sure would be nice to see parallel support for Django.
    Currently, no one has requested Django support in our official feature request system: http://bugzilla.cpanel.net

  14. #14
    Member
    Join Date
    Feb 2005
    Posts
    240

    Default

    I've added bug (feature request) 6881:

    http://bugzilla.cpanel.net/show_bug.cgi?id=6681

    Thanks,
    Scot

  15. #15
    Member
    Join Date
    Aug 2006
    Posts
    18

    Default

    Any updates on this? I'm thinking of setting up Django on my WHM server but I'd rather not do it by hand. If anything could we get a How-To from either cPanel or the community?

Page 1 of 2 12 LastLast

Similar Threads

  1. After EA3 Django support [Case 33011]
    By shacker23 in forum Feature Requests for cPanel & WHM
    Replies: 41
    Last Post: 05-28-2012, 07:43 AM
  2. Django Hosting
    By a2hosting in forum Website Hosting
    Replies: 0
    Last Post: 07-14-2011, 02:31 PM
  3. Django installation
    By Jonjimar in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-17-2011, 05:00 PM
  4. Does cpanel support "Python Django web framework"?
    By electric in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 12-07-2008, 05:56 PM
  5. Any experiences with Django?
    By Simsen in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-08-2008, 08:03 PM