Archive for December, 2011

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 […]

How to install phpSHIELD?

phpSHIELD Installation : Introduction: phpSHIELD protects your PHP Source Code with a powerful, easy to use encoder, which creates a native bytecode version of the script and then encrypts it. It’s needed to video script enabled sites. —— STEPS: Login to server as root: 1. Check the architecture of your machine. like : root@j [~]# […]

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.      

Checking Malware contents for any account

Checking Malware contents for any account : Steps : 1. login to shell 2. fire one command given below : grep -ilr “kusik-tusik-trf.com” /home/*/public_html/index.* grep -ilr “iframe” * grep -ilr “eval(base64_decode” * most probably search : grep -ilr “eval(unescape” * 3. You will get file name. Open the file and search for the malware using […]

mysqldump: Got error

When you try to run the mysqldump command to make a backup of database then encounter the following error-exception: mysqldump databasename  > databasename.sql mysqldump: Got error: 1016: Can’t open file: ‘./databasename/wp_142_term_taxonomy.frm’ (errno: 24) when using LOCK TABLES Solution: Open the file /etc/my.cnf and  add the following line and restart the mysql service on the server root@server [~]#vi /etc/my.cnf open-files-limit=20000 […]