howto reinitialize CPAN configuration
Wednesday, August 27th, 2008To reinitialize your CPAN configuration type the following from your cpan shell
=========
cpan> o conf init
=========
To reinitialize your CPAN configuration type the following from your cpan shell
=========
cpan> o conf init
=========
The following guide (property of Cpanel.net ) is a good starting point in troubleshooting cpanel /whm problems
Please note that this document belongs to Cpanel.net and may contain proprietary informationr
Download a copy from here
http://gnusys.net/downloads/Troubleshooting.pdf
The error:
Starting nginx daemon: nginx2008/08/25 00:29:09 [emerg] 4011#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
The fix:
Within the http block of the nginx config file make sure you have the server_names_hash_bucket_size set higher than the minimum 32
something lik
http { server_names_hash_bucket_size 64;
}
explanation :
hash_max_size will control the
number of virtual host entries, while _hash_bucket_size will [...]
MaxMind’s GeoIP C api is used by various programs to map IP address to locations .
Here is the procedure to install this :
Download the latest source from http://www.maxmind.com/download/geoip/api/c/
mkdir /usr/local/geoip
./configure –prefix=/usr/local/geoip –exec-prefix=/usr/local/geoip
make
make install
Now we have to make the system loader load the shared libraries
Add the following to /etc/ld.so.conf.d/geoip.conf
====
cat /etc/ld.so.conf.d/geoip.conf
/usr/local/geoip/lib
====
ldconfig
If all goes well , you should have [...]
Sometimes you get the following warning when running commands in Debian / Ubuntu powered computers
==============
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (”C”).
===============
To fix this run the following command as root
root@php-server:~# apt-get [...]
Please follow the following commands to install yum on your Virtuozzo container . The follwoing commands are to be run from the hardware node .
————————
[root@vps1 ~]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
1 91 running 192.168.46.242 ServiceCT
105 49 running 69.72.234.148 asdf
107 49 running 69.72.234.150 test.test.com2
————————
This will list all the configured containers and their container ID (CTID) [...]
Nginx is a very fast ,powerful asynchronous web server that can be considered as a good replacement for the Apache HTTPD web server. Below are the steps required to get Nginx installed on your system. It is preffered to install Nginx from source as we get the latest stable version of this project as compared [...]
A PHP FastCGI Process manager can be a used to spawn php fastcgi server instances when you have configured your web server to pass php scripts to a FastCGI server .This can be used with web servers like Nginx and lighthttpd .
Download the patch file for your php version from http://php-fpm.anight.org/
Download your php version of [...]
Consider the scenario :- SSH service in your server ( CPanel ) has falied and its not allowing you to login from backend. But you can login to WHM with any issues. Trying to restart SSH using WHM > Restart Services also is giving a “Failed” result .
or
You have changed the SSH port for server [...]
This information will be useful in finding out the particular rpm that you have to download when the rpms made for all architectures are available from public repos like rpmind.net , rpm.pbone.net etc
Run the following command
=====
uname -m
or
/bin/arch
====