Saturday, April 30, 2011

Fetal Error


**//Follow the step given below**// :-
 
**********************************************
1> Please enable it :---

                  register_globals is disabled in php.ini
**********************************************
2> This can be corrected by creating a file named php.ini in this sites folder & placing the following value on    the first line :---

                   register_globals = on
 
**********************************************

Sunday, April 24, 2011

To delete mailnull bounced mail

** Just fire the given script below **  :-

-------------------------

cd /var/spool/exim/input

-------------------------

grep -lir mailnull * | xargs rm -fv

--------------******---------------

Saturday, April 23, 2011

When a user's mailbox is showing set in mailenable as well as in plesk but you still get an error during delivery try this

 **Just follow the step example is given below ** :-

- Goto %plesk_dir%/mailservers/mailenable/config

- Take a backup of ADDRESS-MAP.TAB

- Open ADDRESS-MAP.TAB in wordpad

You should see mailboxes in this format :-

[SMTP:abuse@securediscovery.com]   

[SF:securediscovery.com/harry]
     
 securediscovery.com    0

Each mailbox MUST be in one line,

if you see a line break eg;

[SMTP:abuse@securediscovery.com]  

 [SF:securedisry.com/harry]         

 securediscovery.com    0

Edit the text and make sure its in ONE line.Almost all the time, when a line breaks,
some characters are missing,so when you edit-make sure the there are no missing characters
in that line,This is very important and should be done carefully.

{Important}:-

Once this is done, restart mail-enable and test that mailbox.

Friday, April 22, 2011

Behavior of appache ( mysql )

Sometimes such behavior of apache/httpd (taking more & more memory until it dies or crashes the server) can be caused by corrupted MySQL database.

**Try to do the following scripts :-

1> Kill the mysql server :-

      /etc/rc.d/init.d/mysql stop

