LOW COST JAVA PHP MYSQL CGI PERL
HOSTING SERVICE
LINUX WINDOWS CPANEL WHM PLESK
HOSTING PACKAGES
ECOMMERCE HOSTING ASP JSP MSSQL
FRONTPAGE HOSTING
CPANEL WHM RESELLER DEDICATED
SERVER WEB HOSTING

Archive for November, 2006

Default nameserver when you create account through whm.

You add or change the private nameservers on your dedicated server; however, when you set an account up through WHM it does not show your private nameservers. To correct this, you will need to edit the wwwacct.conf file. Follow these steps to do it:�=

# vi /etc/wwwacct.conf
Add or edit following lines as per your requirement.
ns = ns1.domain.com
ns2 = ns2.domain.com

Save the file, then recreate the account in WHM; it should now show your private nameservers.

2) Follow these steps if a reseller client wants to use his private nameservers in WHM:

Go to whm >> Resellers >> Reseller Center

Select the appropriate reseller account from dropdown list.
Click on edit privileges / Nameservers

Scroll down to the bottom of the screen and enter the name of the reseller’s nameserver(s) in the blank field next to Primary nameserver and secondary nameserver as per below.

Primary nameserver = ns1.domain.com
Secondary nameserver = ns2.domain.com

Click on ’save’.

Now, when the reseller creates accounts through WHM, his/her’s private nameservers should be used!

Comments (1) Bookmark on del.icio.us

Squirrelmail error.

If a client gets the following error whilst trying to access SquirrelMail: 

Warning: main(../config/config.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 18
Fatal error: main(): Failed opening required ‘../config/config.php’ (include_path=’/usr/local/cpanel/3rdparty/lib/php/:.’) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/global.php on line 18

…then follow these steps to fix the problem:

1)
Go to directory /usr/local/cpanel/base/3rdparty/squirrelmail/config

# cd /usr/local/cpanel/base/3rdparty/squirrelmail/config
2)
copy config_default.php to config.php

root@server1[/usr/local/cpanel/base/3rdparty/squirrelmail/config]# cp config_default.php config.php
 That should be the problem solved!

Comments Bookmark on del.icio.us

Disable squirrel or horde from webmail.

 

If a client only wants to use either Horde or SquirrelMail, then follow these steps:

1)
The the client wants to disable Horde:

root@server1[/]# vi /var/cpanel/users/username
Add the following lines:

skiphorde=1
skipsqmail=0

save the file.

root@server1[/]# Service cpanel restart

If a client wants to disable Horde and disable SquirrelMail then add these lines:

skiphorde=0
skipsqmail=1

Comments Bookmark on del.icio.us

Unix flavours

Definition of Flavours: Unix is not a single operating sysytem. It is in fact a general name given to dozens of o.s. by different companies, organizations or groups of individuals. These variants of unix are referred to as flavors. Although based on the same core set of unix commands, different flavours can have their own unique commands and featires, and are designed to work with different types of h/w. Linux is often considered a unix flavour. See a list of unix flavours:
1. AIX : AIX is commercial version of unix producd IBM.

 

2. BSD : Berkeley Software Distribution.

3. Caldera : The Caldera Open UNIX 8 deployment platform uses Linux Kernel Personality (LKP)

4. FreeBSD : FreeBSD makes a great internet server Or firewall, and recent advancements make freeBSD powerful multimedia editing workstation.

5. HP-UX : HP-UX was the first Unix to use access control lists for file access permissions.

6. Solaris : Solaris is the unix flavour produced by sun Microsystems.

7. Linux : Linux has generated more excitement in the computer field than any other development.

Linux flavours : Red-hat, Fedora, SUSE, Slackware, Gentoo, Debian, mandrake.

Comments Bookmark on del.icio.us

If IP address assigned to a server are missing from the drop down list in CREATE ACCOUNT.

1)
Check that the ip address is in ifconfig: 

root@[/]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:61:B5:AE:74
inet addr:69.93.237.209 Bcast:69.93.237.223 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:216786947 errors:0 dropped:0 overruns:0 frame:0
TX packets:292861708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:1968126893 (1876.9 Mb) TX bytes:317887913 (303.1 Mb)

2)
Check the entry of ip address in /etc/ips

root@[/]# vi /etc/ips

69.93.237.209:255.255.255.224:69.93.237.223
69.93.237.210:255.255.255.224:69.93.237.223
69.93.237.211:255.255.255.224:69.93.237.223

The first column is the ipaddress assign to the server that you can see in “ifconfig” i.e. “inet addr:69.93.237.209″

The second column is the Mask:255.255.255.224.

The third column is the Brodcast:69.93.237.223.

3)
Check if the ips are listed in /etc/ipaddrpool

root@[/]# vi /etc/ipaddrpool

69.93.237.209
69.93.237.210
69.93.237.211
If the IP address not listed in any of above file, then add it and then you should be able to access it when you create a new account.

Comments Bookmark on del.icio.us

Convert ^M to newline character in text files

If the ^M character is showing up in files while opening the file concerned, then follow these steps to convert it to a new line.
In vi use the following:

:%s/^M/\n/g

or with perl on the command line:

$ perl -pi.bak -e ’s/^M/\n/g’

NOTE: Be sure to create the ^M by typing ctrl V followed by ctrl M.

^M is ASCII 13 (Ctrl M), which is the carriage return.

Different operating systems use different symbols to set the end of a line/new line.
Unix uses newline (\n)
Mac uses carriage return (\r)
And Windows/DOS use both (\n\r)

To prevent the ^M from showing up in files, be sure to use the ASCII (text) mode when transfering text files.

Comments Bookmark on del.icio.us

« Previous entries · Next entries »