On Wed, Nov 16, 2011 at 1:48 AM, Michal Novotny <minovotn@redhat.com> wrote:
On 11/15/2011 06:29 PM, vmnode guy wrote:
>
>
> On Wed, Nov 16, 2011 at 12:02 AM, Michal Novotny <minovotn@redhat.com
> <mailto:minovotn@redhat.com>> wrote:
>
>     On 11/15/2011 04:59 PM, vmnode guy wrote:
>     > Tue, Nov 15, 2011 at 11:20 PM, Michal Novotny
>     <minovotn@redhat.com <mailto:minovotn@redhat.com>
>     > <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> wrote:
>     > > On 11/15/2011 04:17 PM, vmnode guy wrote:
>     > >> On Tue, Nov 15, 2011 at 4:19 PM, Michal Novotny
>     > <minovotn@redhat.com <mailto:minovotn@redhat.com>
>     <mailto:minovotn@redhat.com <mailto:minovotn@redhat.com>>> wrote:
>     > >>> On 11/14/2011 08:05 PM, vmnode guy wrote:
>     > >>>> Hi Michal Novotny,
>     > >>>>
>     > >>>> Thanks for your reply,
>     > >>>>
>     > >>>> i have try this and still problem:
>     > >>>>
>     > >>>>> http://your_server_ip_or_hostname/php-virt-control
>     > >>>> and it say error 404
>     > >>>> Object not found!
>     > >>>>
>     > >>>> Any idea how i can troubleshooting it ?
>     > >>> Hi Peter
>     > >>> what 'your_server_ip_or_hostname' are you using? Localhost, i.e.
>     > >>> 127.0.0.1 ? The address should be
>     http://127.0.0.1/php-virt-control
>     > >>> then. Of course, right after php-virt-control installation
>     you have to
>     > >>> reload/restart your Apache instance.
>     > >>>
>     > >>> I double-checked it now and are you having a file
>     > >>> /etc/httpd/conf.d/php-virt-control.conf available? It should be
>     > >>> according to the source codes. If you look to this file, there's
>     > rule to
>     > >>> allow only localhost address but you can edit it to allow
>     any other if
>     > >>> you want to.
>     > >>>
>     > >>> Hope this helps!
>     > >>> Michal
>     > >>>
>     > >>> --
>     > >>> 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>
>     > >>>
>     > >>>
>     > >> Hi Michal,
>     > >>
>     > >> Thanks for your quick reply. i think i know what it doesn't
>     work off
>     > >> the shell. I am running this on sles10sp3 and the apache
>     directory is
>     > >> located at /etc/apache2/conf.d/ however, after ./configure &&
>     make &&
>     > >> make install  i realize that it doesn't create any config file at
>     > >> /etc/apache2/conf.d/
>     > >>
>     > >> do you have any guide how can i install this on suse linux
>     > enterprise server ?
>     > >>
>     > >> Regards,
>     > >> Peter Cheng
>     > > Well, I never tried this on SUSE so please find the config
>     files for
>     > > Apache and then copy & paste the information from the conf
>     file to the
>     > > httpd.conf of your apache. I can't help more since I don't
>     know any
>     > > information about Apache version you're using nor I have
>     access to any
>     > > SLES machine.
>     > >
>     > > Hope this helps a little,
>     > > Michal
>     > >
>     > > --
>     > > 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>
>     > >
>     > >
>     >
>     > Hi Michal,
>     >
>     > I manage to found one CentOS  5.6 and still the same, below are the
>     > output:-
>     >
>     > [root@fw php-virt-control-0.0.2]# *pwd*
>     > /root/php-virt-control-0.0.2
>     > [root@fw php-virt-control-0.0.2]# *./configure && make && make
>     install*
>     > checking for a BSD-compatible install... /usr/bin/install -c
>     > checking whether build environment is sane... yes
>     > checking for a thread-safe mkdir -p... /bin/mkdir -p
>     > checking for gawk... gawk
>     > checking whether make sets $(MAKE)... yes
>     > configure: creating ./config.status
>     > config.status: creating Makefile
>     > config.status: creating tools/Makefile
>     > Making all in tools
>     > make[1]: Entering directory `/root/php-virt-control-0.0.2/tools'
>     > cc -o apache-key-copy apache-key-copy.c
>     > make[1]: Leaving directory `/root/php-virt-control-0.0.2/tools'
>     > make[1]: Entering directory `/root/php-virt-control-0.0.2'
>     > make[1]: Nothing to be done for `all-am'.
>     > make[1]: Leaving directory `/root/php-virt-control-0.0.2'
>     > Making install in tools
>     > make[1]: Entering directory `/root/php-virt-control-0.0.2/tools'
>     > cc -o apache-key-copy apache-key-copy.c
>     > make[2]: Entering directory `/root/php-virt-control-0.0.2/tools'
>     > make[2]: Nothing to be done for `install-exec-am'.
>     > make[2]: Nothing to be done for `install-data-am'.
>     > make[2]: Leaving directory `/root/php-virt-control-0.0.2/tools'
>     > make[1]: Leaving directory `/root/php-virt-control-0.0.2/tools'
>     > make[1]: Entering directory `/root/php-virt-control-0.0.2'
>     > make[2]: Entering directory `/root/php-virt-control-0.0.2'
>     > make[2]: Nothing to be done for `install-exec-am'.
>     > make[2]: Nothing to be done for `install-data-am'.
>     > make[2]: Leaving directory `/root/php-virt-control-0.0.2'
>     > make[1]: Leaving directory `/root/php-virt-control-0.0.2'
>     > [root@fw php-virt-control-0.0.2]#*ls -l /etc/httpd/conf.d/*
>     > total 88
>     > -rw-r--r-- 1 root root  295 Feb  1  2011 manual.conf
>     > -rw-r--r-- 1 root root 1796 Apr 22  2005 perl.conf
>     > -rw-r--r-- 1 root root  771 Nov 30  2010 php.conf
>     > -rw-r--r-- 1 root root  566 Feb  1  2011 proxy_ajp.conf
>     > -rw-r--r-- 1 root root 1671 Jan  7  2007 python.conf
>     > -rw-r--r-- 1 root root  392 Feb  1  2011 README
>     > -rw-r--r-- 1 root root  332 Mar 31  2010 squid.conf
>     > -rw-r--r-- 1 root root 9677 Feb  1  2011 ssl.conf
>     > -rw-r--r-- 1 root root  352 Jan  9  2007 webalizer.conf
>     > -rw-r--r-- 1 root root  299 Feb  1  2011 welcome.conf
>     > [root@fw php-virt-control-0.0.2]#
>     >
>     > Any idea What's wrong ?
>     >
>     > Regards,
>     > Peter
>     Oh, you're using make && make install without no further manual
>     setting?
>     That's the issue. Please create the RPM using the autobuild script and
>     install the RPM. This step is done by the RPM itself, not the `make
>     install` step. You can use either autobuild.sh or
>     autobuild-official.sh
>     from the git tree to generate the RPM packages. It's up to you
>     which one
>     will you use.
>
>     Please let me know if you have any issues with this,
>     Michal
>
>     --
>     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>
>
>
> Alright, i manage to build the rpm package with rpmbuild
> -ba php-virt-control.spec and install the
> php-virt-control-0.0.2-3.i386.rpm package
>
> After restart the apache services, we still facing the following error..
>
> [Wed Nov 16 00:28:27 2011] [error] [client 10.0.0.201] PHP Parse
> error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
> /usr/share/php-virt-control/classes/database-mysql.php on line 88
>
> After a while i found that
> in /usr/share/php-virt-control/classes/database-mysql.php  on line 87
> there was a bug.
>
> *webserver:/usr/share/php-virt-control/classes #
>  diff database-mysql.php-old database-mysql.php*
> 87c87
> <                                       'type tinyint(4) NOT NULL,.'
> ---
> >                                       'type tinyint(4) NOT NULL,'.
> webserver:~/php-virt-control-0.0.2 #
>
> Above fixed the problem.
>
> Thanks a lot for your help Michal Novotny, it has been a great help!
> i can continue to explore now..
>
> Regards,
> Peter Cheng

Thanks for the catch! You can send a patch to this list using git or
something similar next time :-) Now I've applied it to the git tree
putting you as an author. Please see:
http://php-virt-control.org/git/?p=php-virt-control.git;a=commit;h=cd4f4ab47575c15c5c0dece43b70664fd00acb51
.

Thanks a lot!
Michal

--
Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org


Thank to you too.. i didn't do that becase i never use git before.. 

Regards,
Peter