Wednesday, 11 May 2011

How to register a domain with using extra IPS


//  Let's get started with following simple steps  // :-

1. >
       Login to your registrar panel (Godaddy, Enom, etc..).
2. > 
      Select the domain you want to use & find where you can 'Register New DNS'
3. >
      Put in ns1.yourdomain.com and ns2.yourdomain.com in the respective fields.
4. >
      Put in the IP addresses < either yours or the ones provided to you by your host >
5. >
      Hit the save or submit button.
    ** NOTE:- If you are a regular reseller the rest is done by your host on their end so notify them that you            .         have done your part, If you run a dedicated server, read on.
6. >
      Login to your WHM panel as "root",
7. >
      Go to 'Reseller Center', select 'mydomain.com'. Click on the 'Edit Domains/Privilages' icon.
8. >
      When the page loads scroll down & put in the new nameservers, in this case ns1.mydomain.com &  
          ns2.mydomain.com.
9. >
       Save them & scroll down to 'DNS Function' and select 'Edit DNS Zone'.
10. >
      You will notice that the new nameservers are now located in the top 2 text fields Scroll all the way down 
          to where it says 'Add new A entries'.
11. > 
        In the first text field put in the nameserver & in the second empty text field put in the IP address. So it 
          will look something like this:-

          ns1.mydomain.com 14400 IN A 1.1.1.1

          ns2.mydomain.com 14400 IN A 1.1.1.2
12.  > 
         Click Save & you are done Enjoy.
 
-------------------------************--------************-----------------------------

Tuesday, 10 May 2011

Commands to open tcp or udp ports on the servers


//**Following commands use to open tcp or udp ports on the server **// :--

** Before using commands for opening the port,Please make sure the specific port is already opened & what is the use of that port **

You can verify the port with  :-

netstat -nap | grep : <port no>

(1)  You can open TCp port with.

iptables -A INPUT  -p tcp –dport <port no> -j ACCEPT
 
------------------------------------****************------------------------------------------
(2) You can open UDP port with

iptables -A INPUT -p udp –sport <port no>  -j ACCEPT

after that
 
 ------------------------------------****************------------------------------------------
 
(3) Service iptables save

and for flushhing iptables us

iptables -F 
 iptables -A INPUT -s 210.0.143.122 -j DROP

203.162.3.147

iptables -L

service iptables save
 
------------------------------------****************------------------------------------------

Monday, 9 May 2011

Properly Rejected Invalid Emails


//**Just read the method given below to resolve this issue**//  :--
*******************************
Mail queue fill up with bounce messages to non-existant spammer email addresses, By default. If an email comes into your server addressed to an invalid recipient, Exim will accept the message from the delivering agent, and then generate a return email to them explaining that the address is invalid, With this little tweak, you can make exim tell the delivering agent,Tthat address is invalid at the time the message is being delivered.

Method 1)
. Open WHM and click on Exim Configuration Editor

. Click on the Switch to Advanced Mode button.
. Scroll down until you see the section on ACL's. You'll see three boxes. In the middle box, locate the section that reads - See Section A:
--------------------------------------------------------------------------------------------

Method 2) Recommended

. Login into SSH and su to root.

. pico /etc/exim.conf

. Ctrl + W and type in: accept  domains , Notice the two spaces. Look for something like this below.


Section A :-

accept  domains = +local_domains
accept  domains = +relay_domains
accept  hosts = +relay_hosts
accept  condition = ${perl{checkrelayhost}{$sender_host_address}}

Between

accept domains = +local_domains

&

accept domains = +relay_domains

add the following:

endpass
message = unknown user
verify = recipient

Make sure each line lines upYou might need to add two spaces before each line, The final section will look like this :-

accept domains = +local_domains
endpass
message = unknown user
verify = recipient
accept domains = +relay_domains
accept hosts = +relay_hosts
accept condition = ${perl{checkrelayhost}{$sender_host_address}}

Scroll all the way to the bottom and click on Save.

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

Sunday, 8 May 2011

how to Setting or customising Server Security


//**Fire the following given command on the server**// :--

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

#system-config-securitylevel

 & also

