ABHIONLINUX
Site useful for linux administration and web hosting

2013/06/29

WHM/cPanel - csf Internal Server Error

While accessing csf through whm, you may get this error.

===============
Internal Server Error
500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi): subprocess exited with status 2
cpsrvd/11.38.0.18 Server at xxx.xxx.xxx.xxx
================

Fix: Update the csf version using 
root@server [~]# curl -s configserver.com/free/csupdate | perl

2013/03/09

NginxCP – SyntaxError: ‘yield’ not allowed in a ‘try’ block with a ‘finally’ clause

When you install cpnginx cpanel plugin, you can get the following error.

====================================
root@localhost [/usr/local/src/publicnginx]# ./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer......Starting Install
Generating vhosts...
Traceback (most recent call last):
File "/scripts/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
Installing WHM interface...
deploying booster rockets
Traceback (most recent call last):
File "/usr/local/src/publicnginx/nginxinstaller2", line 9, in ?
import createvhosts
File "/usr/local/src/publicnginx/createvhosts.py", line 2, in ?
import yaml
File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-x86_64.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
root@localhost [/usr/local/src/publicnginx]#
====================================

You can fix it by running pythonfix

/usr/local/src/publicnginx]# ./pythonfix