ngnix cpanel issue

Fallybype

New Member
i am trying to install
http://nginxcp.com/installation-instruction/

on centos 6 64bit
i got
Code: Generating vhosts...Traceback (most recent call last): File "/scripts/createvhosts.py", line 7, in ? import yaml File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clauseInstalling WHM interface...Installing mod_rpaf...Updating cPanel ConfigurationTraceback (most recent call last): File "/usr/local/src/publicnginx/nginxinstaller2", line 14, in ? import createvhosts File "/usr/local/src/publicnginx/createvhosts.py", line 7, in ? import yaml File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
and in whm ngnix show always down i cant restart it and make it up

any one know a solution Go for ngnix cpanel plugin, its much better than manual installation. To sort this error run code like this .

cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix

After that you can run installer as per bellow,

./nginxinstaller install
 
Top