A few OpenVZ commands

Posted by Clayton | Posted in Linux, SSH, Tutorial, vps | Posted on 02-28-2010

0

Below are the commonly used OpenVZ commands, which are run from the main node.

Shows list of all the VPS’s hosted on the Node.

vzlist -a

To start the VPS

vzctl start VEID

To stop (Shut Down) the VPS

vzctl stop VEID

To view the status of the particular VPS

vzctl status VEID

To stop the VPS quickly and forcefully

vzctl stop VEID –fast

To enter in a particular VPS

vzctl enter VEID

To set the Hostname of a VPS

vzctl set VEID –hostname vps.domain.com –save

To add a new IP to the hosting VPS

vzctl set VEID –ipadd 1.2.3.4 –save

To delete the IP from VPS

vzctl set VEID –ipdel 1.2.3.4 –save

To reset root password of a VPS

vzctl set VEID –userpasswd root:new_password –save

To add the nameserver IP’s to the VPS

vzctl set VEID –nameserver 1.2.3.4 –save

To run any command on a VPS from Node

vzctl exec VEID command

To install any package/Software on a VPS from Node

vzyum VEID install package_name 

**VEID refers to the ID of the Particular VPS**

cPanel 11.25.0 Stable released

Posted by Clayton | Posted in Uncategorized | Posted on 02-18-2010

0

Taken from cPanel’s news bulletin.

As you know, 11.25 has added a host of new features and functionality to cPanel & WHM. Tonight, 11.25 makes it to our STABLE builds. We will have additional technical staff on hand for the next few days to ensure the transition goes as smoothly as possible.

As always, should you need anything, the entire cPanel staff is here to help!

There have been some enhancements to the methods that cPanel uses to process log files that may result in undesired behavior with some system configurations.

Graceful Restarts:

If you are experiencing a high volume of graceful restarts in Apache due to log file rotation you may want to enable the Piped Log feature as follows:

* You must have root access to enable this feature.

* You must be running Apache 2.0 or later to enable this feature (not supported for Apache 1.x)

* Only available on 11.25.0 and later.

1. Login to WHM

2. Click /Service Configuration/

3. Click /Apache Configuration/

4. Click /Piped Log Configuration/

5. Check the box labeled /Enable piped Apache logs/

6. Click the Save button

This will cause your Apache configuration file to be rebuilt and Apache to be restarted.

More complete information about Piped Log can be viewed here:

http://forums.cpanel.net/f5/cpanel-11-25-log-processing-145417.html

An additional requirement for our enhanced log file processing is a larger disk space requirement inside of the /var partition. Upon upgrading to 11.25.0 if cPanel detects that your /var partition is too small it will disable bandwidth stats processing until the space requirement is remedied. If there is inadequate space in /var, notification is set to the level 1 notification targets as specified in WHM’s Contact Manager.

To re-enable:

1. Symlink /var/cpanel/bandwidth to a partition with sufficient space

2. Remove the file /etc/rrdtooldisable

3. Re-run upcp

Customers who need assistance with the update may contact cPanel support for assistance via

https://tickets.cpanel.net/submit/index.cgi?step=2&reqtype=tickets&product=cpwhm

/var/log/omgitsanupdate

Posted by Clayton | Posted in TLN.com | Posted on 02-08-2010

0

No…that’s not really a log file…yes I did update the site. As you may notice there is now a /var/ link in the navigation, which lists files and folders in this directory along with some descriptions. More files and explanations will come with future updates :)

Long hiatus…

Posted by Clayton | Posted in TLN.com | Posted on 01-26-2010

1

I apologize to all of my readers, as I’ve realized that I slacked off quite a bit on keeping this blog updated…well that’s going to change. As you can see the ugly dark design is gone, and has been replaced with a cleaner design. I’m also in the process of updating the ‘About’ and ‘cPanel Introduction’ pages, both of which need work especially the cPanel page, since it’s a complete mess and a pain to navigate. Be sure to check back for these changes in the next few days!

Session.save_path error

Posted by Clayton | Posted in Linux, Php.ini, SSH, Tutorial | Posted on 12-01-2009

0

So…I came across this error on a clients site which he was receiving when trying to install a 3rd party script.

The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.

It’s a pretty simple fix in the servers php.ini.

Install fantastico on cPanel

Posted by Clayton | Posted in Linux, SSH, Tutorial | Posted on 11-29-2009

7

A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from Netenburg.

One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may break, but we will discuss the fix to that later on.

Exim Error: Ratelimit database not available

Posted by Clayton | Posted in Linux, Mail Issues, SSH, Tutorial | Posted on 11-18-2009

3

2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out
2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available

To fix such an error , the exim cache database on the server side needs to be clear off to stop this message.

Creating an extracting tar files

Posted by Clayton | Posted in Linux, SSH, Tutorial | Posted on 11-07-2009

3

The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. Tar.gz is a compressed tar file.

How to create a compressed tar.gz file from a folder or file in Linux?

In order to create a compressed tar.gz archive from a folder/file we need to run the following tar command:

tar -czf new-tar-file-name.tar.gz file-or-folder-to-archive

Here is the command explanation:

  • tar – the tar command.
  • c – create new archive.
  • z – compress the archive using gzip.
  • f – use archive file.
  • new-tar-file-name.tar.gz – the name of the tar.gz to create.
  • file-or-folder-to-archive – the name of the folder we want to archive.

cPanel Icon Missing From WHM List Accounts

Posted by Clayton | Posted in Tutorial | Posted on 11-03-2009

1

I came across an issue for the first time where the cPanel icon was missing in the list accounts section. After digging around WHM, I found where the function was disabled.

  • Log into WHM
  • Select “Tweak Settings”
  • Uncheck the box next to “Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature”
  • Click save

After hitting save, you can go back to the list account section and the cPanel icon will be back.

pty, ptyp, and tty errors

Posted by Clayton | Posted in Linux, SSH, Tutorial | Posted on 11-02-2009

0

So I came across this error for the first time today when trying to SSH directly into a clients VPS.

login as: root
root@server’s password:
Server refused to allocate pty
stdin: is not a tty

After a quick google search I came across the fix.

[root@node /]# vzlist -a
VEID      NPROC STATUS  IP_ADDR         HOSTNAME
1337         78 running 69.10.59.80     grumpy.thelinuxnoob.com
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV ptyp
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV tty
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV pty

The issue should now be resolved and you can SSH into the VPS.