Linux distros include SSH client software by default or it can be easily installed with
'apt-get install openssh-client' or 'yum install openssh-clients' depending on your package manager.
To access your shell with SSH from Linux perform the following steps:
1. Login to cPanel and go to Security > SSH/Shell Access to generate SSH key pair.
2.
Click Manage SSH Keys > Generate a New Key. You should use a
password to protect the key. You will be asked the password each time
you use the key.
3. In Public Keys section click 'Manage Authorization' and 'Authorize'
4. In Private Keys section click Vew/Download then download the key (id_dsa or id_rsa) to your PC.
5.
Save it to ~/.ssh directory on your linux machine under a meaningful
name to not overwrite your existing keys for example id_dsa.myjavahost
6.
Now make sure permissions are correct on the key (one time task) and
connect (you will be prompted for the password you setup in step #2):
mypc:~$ chmod 600 .ssh/id_dsa.myjavahost
mypc:~$ ssh -p1033 -i .ssh/id_dsa.myjavahost yourusername@yourservername
Enter passphrase for key '.ssh/id_dsa.myjavahost':
You should be logged in now.
Sunday, June 30, 2013
Thursday, June 20, 2013
How To Create Nagios Plugins With Ruby on CentOS 6
Ruby is a popular programming language that allows you to quickly create scripts and install additional libraries (Gems).
We have previously covered how to install Nagios monitoring server on CentOS 6.
This time, we will expand on this idea and create Nagios plugins using Ruby.
These plugins will be running on client servers, and be executed via NRPE.
Step 1 - Install RPMForge Repository and NRPE on client servers
Step 2 - Create your Ruby Script
We have previously covered how to install Nagios monitoring server on CentOS 6.
This time, we will expand on this idea and create Nagios plugins using Ruby.
These plugins will be running on client servers, and be executed via NRPE.
Step 1 - Install RPMForge Repository and NRPE on client servers
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum -y install ruby nagios-nrpe
useradd nrpe && chkconfig nrpe on
Step 2 - Create your Ruby Script
Etiquetas:
How-To,
Installation
How to Install zPanel on CentOS 6
About zPanel
zPanel is a php-based free control panel for windows, mac, and linux servers. The program runs on top of an Apache, MySQL, PHP stack on whichever platform is used. zPanel should be installed on a fresh server, as all of the programs that zPanel requires are set up automatically through their installation process.
Step One—Download the Zipped Installer File.
LOG INTO YOUR SERVER AS THE ROOT USER, do not use sudo.
- Download the correct installer for your system:
64 Bit Installerwget http://www.zvps.co.uk/sites/default/files/downloads/centos-6-3/package/installer-x86_64-install.sh.x.tar.gzOr32 Bit Installerwget http://www.zvps.co.uk/sites/default/files/downloads/centos-6-3/package/installer-x86-install.sh.x.tar.gz- Unzip the tarball
Etiquetas:
How-To,
Installation,
zPanel
Monday, June 17, 2013
How to Install mod_cloudflare on a cPanel Server
When using CloudFlare, all of the hits to your web server will come from a CloudFlare IP address. To retrieve the actual IP address from the visitor, you must install mod_cloudflare.
How to Install mod_cloudflare
Connect to your server through SSH and log in as root.
Change directory to /usr/local/src :
How to Install mod_cloudflare
Connect to your server through SSH and log in as root.
Change directory to /usr/local/src :
cd /usr/local/srcGet the source code for mod_cloudflare:
wget --no-check-certificate https://raw.github.com/cloudflare/mod_cloudflare/master/mod_cloudflare.cUse the Apache Extension Tool to build and install mod_cloudflare:
CloudFlare-Tools/master/mod_cloudflare.c
apxs -a -i -c mod_cloudflare.cRestart the Apache HTTP daemon:
service httpd restartUpdate the Apache configuration data files:
/usr/local/cpanel/bin/apache_conf_distiller --updateThat’s it! From now on, Apache will log the visitors’ IP addresses instead of the CloudFlare IP’s.
Etiquetas:
Apache,
cloudflare,
cPanel/WHM,
How-To,
website speed
Saturday, June 15, 2013
Free cPanel Nginx automated installer Plugin
nginx is open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. nginxcp cPanel nginx automated installer Plugin which Turbo boost your cPanel server with low resources usage.
Nginx Admin Install instruction:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install
Nginx Admin Uninstall instruction:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall
If you get any error message “access key doesn’t exist, Go to WHM >> Cluster/Remote Access >> Setup Remote Access Key
Then click Generate New Key and then to install it.
Please visit http://nginxcp.com/ for information.
Nginx Admin Install instruction:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install
Nginx Admin Uninstall instruction:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall
If you get any error message “access key doesn’t exist, Go to WHM >> Cluster/Remote Access >> Setup Remote Access Key
Then click Generate New Key and then to install it.
Please visit http://nginxcp.com/ for information.
Etiquetas:
cPanel/WHM,
How-To,
Installation
cPanel error mysql database size 0MB
You may see the mysql database size as zero in cPanel >> ‘Mysql Databases’ option, though the databases contains tables and data. In order to include the size of the databases while displaying disk usage in cPanel/WHM, perform either of the following steps:
1. SSH to your server as root and edit the cpanel.config file
disk_usage_include_sqldbs=0
and change to
disk_usage_include_sqldbs=1
If the parameter is not present, add it. Save the file and execute the following command:
# /scripts/update_db_cache
OR
2. Login to the WHM, goto Tweak Settings >> ‘SQL’ section and enable the following option:
When displaying disk usage in cpanel/WHM include Postgresql and MySQL.
This issue was fixed on most of times.
1. SSH to your server as root and edit the cpanel.config file
# vi /var/cpanel/cpanel.configSearch for
disk_usage_include_sqldbs=0
and change to
disk_usage_include_sqldbs=1
If the parameter is not present, add it. Save the file and execute the following command:
# /scripts/update_db_cache
OR
2. Login to the WHM, goto Tweak Settings >> ‘SQL’ section and enable the following option:
When displaying disk usage in cpanel/WHM include Postgresql and MySQL.
This issue was fixed on most of times.
Etiquetas:
cPanel/WHM
Subscribe to:
Posts (Atom)
