How to add a range of IPs on a BSD box.

FreeBSD is a popular free Unix like open source operating system that is based on the Berkeley Software Distribution (BSD) version of the Unix operating system. FreeBSD runs only on the Intel PC platform (i386 and higher) having atleast Pentium processor and also on amd64, Alpha/AXP, IA-64, PC-98 and UltraSPARC processors. You can consider FreeBSD as an alternative to Linux which will run Linux applications. Its said that its fast, stable, and is appropriate for Internet server or as a file server. FreeBSD supports all major X Window desktops, such as KDE and GNOME.

If you want to add Dedicated IPs on server having FreeBSD you need to follow following instructions.
First login to your FreeBSD server as a ‘non-root’ user. You should have an account in the ‘wheel’ group. Once you logged in your server just run the following commands to switch users to ‘root’

su -
Password:
server#

you will get command prompt as ‘#’ which indicates that you are operating server as ‘root’ user. Now run following commands as root :
ee /etc/rc.conf

now for example, if we want to add 4 IPs for your server [ 192.168.1.3 - 192.168.1.6 ] you need to implement following :
Code:
ifconfig_fxp0=”inet 192.168.1.2 netmask 255.255.255.248″
ifconfig_fxp0_alias0=”inet 192.168.1.3 netmask 255.255.255.255?
ifconfig_fxp0_alias1=”inet 192.168.1.4 netmask 255.255.255.255?
ifconfig_fxp0_alias2=”inet 192.168.1.5 netmask 255.255.255.255?
ifconfig_fxp0_alias3=”inet 192.168.1.6 netmask 255.255.255.255?

Note that changes to the _aliasNN and also the netmask changes to 255.255.255.255 from 255.255.255.248. The IP’s will not work unless you use a 255.255.255.255 netmask for the alias IP’s.

Once you added the entries to your file you need to press ‘ESC’ and have to save this file. You need to reboot the server so that all new IP’s would get bounded with your server and you can use them.
You have other option too, you can also use ifconfig command for adding IP’s on your server, in this case you don’t have to reboot your server. You can also add extra Dedicated IPs if you have WHM/cPanel control panel with your server. just login to your WHM account and add new Dedicated IP using WHM >> Add a new IP.

Posted under Linux cPanel Hosting, Shared cpanel Hosting, Uncategorized, cPanel Hosting, cPanel hosting accounts

This post was written by on November 25, 2008

Fantastico error : Fantastico is not installed at the default location


Many webmaster having cPanel server may get following error when you try to install/upgrade fantastico on your cPanel server. You may get few complaints from your customers stating that when they try to access fantastico they get below error code.
” I got this error when I click on the fantastico button in Cpanel.  Fantastico is not installed at the default location “
/usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico
directory from it’s current location to
/usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM ->
Tweak settings “


For this error you will have to update your cpanel version to latest version.  You can also set your server for auto cpanel update using following settings :

  • Login to your WHM > Choose “Update Config” > Tick “Automatic (Stable Tree)”you need to check if ioncube is installed on server and it should be enable in WHM -> Tweak settings.
  • you can update fantastico manually using following command cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php
  • You can also rebuild cpanel’s php using /scripts/makecpphp
  • You can also force cpanel update using following command /scripts/upcp –force

Once your server is updated, you may be able to install Fantastico again and can use it easily without any problem.

Posted under Uncategorized

This post was written by on November 20, 2008

Tags: , , ,

EPP code : Domain transfer

EPP code stands for Extensible Provisioning Protocol (Authorization code) is responsible for protecting your domain name against unauthorized transfers of domain name registrations thus is can be considered as a security code for your domain name. When you register any new domain an EPP code is generated for it and is saved at the global registry.

