Archive

Archive for November, 2013

Default Automatic index page when new account is created in cpanel/WHM

November 29th, 2013 No comments

Default Automatic index page when new account is created in cpanel/WHM

 

We all want to show default index page when new account is setup. Below are the steps:

First of all we have to create below  folder.

mkdir /root/cpanel3-skel

mkdir /root/cpanel3-skel/public_html

Create default index page.

vi /root/cpanel3-skel/public_html/index.html

save and quit the file.

 

If you want user have a customized .bashrc file for their SSH sessions then you can create it.

/root/cpanel3-skel/.bashrc

 

 

 

 

Categories: CPanel / WHM Tags:

How to Configure Multiple shared IP’s in WHM

November 29th, 2013 No comments

How to Configure Multiple shared IP’s in WHM

 

It is not possible to add multiple shared IP’s from WHM but it is possible to do it from SSH.

First of all we need to create a /var/cpanel/mainips/ directory if it is not present.

mkdir /var/cpanel/mainips/

Then we have to create a file.

vi /var/cpanel/mainips/root

Add all IP’s into it. save the file and quit.

121.127.250.152
121.127.250.153
121.127.250.154

Now login to WHM and check the IP’s

Home>>IP Functions>>Show/Edit Reserved IPs

 

Categories: CPanel / WHM Tags:

how to install whmsonic in cpanel

November 29th, 2013 No comments

How to install WHMSonic in cpanel

 

Login to your server root SSH and copy/paste the following command fully and run it.

cd /root/; rm -f installr.sh; wget http://www.whmsonic.com/setupr/installr.sh; chmod +x installr.sh; ./installr.sh

 

Sample installation output:

***********************************************************************
* WHMSonic Setup v2.1.11 *
***********************************************************************
WHMSonic installer is now installing the latest version. This may take a few minutes, please wait…
–2013-11-29 00:55:15– http://www.whmsonic.com/v2/setup/whmsonic.zip
Resolving www.whmsonic.com… 67.228.53.90
Connecting to www.whmsonic.com|67.228.53.90|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 10530510 (10M) [application/zip]
Saving to: `whmsonic.zip’

 

 

WHMSonic installer is now installing the latest version. This may take a few minutes, please wait…
Dear valued customer, WHMSonic v2.1.12 has been successfully installed, you can now access to WHMSonic at your WHM Root at the bottom of your left menu.
If you have the CSF firewall installed on your server, it is updated for the radio ports by WHMSonic.

Manuals – Tutorials: http://help.sonicpanel.com
Technical Support: http://www.whmsonic.com/support/

Best Regards
SonicPanel INC

 

Categories: CPanel / WHM Tags:

Uninstall Cloudlinux from cpanel

November 29th, 2013 No comments

You can always uninstall CloudLinux. In this case, we will ‘convert’ the system

back to CentOS. Even if the original system was RHEL — we will still convert to

‘CentOS’ state.

To uninstall CloudLinux follow below steps:

wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy

sh cldeploy -c

Please, note that some of the packages from CloudLinux repo will still be present. They are same as CentOS packages, and don’t have to be removed. They will be updated in the future from CentOS repositories, as new versions come out.

 

You can use below steps further:

Check if your server is Cloudlinux installed in it using below command.

/usr/local/cpanel/bin/cloudlinux_system_install -c

Update your CentOS-provided RPMs

yum upgrade -y

Rebuild Apache

/usr/local/cpanel/scripts/easyapache –build

or

/scripts/easyapache –build

Reinstall a non-CloudLinux kernel.

yum –disableexcludes=all install kernel

Remove CloudLinux Kernel

rpm -qa |awk ‘/^kernel.*lve/ {print $1|”xargs yum -y erase”}’

Reinstall any CloudLinux-provided RPMs that are also provided by CentOS

rpm -qa –qf “[%{VENDOR} %{NAME}\n]”|awk ‘/CloudLinux/ {print $2|”xargs yum reinstall -y”}’

Downgrade any CloudLinux provided RPMs to the CentOS version

rpm -qa –qf “[%{VENDOR} %{NAME}\n]”|awk ‘/CloudLinux/ {print $2|”xargs yum downgrade -y”}’

Remove any remaining CloudLinux specific RPMs

rpm -qa –qf “[%{VENDOR} %{NAME}\n]”|awk ‘/CloudLinux/ {print $2|”xargs yum erase -y”}’

Upgrade any downgraded CentOS provided RPMs

yum upgrade -y

Reboot the server to use the new non-CloudLinux kernel

reboot

 

Categories: Cloud Linux, CPanel / WHM Tags: