Friday, February 29, 2008

Installation PHP with MySQL support

Download PHP:
http://nz2.php.net/get/php-5.2.5.tar.gz/from/a/mirror

Before run

./configure --with-apxs2=/usr/sbin/apxs --with-mysql

to install PHP be sure that following packages are installed

yum install httpd-devel
yum install libxml2-devel
yum install mysql-devel

Tuesday, February 5, 2008

To increase a disk size for a VM

To increase a disk size for a VM:

  1. In XenCenter "Storage" tab add a space
  2. In the VM console create a physical volume: pvcreate /dev/xvdb
  3. Extend a Volume Group for the physical volume: vgextend VolGroup00 /dev/xvdb
  4. Extend a logical volume for the size of new disk: lvextend -L +39G /dev/VolGroup00/LogVol00
  5. Switch to single user mode: init 1
  6. Extend file system to the whole logical volume: resize2fs /dev/VolGroup00/LovVol00