Whenever a domain transfer request is initiated by anyone he will have to provide EPP code [ Authorization key ] so that domain transfer request can be process. The EPP key is required for all .com, .net, .org, .biz, .info and .us domain names for transferring under some other domain registry. If you don’t have EPP code for above domain extensions then you can initiate transfer request. Your domain registrar will provide you EPP code [ Auth code ] once you register your domain with any domain registrar. You will have to provide this key code to your new domain registrar for whom you want to transfer your domain. ICANN regulations, a verification email or fax transfer authorization is also required. Main intention for using EPP code while transferring domains was to safeguard any domain transfer request so that unauthorized domain transfer request wont be entertained. Thus EPP code plays an important role while transferring domain names between two registrars. Following domain extensions requires EPP code for initiating domain transfer request.  :  .org, .info, .biz, .us, .com.cn, .net.cn, .org.cn, .cn, .tw, .jp, .in etc…..
Please note that EPP codes are case sensitive.

Posted under Uncategorized

This post was written by on November 13, 2008

Tags: , , ,

Setting or Changing MYSQL Root Password

Setting/changing MYSQL root Password
Setting up mysql database password is one of the important tasks which a webmaster should take care of. If you have never set a root password for MySQL, then server does not require a password at all for connecting as root and if you have already set password for your database and for some reason if you want to change it then you can do so using following commands.
To setup root password for MySQL databases for first time you need to login to your server as root and will have to use mysqladmin command at shell prompt as follows:

$ mysqladmin -u root password “mysql_password“

However, if you want to change/update your root password, then you will have to use following command

$ mysqladmin -u root -p oldpassword newpassword

after you fire above command you will have to provide password for your MySQL database.

Posted under Linux cPanel Hosting, Shared cpanel Hosting, cPanel Hosting, cPanel hosting accounts

This post was written by on November 5, 2008

Tags: , ,

Solving common Fantastico error

ERROR :  “You cannot install more than one script in root directory”

Sometime when you try to install some script in root directory of your domain/addon domain you may get following error message “You cannot install more than one script in the root directory of a domain.

You are getting this error due to 2 reasons :
1) If you have removed previously installed script manually which are installed in the root folder of your main domain or any addon domain.
2) There can be chances that Fantastico haven’t removed the previously installed script properly.
If you are facing this problem you need to edit a file (installed_in_root.php) which is located under .fantasticodata folder.
Solution :

You need to login to your control panel cPanel, need to select Filemanager where you will find a folder named .fantasticodata, you need to access this folder and you will get a file named as “installed_in_root.php “ just open it and remove following code from it.
PHP Code:

After you remove this code just save the file, now you can install required script in the root for required domain/addon domain.

Posted under Uncategorized

This post was written by on November 2, 2008

Tags: , ,

More about SSH access

SSH or Secure shell is a protocol which is intended for exchanging data in most secure format over a network. You can get access to any remote machine and can operate it using this protocol. Most webhosting service provider will offer you root SSH access on higher hosting plans such as VPS or dedicated servers. Few webhost may offer you shell access on their shared hosting plans but its not a pure SSH access rather its Jailed SSH that mean you don’t have full SSH access to your account.
If you have SSH Root access you can easily login to any remote system and can fire any command you want, you have full access to the server you have logged into. Most important feature of SSH access is that its most secure as compare to other methods like rlogin or telnet. While using SSH access your system is connected and will exchange data through a communication of encrypted messages. You have session compression feature as an added advantage. One of the most important benefit of SSH in root access is the prevention of IP spoofing.

If you are login to your server using SSH then password of your system will not be hacked easily by mediator. People who act as mediators try to hack and spoof  your private data thus using SSH such sorts of violations are not possible. SSH works on authentication process before entering into a network for accessing any remote system. SSH uses public/private key cryptographic methods so as to ensure the identity of the requesting user for root getting access thus it ensure that there is no chance that a user can spoof as another user and login to the remote system.
SSH works with the help of many configuration files. It caches all host names with which it had acquaintance , it have its own list of  all host names this helps in authentication process to execute faster.

Posted under Linux cPanel Hosting, Uncategorized, cPanel Hosting, cPanel hosting accounts

This post was written by on November 1, 2008

Tags: , , ,