web analytics

Monthly Archives March 2010

Change hostname

To change hostname, login to the server as root and just type

hostname newname

where newname is the new hostname to be set

When you set hostname in that way, changes will be available till the server is rebooted only. For the changes to be effevtive even after a reboot, make the change permanent by doing the following.

vi /etc/sysconfig/network (redhat/fedora specific)

Change HOSTNAME=newname

Save and quit.

Alternatively, check the /etc/hosts file and see if the old hostname is present there. IF yes, correct it as well.

Read More

All cpanel accounts showing one database by default

Sometimes, when you login to a cpanel account, you will see that the mysql database section lists one database even if no databases are created. To correct it, got to

“Postgres Config” => and “Install Config” in WHM

If postgresql is installed but not configured via WHM, all users can show up as having one postgresql database.

Read More

OS Template not found in rebuild list

Sometimes, in hypervm, when you click on rebuild option, all available OS templates may not be listed. Here is what you can do to correct it.

1) Login to hypervm

2) Search the VPS and enter into its controlpanel

3) Click on OSTemplate list

It will list all available templates and you can select the required one and move it to the box right to it. After that when you click on rebuild option, that template will be listed there.

Read More

Warning : Your editing session has expired. This is usually caused by a long period of inactivity. Please re-load the page.

Sometimes, when you click on a hyperlink or insert image icon in cpanel file manager, you get the following error.


Warning: session_start() [function.session-start]: open(/tmp/sess_ff452ccb8539e80490338f0ab3712f44, O_RDWR) failed: Permission denied (13) in /usr/local/cpanel/base/3rdparty/wysiwygPro/conf/customSessHandlers.inc.php on line 26
Your editing session has expired.
This is usually caused by a long period of inactivity. Please re-load the page.


Here are the possibles solutions to it.

1) Confirm that session.save_path is set as /tmp in /usr/local/lib/php.ini

2) /tmp has correct permission and is writable

3) session.gc_maxlifetime is set as 14400

4) session.bug_compat_42 is turned off

5) If none of the above works, try the following.

touch /...

Read More

Switch Account Option Disappears

Sometimes, when you login to an account’s cpanel as reseller, there should be a drop down box to switch to the cpanel of various accounts under that reseller. If it is not present, you can check the following things.

In WHM -> Tweak Settings -> make sure the following option is not checked.

Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature.

Sometimes, the problem can be with only one or two domains. All accounts’ cpanel may be listing the drop down, but when you enter into one the drop down just vanishes.

In that case, it could be a problem with the account password. Try resetting the password of that account and see if that solves the problem.

Read More