Results 1 to 6 of 6

Thread: Running python

  1. #1
    Registered Member
    Join Date
    Mar 2005
    Posts
    26

    Lightbulb Running python

    Hi everybody

    I'm trying to make django work on a server I'm admining. I'm not very used to working with python.

    I've reconfigured and built apache using the easy apache setup to include mod_fastCGI - was hoping that would help me, but I've googled around and I can't get the basic .fcgi script I found working.

    What's the best way for my users to run python? Ideally I'd use mod_python but since it's not supported in easy apache, and I have bad experiences making custom changes to the httpd.conf in the past (with cpanel overriding them), I'd like to try to make mod_fastcgi work or some other sollution.

    So my only requirement is that it wont break with future versions of apache and that the users don't have to have shell access.

    Best,
    Arnor
    Netvistun ehf.
    www.netvistun.is

  2. #2
    Registered Member
    Join Date
    Mar 2005
    Posts
    26

    Default *bump*

    *bump* *bump*
    Netvistun ehf.
    www.netvistun.is

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    If you prefer an unsupported solution, there is a EasyApache Custom Optional Module for mod_python available at:

    http://easyapache.cpanel.net
    Last edited by cPanelDavidG; 03-06-2009 at 09:20 AM. Reason: No mechanism yet for posting user-submitted contributions to that page.

  4. #4
    Registered Member
    Join Date
    Mar 2005
    Posts
    26

    Default

    Quote Originally Posted by cPanelDavidG View Post
    If you prefer an unsupported solution, there is a EasyApache Custom Optional Module for mod_python available at:

    http://easyapache.cpanel.net
    Hi David

    I don't prefer and unsupported solution over a supported one. Is there a supported solution?

    The ideal situation was for mod_python to be built into EasyApache, but if that's not happening soon, I wanted to find a semi-future proof (if not completely future proof) way.
    Netvistun ehf.
    www.netvistun.is

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by netvistun View Post
    Hi David

    I don't prefer and unsupported solution over a supported one. Is there a supported solution?

    The ideal situation was for mod_python to be built into EasyApache, but if that's not happening soon, I wanted to find a semi-future proof (if not completely future proof) way.
    Custom opt mods are natively supported by EasyApache and using the mod_python custom opt mod would be a future-resistant method of implementing mod_python.

    Currently, the only supported method of running Python through Apache on a cPanel/WHM environment is to run the Python scripts as CGI apps.

  6. #6
    Registered Member
    Join Date
    Mar 2005
    Posts
    26

    Default Run Python as CGI apps

    Ok, I skipped the whole fast-cgi thing this time and just put in the .htaccess file:

    AddHandler cgi-script .py

    And now python is running :-)

    I wasted all that time on fast-cgi, when I didn't need it
    Netvistun ehf.
    www.netvistun.is

Similar Threads

  1. Short Guide to Running Python Scripts with cPanel
    By cPanelTristan in forum General Discussion
    Replies: 0
    Last Post: 11-20-2011, 11:33 AM
  2. python -V python: error while loading shared librarie
    By shopcentar in forum General Discussion
    Replies: 7
    Last Post: 10-18-2011, 09:32 AM
  3. Python Python 2.7.1 Installation
    By sgate1 in forum General Discussion
    Replies: 9
    Last Post: 08-11-2011, 07:18 PM
  4. Running Python scripts?
    By Jeff75 in forum General Discussion
    Replies: 2
    Last Post: 06-09-2006, 03:37 PM
  5. Python hangs while running mailman
    By WHN-Si in forum E-mail Discussions
    Replies: 0
    Last Post: 09-09-2001, 05:00 AM

Tags for this Thread

bargain