How to install php-mcrypt on CentOs 6.3

You need EPEL repo to install php-mcrypt:


yum -y install http://mirror.us.leaseweb.net/epel/6/x86_64/epel-release-6-7.noarch.rpm
yum -y install php-mcrypt

Here is the code for installing EPEL repository on CentOS 6.4:

rpm -Uvh http://fedora.mirrors.pair.com/epel/6/x86_64/epel-release-6-8.noarch.rpm

Tags:

How to install APC on CentOS 6.2

Various instructions in Internet on the subject did not give any joy, so compiling my own sequence, which did the trick:

yum install php-pear php-devel httpd-devel gcc pcre-devel apc
nano /etc/php.d/apc.ini

Put the following in apc.ini:


; Enable apc extension module
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=256
apc.stat=0

Then copy apc.php to public_html directory of your website:

How do you increase a KVM guest's disk space?

How do you go about increasing KVM virtual machine guest's disk space from the command line if you initially set insufficient amount of disk space?

  1. Shutdown the VM
  2. Move the current image

    mv mykvm.img mykvm.img.bak
  3. Create a new image

    qemu-img create -f raw addon.raw 30G
  4. concatenate the 2 images

    cat mykvm.img.bak addon.raw >> mykvm.img
  5. start the VM (using the newly created mykvm.img)
  6. run fdisk inside VM and delete & re-create LVM partition
    % fdisk /dev/vda
    ...

Partition X does not end on cylinder boundary

While reviewing the partion layout on one of my hard drives, I noticed a number of “Partition X does not end on cylinder boundary” messages in the fdisk output:

$ fdisk /dev/sda
Command (m for help): p

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xac42ac42

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.

Tags:

Virt-manager keymap problem on OS X

virt-manager keymaps on OS X
Published on Wed, 17 Nov 2010 20:12:26 +0000 in Uncategorized. 13 Comments

Tags:

How to completely remove APF from Ubuntu

Running 'apt-get remove --purge apf-firewall' often times is not enough, especially if you tried to modify APF's files and paths. So to completely clean up your Ubuntu system form APF (Advanced Policy Firewall) your also need to run the following commands:

root@host:/etc/apt# rm -rf /var/lib/dpkg/info/apf*
root@host:/etc/apt# rm -rf /usr/src/apf*
root@host:/etc/apt# rm -rf /usr/share/man/man1/apf*
root@host:/etc/apt# rm -rf /usr/share/doc/apf*
root@host:/etc/apt# rm -rf /usr/local/sbin/apf
root@host:/etc/apt# rm -rf /usr/sbin/apf
root@host:/etc/apt# rm -rf /etc/rc0.d/K20apf*

How to install XHProf profiler on Ubuntu

XHProf profiler is developed by Facebook and open sourced in March 2009 under the Apache 2.0 license. XHProf is a function-level hierarchical profiler, with a PHP extension (written in C) to collect the raw data, and a few PHP scripts for the reporting/UI layer.

The easiest way to get it is via the PEAR installer (package home):

install php5-common
pear channel-update pear.php.net
pecl install xhprof

Once you have XHProf installed, you should enable it. Open your /etc/php5/conf.d/xhprof.ini and add

[xhprof]
extension=xhprof.so

Tags:

Web based virtualization management applications

openQRM is the next generation, open-source Data-center management platform. Its fully pluggable architecture focuses on automatic, rapid- and appliance-based deployment, monitoring, high-availability, cloud computing and especially on supporting and conforming multiple virtualization technologies. openQRM is a single-management console for the complete IT-infra structure and provides a well defined API which can be used to integrate third-party tools as additional plugins.

http://www.openqrm.com

Tags:

How to create and clone a KVM virtual machine on Ubuntu Server

After having KVM installed in your system, you can easily create a guest virtual machine by running the following command: vmbuilder kvm ubuntu --suite lucid --flavour virtual --iso /opt/iso-images/ubuntu1004.iso --dest=/home/destination --arch amd64 --libvirt qemu:///system --hostname ubuntu --bridge br0 --ip xxx.xxx.xxx.xxx --mask 255.255.255.248 --gw xxx.xxx.xxx.xxx --user ubuntu --name Ubuntu --pass ubuntu --rootsize 110000 --swapsize 1824 --mem 1824 --addpkg acpid --addpkg rsync --addpkg openssh-server --addpkg nano

After having your guest virtual machine up and running you might want to utilize one of the things that's very useful when using virtual machines - the ability to clone them.

Power up Drupal search with Jetty & Apache Solr in Ubuntu 10.04

If you are running a big site with loads of visitors or just running a normal site with very minimal resources your basic Drupal search functionality might slow down your site significantly. And it's not even very efficient solution to search all the contents of your site. Don't worry, the help is here. Apache Solr helps you with your site's search functionality and makes it blazingly fast! In this first part of Apache Solr walk through we are going to install and configure Apache Solr + Jetty with Drupal.

Pages

Subscribe to Front page feed