<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hello HetZ,<div><br></div><div>I try the put in the example and try run, but it's don't seem to be works.</div>
<div><br></div><div>Do you have the same problem, do you know how should i proceed ?</div><div><br></div><div><div>root@cn1:/var/www# cat info.php </div><div><?php</div><div><br></div><div>     print_r ( libvirt_version() );</div>
<div><br></div><div>        $conn = libvirt_connect('null', false);</div><div>//      $conn = libvirt_connect('qemu+ssh://<a href="http://root@10.0.0.122/system" target="_blank" style="color: rgb(0, 0, 204); ">root@10.0.0.122/system</a>', false);</div>
<div>        echo $conn;</div><div>        $doms = libvirt_list_domains($conn);</div><div>        print_r($doms);</div><div><br></div><div>?></div><div>root@cn1:/var/www# </div><div><br></div><div>It doesn't show any output..</div>
<div><br></div><div>I also put this example into a file log.php and run it.</div><div> </div><div><div><?php</div><div>    $logfile = 'test.log';</div><div><br></div><div>    unlink($logfile);</div><div>    if (!libvirt_logfile_set($logfile))</div>
<div>         die('Cannot set the log file');</div><div><br></div><div>    $conn = libvirt_connect('null', false);</div><div>    unset($conn);</div><div><br></div><div>    $fp = fopen($logfile, 'r');</div>
<div>    $str = fread($fp, filesize($logfile));</div><div>    fclose($fp);</div><div><br></div><div>    echo $str;</div><div>?></div></div><div><br></div><div>It does generate a file and show error.. </div><div><div>[Wed Oct 26 23:17:07 2011] [error] [client 10.0.0.201] PHP Warning:  libvirt_connect(): Failed to connect socket to '@/var/www/.libvirt/libvirt-sock': Connection refused in /var/www/log.php on line 8</div>
<div>[2011-10-26 23:17:07 libvirt-php/core]: libvirt_connect: Cannot establish connection to (null)</div></div><div><br></div><div><br></div><div>My /var/www directory is like below:-</div><div><div>root@cloudnode1:/var/www# ls -laR</div>
<div>.:</div><div>total 36</div><div>drwxr-xr-x  4 www-data www-data 4096 2011-10-26 23:20 .</div><div>drwxr-xr-x 15 root     root     4096 2011-10-26 22:40 ..</div><div>-rw-r--r--  1 www-data www-data  177 2011-10-26 22:40 index.html</div>
<div>-rw-r--r--  1 www-data www-data  229 2011-10-26 23:16 info.php</div><div>drwxr-xr-x  2 root     root     4096 2011-10-26 23:15 .libvirt</div><div>-rw-r--r--  1 www-data www-data  313 2011-10-26 22:59 log.php</div><div>
drwx------  2 www-data www-data 4096 2011-10-26 23:12 .ssh</div><div>-rw-r--r--  1 www-data www-data 4619 2011-10-26 23:17 test.log</div><div><br></div><div>./.libvirt:</div><div>total 8</div><div>drwxr-xr-x 2 root     root     4096 2011-10-26 23:15 .</div>
<div>drwxr-xr-x 4 www-data www-data 4096 2011-10-26 23:20 ..</div><div>lrwxrwxrwx 1 www-data www-data   29 2011-10-26 23:02 .libvirt-sock -> /var/run/libvirt/libvirt-sock</div><div><br></div><div>./.ssh:</div><div>total 16</div>
<div>drwx------ 2 www-data www-data 4096 2011-10-26 23:12 .</div><div>drwxr-xr-x 4 www-data www-data 4096 2011-10-26 23:20 ..</div><div>-rw------- 1 www-data www-data 1675 2011-10-26 23:11 id_rsa</div><div>-rw-r--r-- 1 www-data www-data  401 2011-10-26 23:11 id_rsa.pub</div>
<div>root@cloudnode1:/var/www# </div></div><div><br></div><div><br></div><div>Regards,</div><div>Peter</div></div></span><br><div class="gmail_quote">On Wed, Oct 26, 2011 at 10:09 PM, vmnode guy <span dir="ltr"><<a href="mailto:vmnodeguy@gmail.com">vmnodeguy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks HetZ, it works now!<div><br></div><div>Regards,</div><div>Peter<div><div></div><div class="h5"><br><div><br><div class="gmail_quote">
On Tue, Oct 25, 2011 at 8:04 PM, חץ בן חמו <span dir="ltr"><<a href="mailto:hetz@benhamo.org" target="_blank">hetz@benhamo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="rtl"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">Depending on which linux distribution you use, you'll need to install the php development packages.</div>

