Archive for the tag 'VPS'

Optimizing Parallels Plesk Panel in VPS

This makes the Panel use less memory than other control panels available on the market, which ensures better utilization of hardware resources and increased density of virtual environments per server.

If you deploy Parallels Plesk Panel in Parallels Virtuozzo Containers for Linux, consider switching the Panel to a special mode of operation - optimized for virtual environments.

The mode switches off InnoDB engine in MySQL database server, and Apache web server modules that are not critical for hosting services.

The only disadvantages of using the optimized mode are as follows:

* Web applications requiring InnoDB will not work.
* Perl, python and ASP scripts will not work because the required Apache modules will be switched off.
* PHP will be available only through CGI.

Note: It is not applicable to the Panel installations upgraded from earlier versions.

Reference: http://parallels.com/

SBDavid

Turning the VPS-Optimized Mode on

Turning the VPS-Optimized Mode on

If you deploy Parallels Plesk Panel into VPSes other than Virtuozzo-based (Parallels Virtuozzo Containers or OpenVZ containers), consider switching the Panel to a special mode of operation - optimized for virtual environments. The mode switches off modules that are not critical for hosting services. This makes the Panel use less memory than other control panels available on the market, which ensures better utilization of hardware resources and increased density of virtual environments per server.

* During the installation, the Panel requires more RAM than it utilizes in the VPS-optimized mode.
* Since Parallels Premium Antivirus and Spamassassin are memory-consuming applications, it is not recommended to install them if you require a high VPS density.
* It is not possible to turn the VPS-optimized mode on if Customer and Business Manager is installed.

Important: The VPS-optimized mode can be turned on only before the Panel initialization (aka initial configuration).

To turn the VPS-optimized mode on, run the following command:

/usr/local/psa/bin/vps_optimized –turn-on

cPanel VPS Account Creation [an error occurred while processing this directive]

Problem to create a new account on cPanel VPS server.

Create a new Account
[an error occurred while processing this directive] Notification => root@server.net via EMAIL [level => 3]
Account Creation

We need to find out what Cpanel error logs shows

#tail -f /usr/local/cpanel/logs/error_log
edquota: Cannot set quota for user 543 from kernel on /dev/vzfs: No such process
edquota: Can’t write quota for 543 on /dev/vzfs: No such process

To resolve this: We need to raise the quotagidlimit from the resource tab on the hardware node.

SBDavid

VPS and Shared Hosting

VPS and Shared Hosting

VPS gives you a lot more control than shared hosting, it’s basically the same as having your own dedicated server as you have full control of what goes on. It’s also a lot more brandable than shared hosting.

To manage a VPS, you can use a VPS panel like SolusVM or VePortal where you can manage the VPS - including IPs, root password, hostname, turning the VPS on and off, etc

SBDavid

Install VNC in VPS server with Gnome

Install VNC in VPS server with Gnome

VNC, or Virtual Networked Computing, is a way of controlling a remote server just as though you are sitting in front of it. Like RDP remote desktop connection in Windows we have VNC for Linux. You can connect using a VNC client to a remote server system running the VNC server, then an image of the remote desktop is transmitted to your local computer and you can see and control the desktop.

Usually Linux servers are not installed with graphical interface(only text mode). However, for VNC to gain access of the user friendly interface like windows, Gnome or KDE have to be installed.

Note : Please make sure you have at least 128MB of unused ram to allocate for VNC. Also, YUM and its required libraries are installed (python, sqlite, etc) on the server.

Installation :

1. Login as root to your server and run the following:

yum -y groupinstall gnome (”yum -y groupinstall kde” for KDE )
yum -y install vnc vnc-server firefox x11-xorg

This will install Gnome and neccesary applications (VNC, FireFox, X11 libraries, etc) in the server.

2. Start up the vnc server with the ‘vncserver’ command and it will prompt you to enter a desired password. Just type what you want to use in and then confirm it. (if running as root, it will be in /.vnc or /root/.vnc or /home/root/.vnc)

3. Now, you’ll see VNC server is running by executing:

ps -ef |grep vncserver

Now kill the VNC processes,

pkill -9 vnc
rm -rf /tmp/.X1*

4. Edit xstartup file

vi /root/.vnc/ xstartup

Replace the last line(usually ‘twm & ‘ ) with ‘gnome-session & ‘ (without quotes of course). you can use ’startkde &’ for KDE

This tells VNC to startup GNOME instead of the default window manager, twm (or whatever the last line was).

5. Create users to VNCServer as follows,

Edit the lines below in the file /etc/sysconfig/vncservers and add a user (user should be a valid user created on your server and not just simply a name).

VNCSERVERS=”1:root”
VNCSERVERS=”2:newuser”

You can change the password of the VNCServer as :

vncpasswd homedir/.vnc/passwd

If you want to change the password for the VNC user root, run the following
command from konsole,

vncpasswd /root/.vnc/passwd

6. Go ahead and execute the command ‘vncserver’ again, and VNC will startup, using the password specified earlier and create a default VNC instance on VNC port 1.

7. Start up your RealVNC client on your PC, and put in :1, and it should ask for your password that you put in earlier.