Hi Umar,
you have to clone it from git repository and compile it and install. You
can simply do it by:
git clone git://libvirt.org/libvirt-php.git
./autogen.sh
make
sudo make install
And then you have to restart your Apache webserver.
For example how to use it, see the test in
test-domain-create-get-metadata.phpt file (it's normal PHP script,
however I use phpt extension as PHP test but it's standard PHP code).
Michal
On 12/18/2013 03:45 PM, Umar Draz wrote:
> Hi Michal,
>
> Thanks, Now what I need here? I already have> <http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0>
> installed libvirt-php-0.4.8, do I need to copy
>
> libvirt-php.c
> libvirt-php.
> <http://libvirt.org/git/?p=libvirt-php.git;a=blob;f=src/libvirt-php.c;h=7a2a3c0651e882abf538473ff013cb68e499be43;hb=e3e783413d8f001ee0a266edbac949c78616fde0>h
> in the src directory and reconfigure the php-libvirt?
>
> Br.
>
> Umar
>
>
> On Wed, Dec 18, 2013 at 7:31 PM, Michal Novotny <minovotn@redhat.com
> <mailto:minovotn@redhat.com>> wrote:
>
> Hi Umar,
> please see commit
> http://libvirt.org/git/?p=libvirt-php.git;a=commit;h=e3e783413d8f001ee0a266edbac949c78616fde0
> .
>
> The functions mentioned below have been implemented.
>
> Michal
>
> On 12/18/2013 01:29 PM, Umar Draz wrote:
> > Hi Michal,
> >
> > Thanks for your efforts and help. If I need any other API I will
> > definitely ask you.
> >
> > Br.
> >
> > Umar
> >
> >
> > On Wed, Dec 18, 2013 at 5:19 PM, Michal Novotny
> <minovotn@redhat.com <mailto:minovotn@redhat.com>
> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>>>,> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> wrote:
> >
> > Hi Umar,
> > that's fine. Give one or two days for this please. Maybe I'll
> > implement
> > earlier but I'm a bit overloaded after my PTO so I can't promise
> > it will
> > be earlier.
> >
> > Also, what APIs would you like to implement?
> >
> > I'm thinking of implementing these two:
> >
> >
> http://libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata
> >
> http://libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata
> >
> > Would you like any other APIs?
> >
> > Thanks,
> > Michal
> >
> > On 12/18/2013 01:15 PM, Umar Draz wrote:
> > > HI Michal,
> > >
> > > Ok , I will wait. I hope you will get sometime to do this.
> > >
> > > Br.
> > >
> > > Umar
> > >
> > >
> > > On Wed, Dec 18, 2013 at 5:06 PM, Michal Novotny
> > <minovotn@redhat.com <mailto:minovotn@redhat.com>
> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>
> > > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>
> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>>> wrote:
> > >
> > > Hi Michal and Umar,
> > > it's correct I can't invoke this APIs via PHP yet. Please
> > note that
> > > libvirt-php is not automatically generated when doing
> libvirt
> > > build and
> > > it's a separate project. It's rather easy to implement
> it to the
> > > libvirt-php so if you want to implement it, feel free to
> > implement
> > > or if
> > > you can wait a day or two until I have some time I can
> implement
> > > it (the
> > > project is not officially supported and it's done in
> the spare
> > > time mainly).
> > >
> > > I'd just like to ask you whether there are some more
> APIs you'd
> > > like me
> > > to implement when I'll be implementing it. Are there any
> > other APIs
> > > you'd like?
> > >
> > > Thanks,
> > > Michal
> > >
> > > On 12/18/2013 12:59 PM, Michal Privoznik wrote:
> > > > On 18.12.2013 12:27, Umar Draz wrote:
> > > >> Hi Peter,
> > > >>
> > > >> Thanks for the response, Would you please help how
> I can
> > > >> use *virDomainSetMetadata* with PHP or any url for
> help?
> > > >>
> > > >> Br.
> > > >>
> > > >> Umar
> > > > [CC'ing Michal Novotny - the libvirt-php maintainer]
> > > >
> > > > I don't think you can invoke those APIs via PHP. But
> I expect
> > > them to be
> > > > able to add easily. Michal?
> > > >
> > > > Michal
> > >
> > > --
> > > Michal Novotny <minovotn@redhat.com
> <mailto:minovotn@redhat.com>
> > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>
> <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>
> > > RHCE, Red Hat
> > > Virtualization | libvirt-php bindings |
> php-virt-control.org <http://php-virt-control.org>
> > <http://php-virt-control.org>
> > > <http://php-virt-control.org>
> > >
> > >
> > >
> > >
> > > --
> > > Umar Draz
> > > Network Architect
> >
> > --
> > Michal Novotny <minovotn@redhat.com
> <mailto:minovotn@redhat.com> <mailto:minovotn@redhat.com
> <mailto:minovotn@redhat.com>>>,
> > RHCE, Red Hat
> > Virtualization | libvirt-php bindings | php-virt-control.org
> <http://php-virt-control.org>
> > <http://php-virt-control.org>
> >
> >
> >
> >
> > --
> > Umar Draz
> > Network Architect
>
> --
> Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com>>,
> RHCE, Red Hat
> Virtualization | libvirt-php bindings | php-virt-control.org
> <http://php-virt-control.org>
>
>
>
>
> --
> Umar Draz
> Network Architect
--
Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org