Tuesday 19 February 2013

Not able to view Accounts in WHM List Accounts

There are many reasons for an active account to disappear from WHM List Accounts.

Assuming the disappeared account as www.r6host.com with username ‘serveruk’, you should check following entries on the server:
1) Check for the VirtualHost entry for the domain in /usr/local/apache/conf/httpd.conf file. If the VirtualHost entry is missing, add it.

2) Check the entry for the domain in /var/cpanel/users/serveruk. If the entry domain the domain appears like XDNS=r6host.com, change it to DNS=r6host.com.

3) Check the entry for the domain in /etc/userdomains & /etc/trueuserdomains.

4) If the domain is not visible in only reseller WHM, you should check the entry in /etc/trueuserowners.

Wednesday 13 February 2013

HowTo: Find Out RHEL 6 / CentOS 6 Kernel Version

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?

You need to use the uname command to find name and information about current kernel. It can provide the following information

The kernel name (-s)
The Network node hostname (-n)
The kernel release (-r)
The kernel version (-v)
The machine hardware name (-m)
The processor type (-p)
The hardware platform (-i)
The operating system (-o)
RHEL 6 Kernel Version Command

Open a command-line terminal (select Applications > Accessories > Terminal), OR login to remote server using the ssh command and then type:

$ uname -r

 Sample outputs:
2.6.32-220.2.1.el6.x86_6

The following provides a little more information:

$ uname -mrs

 Sample outputs:
Linux 2.6.32-220.2.1.el6.x86_64 x86_64

You can see the complete information with the following command:

$ uname -a

 Sample outputs:
Linux example.cyberciti.biz 2.6.32-220.2.1.el6.x86_64 #1 SMP Tue Dec 13 16:21:34 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
Find Red Hat Linux Distribution Version

Type the following cat command:
$ cat /etc/redhat-release

 Sample outputs:
Red Hat Enterprise Linux Server release 6.2 (Santiago)

You can also view the manual page on uname using the following command:
$ man uname

Wednesday 6 February 2013

SuPHP Settings - Softaculous

Overview



These settings need to be changed if you have suPHP enabled on your server. It tells Softaculous to set the correct permissions for writable files and folders.

Suphp1



Go to settings, edit the CHMOD Files to 0644 and CHMOD Directories to 0755 (shown in the figure) and click edit settings.

Suphp2

Config File Settings



If you are running suPHP and would like CONFIG files to be more secure than set the CHMOD config files to the permission you wish to set. e.g. 0600 will make it readable only to the user and no one else.