Web Hosting, cPanel, Plesk, cPanel Help, Plesk Help, Tutorials, Articles

Web Hosting Articles, Web hosting FAQ’s, Control Panel Help & Updates.

Mysql gives error of access denied for root@localhost on cPanel Servers

January20

The most possible cause of this error is an incorrect password. You can usually find the correct password in this file:  /root/.my.cnf.

The file will contain the first root password the server was given once cPanel is installed. If it still does not work, you will need to reset the mysqld root password. To do so you can follow the below steps:

1. Stop mysqld – /etc/rc.d/init.d/mysql stop
2. Stop chkservd to keep it from interfering with mysqld – /etc/rc.d/init.d/chkservd stop
3. Start mysqld without the grant tables -  mysqld –skip-grant-tables -u mysql &
4. Now change the pass.
mysql -u root mysql UPDATE user SET Password=PASSWORD(‘new_password’) WHERE user=’root’; FLUSH PRIVILEGES;

Now you just killall -9 mysqld and start it up normally with it’s safe_mysqld script.

posted under cPanel | No Comments »

Addon Domain vs. Parked Domains.

January19

 In case if you have ever wondered the difference between Addon Domain and a Parked Domain when adding them from within cPanel, here is what will help you understand:

Characteristic Addon Domains Parked Domains
Main domain appears in the address bar Yes No
Separate stats Yes No
Apache directive used VirtualHost ServerAlias
Separate logs Yes No
Ideal for multiple domains sharing the same address No Yes
Treated as a subdomain (other than URL) Yes No
posted under cPanel | No Comments »

How to run cgi/perl file outside cgi-bin in cpanel server?

January17

To run  cgi/perl file outside cgi-bin in cPanel server you will need to add following lines in .htaccess files so it executes cgi scripts in any folder outside cgi-bin folder.

AddHandler cgi-script .pl .cgi
Options Includes ExecCGI

posted under cPanel | No Comments »

/usr partition 100% full in Control Panel.

January17

The /usr partition on this server is running out of disk space. WHM operation has been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.

You can check the size of error_logs and access_logs on your Linux server and in case these files are large you can empty them by using following commands -

#cd /usr/local/apache/logs
#ls -sh error_logs
#ls -sh access_logs 

The log files will generally be in the size of GB’s

#echo > error_logs
#echo > access_logs 

This should resolve the issue.

posted under cPanel | No Comments »

How can I setup an alternate port for SMTP in WHM?

January15

You can run exim on another port by going to ‘Service Manager’ option in WHM. Below are the exact steps:

# Log into WHM
# Click Service Manager
# Check the enable box for Exim on Another Port.
# Set the port to 26 (recommended)
# Click save.

posted under cPanel | No Comments »

IMPORTANT: Do not ignore this email. Hostname error

January15

IMPORTANT: Do not ignore this email.
The hostname (hostname.server.com) resolves to . It should resolve to xx.xx.xx.xx. Please be sure to correct /etc/hosts as well as the ‘A’ entry in zone file for the domain.

Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if you believe everything else is correct.

A newly setup cPanel system may have such an error message when you login to WHM.

You can resolve this by going to the DNS Functions area on the left menu and selecting Add an A Entry for your Hostname.

WHM should automatically try to add the relevant A record for your hostname to the DNS zone present on your system. You can now logout and then log in back to WHM to see if the message returns.

posted under cPanel | No Comments »

How to check cPanel version from command line ?

December28

To see the cPanel version running on your Server, login as root and run the below command:

# /usr/local/cpanel/cpanel -V

posted under cPanel | No Comments »

How to install RVSiteBuilder ?

November26

RV SiteBuilder is a complete online application to build a Website without the need to have any coding knowledge. It is fully integrated to CPanel and is therefore easily accessible.

RVsitebuilder requires a license that needs to be purchased from www.rvsitebuilder.com

SSH as root in your server and download the installer using the following command:

cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi

Now login to WHM as root and at the bottom of the left menu you will find RVSiteBuilder Installer under the Plugins Section.
Click on the RVSiteBuilder Installer and proceed with the installation. After the installation is complete it will automatically direct you to RVSiteBuilder Manager Page, here you can configure RVSiteBuilder.

Once completed you should see RVSiteBuilder as a feature in your cPanel.

posted under VPS, cPanel | No Comments »

How To Install Cpanel And WHM

November26

To begin your installation, use the following commands:

  1. cd /home — Opens the directory /home.
  2. wget -N http://layer1.cpanel.net/latest — Fetches the latest installation file from the cPanel servers.
  3. sh latest — Opens and runs the installation files.
  4. /usr/local/cpanel/cpkeyclt — Activates your license after installation.
posted under cPanel | No Comments »

How to install cPanel on a VPS?

November26

This post will show you how to install cPanel on a VPS.

- Login to your VZMC to get inside your server

- Create a new VPS with the Sample Ve Config call vps.cpanel

- Now you should select the ips you want to use in that VPS and the dns servers.

- Select RedHat Enterprise Template (you dont need to select any addon for cpanel), and select the Space / Memory / CPU

- Put Start on boot and the rest of the normal set use unlimited VPS.

Then SSH in to the Server with root login and run the following commands:

# mkdir /home/cpanel
# cd /home/cpanel
# wget http://layer1.cpanel.net/latest
# sh latest

To setup your VPS login to the WHM using https://SERVERIP:2087

posted under VPS, cPanel | No Comments »
« Older Entries