Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution.

Microsoft Windows is a series of graphical interface operating systems developed, marketed, and sold by Microsoft.

OpenVZ (Open Virtuozzo) is an operating system-level virtualization technology based on the Linux kernel and operating system.

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site.

Tuesday 25 November 2014

Install Python for a user

Posted by Sarath On Tuesday, November 25, 2014 No comments
Log into server as user via SSH :

Download Python package of required version from : http://www.python.org/getit/releases/

Say, version required is 2.6.6

Code: 
# wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
Code: 
# tar -xvf Python-2.6.6.tgz
Code: 
# cd Python-2.6.6

Configure and Install Python for user :
Code: 
#./configure --prefix=/home/user_name/Python-2.6.6
Code: 
# make
Code: 
# make install

Python Binary for the user will be : /home/user_name/Python-2.6.6/bin/python and to check version :
Code: 
# /home/user_name/Python-2.6.6/bin/python --version

That's All..!! 

Monday 9 September 2013

Extend Xen Disk Space

Posted by Sarath On Monday, September 09, 2013 1 comment
Xen VMs use lvms and extending disk space from SolusVM control panel may not work properly. So, we will need to extend the lvm manually.
Shutdown VM from SolusVM control panel or use the following command on node :
# xm shutdown vm_ID 
(Replace vm_id with the xen ID of the VPS)
Extend LVM :
# lvextend /dev/Xen/vm_ID_img -L +50G 
(This will increase the main disk size for vm by 50G)
Checking File System for errors :
# e2fsck -f /dev/vg0/vm_ID_img 
Resize File System :
# resize2fs /dev/vg0/vm1_ID_img 
(This will increase the disk's filesystem to the maximum new amount)
Boot up the VM:
# xm create vm_ID /home/xen/vm_ID/vm_ID.cfg 

Done..!! Now check the VPS Disk Space using df command.

phpinfo() has been disabled

Posted by Sarath On Monday, September 09, 2013 No comments
If you get the message while browsing php info page, it means that phpinfo function is disabled. To resolve this you will have to :

Remove phpinfo from disable_functions in php.ini

To locate php.ini file, use command :
# php --ini
Check the line Loaded Configuration File: for php.ini location. Remove phpinfo  from disable_functions in php.ini and save it.

Now check the phpinfo page..!!  8)