Archive for the ‘cpanel’ Category

How to cluster the DNS.

How to cluster the DNS? A DNS cluster is a number of nameservers that share records. This allows you to physically separate your nameservers so that in the event of, for instance, a power outage, you still have DNS functionality. This way, visitors can reach websites on your server more quickly after the web server […]

How to add Domainkeys for a domain on a cPanel server?

How to add Domainkeys for a domain on a cPanel server? Introduction: “DomainKeys” is an anti-spam software application that uses a public key, cryptography to authenticate the sender’s domain. cPanel offers a installer script “domain_keys_installer” using which the DomainKeys can be created and added automatically for a domain. Steps: By default the DomainKeys is not […]

How to connect MySql Database from remote machine?

How to connect MySql Database from remote machine Introduction: Some time clients or their web developer/designer need to connect to MySql database server hosted on remote cPanel server to be accessed from their desktop. Following are the steps to connect to MySql Database from remote Machine. A. How to enable Connection to Remote Host 1. […]

MySQL dbs and users dissapered from Cpanel

MySQL dbs and users dissapered from Cpanel Solution : You need to login to server as root and just run below command. /usr/local/cpanel/bin/setupdbmap Thats all.    

database size not updated in cpanel

In cPanel >> mysql database , it shows database size as ” zero” even if it is not. Solution : You just need to make the below changes to fix it : root@server [#] vi var/cpanel/cpanel.config and search for following line. disk_usage_include_sqldbs=0 ( set it to 1 instead of 0 ) then just run the […]

How to install php module without running EASYAPACHE?

Install php module without running EASYAPACHE 1. Login to server as root 2. cd /home/cpeasyapache/src/php-5.2.9/ext/XXXXX — >>> extension which you want to install 3. phpize 4. ./configure 5. make 6. make install 7. After that you can see extension dir path. ll extension dir path. 8. vi /usr/local/lib/php.ini 9. add extension=extension.so 10. then restart apache […]

How to remove blocked ip address from the Brute Force Protection by using SSH ?

How to remove blocked ip address from the Brute Force Protection by using SSH ? Solution :– When WHM locks out an user account, especially “root”, the best way is to wait for 10 minutes to see if the account will be unlocked. If the locks persists, webmaster and administrator who still can remote login […]

Domain masking code

Domain masking code : —– <frameset rows=”100%”> <frameset cols=”100%”> <frame src=”http://example.com/page.html” frameborder=”0″ scrolling=”no”> </frameset> </frameset> —–    

Script for Secure nobody and its Procedure.

Introduction: Secure nobody is the script /command through which we can find following things: 1. First it checks suspicious process, which are running under nobody user. 2. Then It checks directories such as /usr/local/apache/proxy /var/spool/samba /var/spool/vbox Above directories should not present on the server 3. It checks /tmp and /dev/shm for malicious scriptsand their mounting […]

disable mod security for single domain.

disable mod security for single domain. Steps : 1)Login to server as root. 2)Open mod security file. vi /usr/local/apache/conf/modsec2.conf 3) put below line at end SecRule SERVER_NAME “cpanelblog.in” phase:1,nolog,allow,ctl:ruleEngine=off Note : replace cpanelblog.in domain with your domain. 4) Save and exit 5) Restart apache service.