Archive for the ‘Uncategorized’ Category

What To Do when receive FreeBSD Dedicated Server from Hosting Company

Saturday, September 18th, 2010

First of all you should be happy that you received your FreeBSD dedicated box.

Change passwords forĀ  ssh admin login user, and root user, you can use command passwd.
Add more login users if you like.

It’s recomended to change the default ssh port 22 to something else to protect from spam.

Download and extract Ports Collection using commands:

  1. #portsnap fetch
  2. #portsnap extract

If Ports Collection already installed you can update it using :

  • #portsnap update

Update locate database lookup file to make it easy find and search files using command:

  • #/usr/libexec/locate.updated.

Start setup other software you need.
you cane use locate to find it for example search and install apache web server:
#locate apache

#cd /usr/ports/www/apache22

#make install

Cheep and professional Dedicated Servers

Thursday, June 17th, 2010

iWeb providing Effective and Scalable Web Hosting Solutions . Both Shared Web Hosting, and Dedicated Servers.

its cheep and professional.
Iweb

Adding new Site To Bind DNS server.

Sunday, May 16th, 2010

By Default Bind DNS server is installed on FreeBSD.

To Add a new site to the DNS server follow this steps:

  1. edit file named.conf.
  2. cd /var/named/etc/namedb
  3. ee named.conf
  4. at end of file add new zone for the new web site ex:
  5. zone "mysite.com" {
            type master;
            file "master/mysite.com";
            allow-transfer {localhost;};
            allow-update {key rndc-key;};
    };
    
  6. then edit the new zone:
  7. cd master
  8. ee mysite.com
  9. $TTL 1500
    @  IN SOA ns1.mysite.com. root (
                                 2010051501        ;serial
                                 28800             ;refresh
                                 3600              ;retry
                                 604800            ;expire
                                 38400 )           ;minimum 25 minutes
                    IN      NS      ns1
                    IN      NS      ns2
    ns1             IN      A       x.x.x.x
    ns2             IN      A       x.x.x.x
    localhost       IN      A       127.0.0.1
    @               IN      MX 10   mail
    imap            IN      CNAME   mail
    smtp            IN      CNAME   mail
    @               IN      A       x.x.x.x
    www             IN      A       x.x.x.x
    mail            IN      A       x.x.x.x
    @               IN      TXT     "v=spf1 mx"
    
  10. be sure named is enabled named_enable=”YES” in /etc/rc.conf
  11. Restart the DNS server
  12. /etc/rc.d/named restart