Installing/Configuring
PHP Manual

Installation

This ZEND extension uses default instaltion method via phpize. All you need to do is download the source code and compile it using:

#phpize
#./configure --enable-libvirt
#make clean all
This will create modules/libvirt.so which you can copy to your modules directory or use
#make install
Now you need to enable the extension in your php.ini:
extension=libvirt.so


Installing/Configuring
PHP Manual