check envtype on cpanel server -(vmware or virtuozzo)
root@host [~]# cat /var/cpanel/envtype
vmware
root@host [~]#
root@host [~]# cat /var/cpanel/envtype
vmware
root@host [~]#
2) Click on the edit button of the particular PHP version for which you need to change the PHP Handler.
3) Select the proper PHP handler and Click on Apply button to save the changes.| PHP Handler | Module Name |
|---|---|
| CGI | ea-apache24-mod_cgi or ea-apache24-mod_cgid |
| FastCGI | ea-apache24-mod_proxy_fcgi |
| SuPHP | ea-apache24-mod_suphp |
| DSO | ea_php5x_php |
/usr/local/cpanel/bin/rebuild_phpconf --current
DEFAULT PHP: ea-php56 ea-php55 SAPI: suphp ea-php56 SAPI: cgi ea-php70 SAPI: suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --available ea-php55: cgi none suphp ea-php56: cgi dso none suphp ea-php70: cgi none suphp
/usr/local/cpanel/bin/rebuild_phpconf --$package=$handler
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI: suphp ea-php56 SAPI: cgi ea-php70 SAPI: suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --available ea-php55: cgi none suphp ea-php56: cgi dso none suphp ea-php70: cgi none suphp
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --ea-php55=cgi
[root@cpaneltest ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI: cgi ea-php56 SAPI: cgi ea-php70 SAPI: suphp
mkdir /root/temp && cd /root/temp wget http://python.org/ftp/python/2.7.10/Python-2.7.10.tgz tar -xvpzf Python-2.7.10.tgz ./configure cd Python-2.7.10 ./configure make make altinstall
/usr/local/bin/python2.7
python2.7
cd /root/temp wget https://bootstrap.pypa.io/get-pip.py /usr/local/bin/python2.7 /root/temp/get-pip.py
pip2.7 install Django==1.8.3
pip2.7 install django-debug-toolbar pip2.7 install django-smart-selects pip2.7 install mysqlclient pip2.7 install Pillow pip2.7 install python-dateutil pip2.7 install PyYAML