3 reputation
15
bio website
location Pakistan
age 24
visits member for 1 year, 2 months
seen Jul 22 '12 at 18:59
stats profile views 20

Jun
29
comment How to Install libvirt-php?
Could you tell me how to create a new domain? From PHP API Reference guide: (libvirt.org/php/api-reference.html) I have seen these functions: (i) libvirt_image_create($conn, $name, $size, $format) (ii) libvirt_domain_new($conn, $name, $arch, $memMB, $maxmemMB, $vcpus, $iso_image, $disks, $networks, $flags) (iii) libvirt_domain_create($res) (iv) libvirt_domain_create_xml($conn, $xml) The problem I am facing is that i dont know the steps to create a new domain. Either I have to create a new image first using libvirt_image_create .... or something else.
Jun
29
comment How to Install libvirt-php?
Thank u so much. I have installed extensions.
Mar
26
comment How do I run Apache as root?
I have only read only access thats why I want to login as root to run these type of actions.
Mar
26
comment How do I run Apache as root?
I am working on xen virtualization.I am using LIBVIRT-PHP to talk with hypervisor to start create destroy etc etc. For this I used this php-script: <?php $conn=libvirt_connect("xen:///"); $name=libvirt_domain_lookup_by_id($conn,3); $dest=libvirt_domain_destroy($name); echo $dest; ?> When I execute this it shows me: Warning: libvirt_domain_destroy() [function.libvirt-domain-destroy]: operation virDomainDestroy forbidden for read only access in /opt/lampp/htdocs/xampp/shutdown.php on line 5
Mar
26
comment Destroy guest OS using php
Yes you are right. Lets come to the xampp server. When I execute echo whoami; in Terminal, output: root. This verifies that I am logged in as root user. But when I execute this php-script < ?php echo whoami; ?> output: nobody. So did u know how to login as root in apache web server? Or how to make user and assign admin/root privileges?
Mar
18
comment Un-install ubuntu server and grub menu
Oh! great.. Let me try thisss.. Thanks