/etc/sysconfig/selinux
 
*************--**--**************

All done..

Saturday, 7 May 2011

What is Bad Blocks ?


//**Check out the following commands for BAD BLOCKS **//:--

Badblocks [options] device block-count
    
    System administration command, Search device for bad blocks. You must specify the number of blocks on the device (block-count). e2fsck and mke2fs will invoke badblocks automatically when given the -c option.

**Options:--

-b 
    blocksize

    Expect blocksize-byte blocks,

************************************
-c   blocksize

    Test blocksize-byte blocks at a time. Default is 16,

 ***********************************
-f

    Force a read/write or nondestructive write test on a mounted device. Use only when /etc/mtab incorrectly reports a device as mounted.

************************************
-i file

    Skip test of known bad blocks listed in file.

 ************************************
-n

    Perform a nondestructive test by writing to each block & then reading back from it while preserving data,

************************************
-o file

    Direct output to file,

************************************
-p number

    Repeat search of device until no new bad blocks have been found in number passes, Default is 0.

************************************
-s

    Show block numbers as they are checked

************************************
-t pattern

    Test blocks by reading and writing the specified pattern. You may specify pattern as a positive integer or as the word random, If you specifiy multiple patterns, badblocks will test all blocks with one pattern, and then test all blocks again with the next pattern. Read-only mode will accept only one pattern It will not accept random.

************************************
-v

    Verbose mode

************************************
-w

    Test by writing to each block & then reading back from it.
 
 
--------------------------------------------------------------------------------------------------------

Friday, 6 May 2011

How to fix the error -License File Expired-

//**To deal with such issue is very easy just follow given instructions**// :--

First we need to check the license on http://verify.cpanel.net/ to ensure that it is still licensed
If it's not Then please contact who you purchase the license from directly

**If it says it is valid, try the following commands as root via SSH:-
---------------------------------------
# rdate -s rdate.cpanel.net

# /usr/local/cpanel/cpkeyclt
 
---------------------------------------

Thursday, 5 May 2011

Solution for MIME


//**Follow the Instruction**//:--

If your web site is running on linux server and want to make it stream windows media.Then you have to do following steps :<<


     Step. 1 >
 
First, you have to configure mime type in apache web server to recognize the windows media file .asx .


     Step. 2 >

Log on to linux server as a root, At the dollar prompt, type as following below

Change directory to etc folder
$ cd /etc

Edit mime.types file
$ vi mime.types


     Step. 3 >

Then press i at your keyboard to enter text below You can place this text below any where in the file mime.types.

Application/x-mplayer2 asx m3u


      Step. 4>

Then press Esc key.

      
     Step.5 >
 
Then press Shift key and colon key, You will see, it appears at the bottom of the file.

Type as below at colon prompt to quit and save

:wq

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

Wednesday, 4 May 2011

Stats not working at all


//**If the Stats in the server are not working please follow instruction**//:-

WHM - Server Configuration - Tweak Settings ' Delete each domain's access logs after stats run ' must be unchecked ,After this it should work properly.

**There are also some scripts available to fix this issue:--

/scripts/updatenow

/scripts/updateuserdomains

/scripts/fixeverything

/scripts/upcp –force
 
 
Enjoye 

Monday, 2 May 2011

Spamming From User By Hidding Domain Name


**//Refer the solution given as below//** :---

-It seems that some user is spamming from your server,then for quick action clear the exim mail queue.

'rm -rf /var/spool/exim/input' 

It will do it, But you should investigate more and  find the source script or domain & take actions so as to really help you out of this kind of issue.

***********--------------************
Fire the below mentioned command at your command prompt to find the domain which is being used by spammers for spamming :--

# exim -bpr | exiqsumm -c | head

And Then

#exiqgrep -ir <domain> | xargs -n1 exim -Mrm

That should remove any Email that is in the queue that is waiting to be delivered to POP accounts at [domain]


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

Sunday, 1 May 2011

Total info of PHP


***To check php info of a domain enter the following code in a file in pulic_html of the domain** :::---
 
 
********-----------**********

      <?phpinfo();?>

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

And then all the info will POP on your screen up to you..