Friday, September 20, 2013

Django on cpanel server for shared web hosting


django congrats on successful install
Took me some time to get it going, mostly because of easyapache not willing to play nice.
Other then that, Jimmy’s blog entry here provides excellent instructions on how to configure it, the only difference being that his cpanel server already had mod_fcgid installed.

So, what I’ll do is just quick recap:
Things to do as root
  1. Make sure your apache had mod_fcgid compiled, if not – run easyapache script from SSH or from WHM web page and make sure mod_fcgid option checked
  2. Install easy_install script –
     
    cd /usr/src/
      
    wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b

    sh setuptools-0.6c11-py2.4.egg
  3. Use easy_install to install a couple Python packages -
    #
    cd /usr/src
    #
     ./easy_install flup
    #
     ./easy_install django
  4. Restart apache, make sure mod_fcgid is loaded
This is it – you can notify customer that he can do his django magic – all prerequisites are in place.
By: http://server-support.co/blog/sysadmin/django-on-cpanel-server-for-shared-web-hosting/

1 comment:



  1. Your complete Facial Attendance & access Control Solution at one place
    Scalable solution for your projects with reliability
    access control system


    ReplyDelete