2> Repair all SQL databases:-

      myisamchk -r /var/lib/mysql/*/*.MYI

3> Start mysql again:-

     /etc/rc.d/init.d/mysql start

***************************************************

Saturday, April 16, 2011

Ample usful Scripts

***/ Several useful scripts are given below /***


. Fixing Mail List MailMan :-
/usr/local/cpanel/bin/convertmailman2

--------------------///-----------------------

. Reinstall MailMan :-
/scripts/reinstallmailman
/scripts/fixhome
pico /etc/my.cnf

--------------------///-----------------------
. Edit php.ini :-
pico /usr/local/lib/php.ini

--------------------///-----------------------
. Edit Apache Conf :-
pico /etc/httpd/conf/httpd.conf

--------------------///-----------------------
. Checking Real Time Top Processes Login to SSH and run
top

--------------------///-----------------------

. Run cpanel backup :-
/scripts/cpbackup

--------------------///-----------------------
. To try and fix domain controller :-
/scripts/fixndc

--------------------///-----------------------
. Quotas :-
/scripts/initquotas - takes a while to run
/scripts/resetquotas
/scripts/fixquotas - takes a while to run

--------------------///-----------------------
. Add a Dns Entry :-
/scripts/adddns

--------------------///-----------------------
. Install Frontpage Mail Exts :-
/scripts/addfpmail

--------------------///-----------------------
. Add JavaServlets to an account (jsp plugin required) :-
/scripts/addservlets

--------------------///-----------------------
. Add a User :-
/scripts/adduser

--------------------///-----------------------
. Run WHM Lite :-
/scripts/admin

--------------------///-----------------------
. Add Rlimits (cpu and mem limits) to apache :-
/scripts/apachelimits

--------------------///-----------------------
.Resync with a master DNS Server :-
/scripts/dnstransfer

--------------------///-----------------------
. Edit A User's Quota :-
/scripts/editquota

--------------------///-----------------------
. Search For Trojans in /dev :-
/scripts/finddev

--------------------///-----------------------
. Locate Trojan Horses :-
/scripts/findtrojans

--------------------///-----------------------

. Suggest Usage :-
/scripts/findtrojans > /var/log/trojans
/scripts/fixtrojans /var/log/trojans

--------------------///-----------------------
. Make Interchange work with suexec :-
/scripts/fixcartwithsuexec

--------------------///-----------------------
. Fix Most Problems with Interchange :-
/scripts/fixinterchange

--------------------///-----------------------
. Run on a trojans horse file created by findtrojans to remove them :-
/scripts/fixtrojans

--------------------///-----------------------
. Run this if a user's stats stop working :-
/scripts/fixwebalizer

--------------------///-----------------------
. Fix a broken valias file :-
/scripts/fixvaliases

--------------------///-----------------------
. Turn on DMA and 32bit IDE hard drive access (once per boot) :-
/scripts/hdparamify

--------------------///-----------------------
. Re-scan quotas. Usually fixes Disk space display problems :-
/scripts/initquotas

--------------------///-----------------------
. Turn on SUEXEC (probably a bad idea) :-
/scripts/initsuexec

--------------------///-----------------------
. Display Ipusage Report :-
/scripts/ipusage

--------------------///-----------------------
. Terminate an Account :-
/scripts/killacct

--------------------///-----------------------
. Delete "Security Problem Infested RPMS" :-
/scripts/killbadrpms

--------------------///-----------------------
. Fix Various Mail Permission Problems :-
/scripts/mailperm

--------------------///-----------------------
. Attempt to Troubleshoot a Mail Problem :-
/scripts/mailtroubleshoot

--------------------///-----------------------
. Change a Mysql Password :-
/scripts/mysqlpasswd

--------------------///-----------------------
. Kill Potential Security Problem Services :-
/scripts/quicksecure

--------------------///-----------------------
. Rebuild Ip Address Pool :-
/scripts/rebuildippool

--------------------///----------------------- 
. Delete Nasty SSL entry in apache default httpd.conf :-
/scripts/remdefssl

--------------------///-----------------------
. Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql) :-
/scripts/restartsrv?? (example: /scripts/restartsrv httpd)

--------------------///-----------------------
. Syncup Security Updates from RedHat/Mandrake :-
/scripts/rpmup

--------------------///-----------------------
. Force a webalizer/analog update :-
/scripts/runlogsnow

--------------------///-----------------------
. Remove non-important suid binaries :-
/scripts/secureit

--------------------///-----------------------
. Install Frontpage 4+ on an account :-
/scripts/setupfp4

--------------------///-----------------------
. Return a Simple process list. Useful for finding where cgi scripts are running from :-
/scripts/simpleps

--------------------///-----------------------
. Suspend an account :-
/scripts/suspendacct

--------------------///-----------------------
. Syncup Cpanel RPM Updates :-
/scripts/sysup

--------------------///-----------------------
. Unblock an IP :-
/scripts/unblockip

--------------------///-----------------------
. UnSuspend an account :-
/scripts/unsuspendacct

--------------------///------------------------
. Update Cpanel :-
/scripts/upcp

--------------------///-----------------------
. Update /scripts :-
/scripts/updatenow

--------------------///-----------------------
. Create a New Account :-
/scripts/wwwacct

--------------------///-----------------------
. Awstats to run manually :-
/scripts/runweblogs account_username 

--------------------///-----------------------
. License Not working :-
rdate -s rdate.darkorb.net



------............*********.............--------

Wednesday, April 6, 2011

Here are some frequently used scripts for you


**// Here are some very important scripts which could help you with following problems //**


------****------
. Updates the server software :-*

/scripts/upcp

------****------

. Reinstalls exim :-*

/scripts/exim4

------****------

. View traffic or if you think a site is being DDoS :-*

cd /usr/local/apache/domlogs
tail -f targetsite.com

------****------

. Bandwidth issues :-*

/scripts/cleanbw

------****------

. To fix problem in webalizer that stop updating stats:-*

/scripts/fixwebalizer

------****------

Self Explanatory :-*

/scripts/fixcommonproblems
/scripts/fixeverything

------****------


Enjoyed all....

Monday, April 4, 2011

memory error

If you get any out of memory errors , Then you have to shut down certain services immediately:--
 ------------------------------
 service httpd stop
 ------------------------------
 service mysql stop
 ------------------------------
 service couirer-imap stop
 ------------------------------
 service exim stop
 ------------------------------

This services once stop problem will be solved .