<div dir="ltr">In Red Hat or Fedora it's php-devel while on ubuntu I think it's called php5-dev or something like that.</div>
<div dir="ltr"><br></div><div dir="ltr">Install and re-run ./configure</div><div dir="ltr"><br></div><div dir="ltr">Good luck,</div><div dir="ltr">Hetz<br><br></div><div class="gmail_quote" dir="ltr"><div>2011/10/25 vmnode guy <span dir="ltr"><<a href="mailto:vmnodeguy@gmail.com" target="_blank">vmnodeguy@gmail.com</a>></span></div>


<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex"><div><div></div>

<div>
<div><div>Hi guys,</div><div><br></div><div>I try to compile the libvirt-php but no luck, below are the output i got..</div><div><br></div><div>webserver:~/libvirt-php-0.4.3 # ./configure </div><div>checking for a BSD-compatible install... /usr/bin/install -c</div>



<div>checking whether build environment is sane... yes</div><div>checking for a thread-safe mkdir -p... /bin/mkdir -p</div>
<div>checking for gawk... gawk</div><div>checking whether make sets $(MAKE)... yes</div><div>checking for style of include used by make... GNU</div><div>checking for gcc... gcc</div><div>checking whether the C compiler works... yes</div>




<div>checking for C compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>checking whether we are cross compiling... no</div><div>checking for suffix of object files... o</div>




<div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div><div>checking dependency style of gcc... none</div>




<div>checking for virConnectOpen in -lvirt... yes</div><div>checking dependency style of gcc... (cached) none</div><div>checking whether to disable maintainer-specific portions of Makefiles... yes</div><div>checking for gcc... (cached) gcc</div>




<div>checking whether we are using the GNU C compiler... (cached) yes</div><div>checking whether gcc accepts -g... (cached) yes</div><div>checking for gcc option to accept ISO C89... (cached) none needed</div><div>checking dependency style of gcc... (cached) none</div>




<div>checking for a sed that does not truncate output... /usr/bin/sed</div><div>checking for gawk... (cached) gawk</div><div>checking for echo... echo</div><div>checking for rm... rm</div><div>checking for pkg-config... /usr/bin/pkg-config</div>




<div>checking pkg-config is at least version 0.9.0... yes</div><div>checking for LIBXML... yes</div><div>checking for xsltproc... /usr/bin/xsltproc</div><div>checking for xmllint... /usr/bin/xmllint</div><div>checking for xmlcatalog... /usr/bin/xmlcatalog</div>




<div>checking for php-config... no</div><div><b>configure: error: php-config not found; please install the PHP SDK</b></div><div>webserver:~/libvirt-php-0.4.3 # ls /etc/php5/</div><div>apache2/ cli/     conf.d/  </div><div>



webserver:~/libvirt-php-0.4.3 # ls /etc/php5/apache2/</div>
<div>php.ini</div><div>webserver:~/libvirt-php-0.4.3 # </div><div><br></div><div>Regards,</div><div>Peter </div>
</div><br></div></div>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><font color="#888888"><div dir="ltr"><br><br clear="all"></div>

<div dir="ltr"><br>
</div><div dir="ltr">-- <br></div><div dir="ltr"><div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px"><strong><span style="font-size:small"><span style="color:rgb(0, 0, 128)"><span style="color:rgb(0, 0, 0);font-weight:normal">חץ בן חמו</span><br>


ח</span><span style="color:rgb(0, 0, 255)">ץ</span>-<span style="color:rgb(0, 0, 128)">ב</span><span style="color:rgb(0, 0, 255)">י</span><span style="color:rgb(51, 102, 255)">ז</span> (<span style="color:rgb(128, 0, 0)">הוסטינג</span>)<br>


</span></strong><span style="font-size:small">השכרה ואירוח של שרתים פיזיים<br></span><span style="font-size:small">השכרת שרתים וירטואליים מקצועיים וגדולים במחירים <b>קטנים</b><br>בקרו באתרנו בכתובת <a href="http://www.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">hetz.biz</a> ובבלוג שלנו: <a href="http://blog.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">blog.hetz.biz</a> <br>


</span><span style="font-size:small">טלפוןן: 0783333113/4/5, אימייל: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> <br></span><span style="font-size:small">מסנג'ר: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> - סקייפ: heunique</span></span><br>


</div></div><div dir="ltr"><br></div>
</font></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br>