I had a customer request to install Django on cpanel server shared account the other day – 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
- 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
- Install easy_install script –
123456#cd /usr/src/#wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#sh setuptools-0.6c11-py2.4.egg - Use easy_install to install a couple Python packages –
123456#cd /usr/src#./easy_install flup#./easy_install django - 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.
0 Comments.