Fixing rndc error in WHM/cPanel

(ndc: connection failed: connection refused)

To get your name servers working, you will need to eliminate this error, it
is quite a simple fix and can be completed in a few minutes via the
standard cPanel /scripts

1. Login to your server as root via SSH
2. Run:

/scripts/updatenow

3. Run:

/scripts/fixndc

If not fixed then.

1. Login to your server as root via SSH
2. Run: vi /etc/rndc.conf
replace all instances of “rndc-key” with “rndckey”
3. Run: vi /etc/named.conf
replace all instances of “rndc-key” with “rndckey”
4. Run:

/scripts/fixnamed

5. Run:

/scripts/fixndc

6. If you received an error in the last step, run /scripts/fixndc another
time.
7. Restart named.

How to Install Zend Optimizer/Encoder on cPanel/WHM

Zend Optimiser is a PHP addon which offers caching to improve speed when loading sites, it can increase perfomance by up to 40% by caching frequently viewed portions of PHP pages. Zend Encoder also is useful for
encoding PHP files to protect source code.

To install Zend Optimizer:

1. Login to your server via SSH

2. Run:

/scripts/installzendopt

3. Follow the instructions on the screen to install Zend Optimizer

For those who are installing Zend Optimizer for performance gains you may want to take a look at Turck MMCache, providing speed increases of up 90% it has amazing caching and optimization capabilities. It can also run
along side Zend Optimizer.

How to install Eaccelerator

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
1.
Download Eaccelerator

wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2

2. Extract and move into the directory.
3. Locate where php is

locate php

4. Create configuration files

phpize

5. Compile Eaccelerator

./configure –enable-eaccelerator=shared –with-php-config=/usr/local/bin/php-config
make
make install

To install as Zend extension:

zend_extension=”/usr/lib/php4/eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″

If you use a thread safe build of PHP you must use “zend_extension_ts” instead of “zend_extension”.

To install as PHP extension:

extension=”eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″


Using Netstat

To find out the largest number of established connections you can simply use something like

netstat -an | grep ‘ESTABLISHED’ | awk ‘{print $4}’ | cut -d: -f1 | uniq -c | sort -rn | head -n 1

To see the list of the top 10

netstat -an | grep ‘ESTABLISHED’ | awk ‘{print $4}’ | cut -d: -f1 | uniq -c | sort -rn | head -n 10

To view all

netstat -an | grep ‘ESTABLISHED’ | awk ‘{print $4}’ | cut -d: -f1 | uniq -c | sort -rn

FrontPage problems on cPanel/WHM

FrontPage problems can be addressed by:

1. Running

/scripts/initsuexec

2. Uninstalling and reinstalling the FrontPage extensions on the affected account

3. Checking for errors generated by visiting the FrontPage administration interface at

http://domain.com/_vti_bin/_vti_adm/fpadmcgi.exe

« Prev - Next »