I'm trying to install php-virt-control to my CentOS 6.3 server, but I cannot get passed this error:
"DB Error The connection to your database has failed. Data file is missing.t"
[cid:4B45E056-6CEA-414A-BAFE-3E9249EC16A8]
libvirt Libvirt support enabled Debug support enabled, default maximum log file size: 1024 KiB Extension version 0.4.6 Libvirt version 0.9.10 Max. connections 5 ISO Image path /var/lib/libvirt/images Path for images /var/lib/libvirt/images Features supported create-image
Array ( [libvirt.release] => 10 [libvirt.minor] => 9 [libvirt.major] => 0 [connector.version] => 0.4.6 [connector.major] => 0 [connector.minor] => 4 [connector.release] => 6 )
[root@ts-z600-1 html]# pwd /var/www/html [root@ts-z600-1 html]# ls -l total 188 -rw-r--r-- 1 root root 399 Dec 3 12:24 libvirt-list-domains.php -rwxrwxrwx 1 root root 339 Dec 3 11:48 libvirt-logfile-set.php -rwxrwxrwx 1 root root 43 Dec 3 10:19 libvirt-php-info.php -rwxrwxrwx 1 root root 3337 Oct 16 13:55 oracleCommand.php -rwxrwxrwx 1 root root 19 Oct 16 13:33 phpinfo.php lrwxrwxrwx 1 root root 22 Dec 3 13:09 php-virt-control -> php-virt-control-0.0.3 drwxrwxrwx 11 apache root 4096 Dec 3 13:34 php-virt-control-0.0.3 -rw-r--r-- 1 root root 133890 Dec 3 12:45 php-virt-control-0.0.3.tar.gz -rwxrwxrwx 1 root root 25958 Dec 3 15:55 test.log [root@ts-z600-1 html]# hostname -f ts-z600-1.na.tibco.com [root@ts-z600-1 html]# uname -a Linux ts-z600-1 2.6.32-279.14.1.el6.centos.plus.x86_64 #1 SMP Wed Nov 7 00:40:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux [root@ts-z600-1 html]#
sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php
<?php /* * Define type of storage type * Currently supported storages are mysql or file */ $type = 'mysql';
/* * Define configuration file for the storage * For 'file' type it is the data file to store data into * For 'mysql' type it is the name of the connection configuration file */ $config = 'mysql-connection.php'; ?>
sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php
<?php /* Name of the database server */ $server = 'localhost';
/* Username for database server */ $user = 'php-virt-control';
/* Password for $user */ $password = 'support';
/* Name of the database with the tables */ $dbname = 'php-virt-control';
/* Prefix of tables for php-virt-control */ $prefix = 'vmc_'; ?>
[root@ts-z600-1 html]# mysql -u php-virt-control -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 71 Server version: 5.1.66-log Source distribution
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | cloud | | cloud_usage | | cloudbridge | | mysql | | php-virt-control | +--------------------+ 6 rows in set (0.00 sec)
mysql> SELECT DATABASE(); +------------+ | DATABASE() | +------------+ | NULL | +------------+ 1 row in set (0.00 sec)
mysql> USE php-virt-control; Database changed mysql> SELECT DATABASE(); +------------------+ | DATABASE() | +------------------+ | php-virt-control | +------------------+ 1 row in set (0.00 sec)
mysql> SHOW TABLES; Empty set (0.00 sec)
mysql>
Please help!
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc. Office: (617) 702-1559 | Mobile: (781) 367-8015 Email: mailto:ascarcel@tibco.com Web: http://spotfire.tibco.com/support
[Description: Description: TIBCO-Spotfire-Logo]
Hi Adam, it seems to be path related.
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*
<?php /* * Define type of storage type * Currently supported storages are mysql or file */ $type = 'mysql'; /* * Define configuration file for the storage * For 'file' type it is the data file to store data into * For 'mysql' type it is the name of the connection configuration file */ $config = 'mysql-connection.php';
You should put absolute path there if the location is config/mysql-connection.php, by default the php-virt-control looks to /etc/php-virt-control for the file specified, i.e. it's trying to look for /etc/php-virt-control/mysql-connection.php in this case IMHO.
Hope this helps and if not, I'll try to reproduce the behavior to provide better help.
Thanks for using php-virt-control! Michal
?>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*
<?php /* Name of the database server */ $server = 'localhost'; /* Username for database server */ $user = 'php-virt-control'; /* Password for $user */ $password = 'support'; /* Name of the database with the tables */ $dbname = 'php-virt-control'; /* Prefix of tables for php-virt-control */ $prefix = 'vmc_'; ?> [root@ts-z600-1 html]# mysql -u php-virt-control -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 71 Server version: 5.1.66-log Source distribution Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | cloud | | cloud_usage | | cloudbridge | | mysql | | php-virt-control | +--------------------+ 6 rows in set (0.00 sec) mysql> SELECT DATABASE(); +------------+ | DATABASE() | +------------+ | NULL | +------------+ 1 row in set (0.00 sec) mysql> USE php-virt-control; Database changed mysql> SELECT DATABASE(); +------------------+ | DATABASE() | +------------------+ | php-virt-control | +------------------+ 1 row in set (0.00 sec) mysql> SHOW TABLES; Empty set (0.00 sec) mysql>
Please help!
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
Web: http://spotfire.tibco.com/support
Description: Description: TIBCO-Spotfire-Logo
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
I could not find a set of comprehensive installation instructions. Does such a document exist?
Best Regards,
Adam Scarcella 870 Haverhill Street, Unit 4C Rowley, MA 01969 H: (978) 432-1631 M: (781) 367-8015 On Dec 4, 2012 7:26 AM, "Michal Novotny" minovotn@redhat.com wrote:
Hi Adam, it seems to be path related.
*sftp://
ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*
<?php /* * Define type of storage type * Currently supported storages are mysql or file */ $type = 'mysql'; /* * Define configuration file for the storage * For 'file' type it is the data file to store data into * For 'mysql' type it is the name of the connection configuration
file
*/ $config = 'mysql-connection.php';
You should put absolute path there if the location is config/mysql-connection.php, by default the php-virt-control looks to /etc/php-virt-control for the file specified, i.e. it's trying to look for /etc/php-virt-control/mysql-connection.php in this case IMHO.
Hope this helps and if not, I'll try to reproduce the behavior to provide better help.
Thanks for using php-virt-control! Michal
?>
*sftp://
ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*
<?php /* Name of the database server */ $server = 'localhost'; /* Username for database server */ $user = 'php-virt-control'; /* Password for $user */ $password = 'support'; /* Name of the database with the tables */ $dbname = 'php-virt-control'; /* Prefix of tables for php-virt-control */ $prefix = 'vmc_'; ?> [root@ts-z600-1 html]# mysql -u php-virt-control -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 71 Server version: 5.1.66-log Source distribution Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | cloud | | cloud_usage | | cloudbridge | | mysql | | php-virt-control | +--------------------+ 6 rows in set (0.00 sec) mysql> SELECT DATABASE(); +------------+ | DATABASE() | +------------+ | NULL | +------------+ 1 row in set (0.00 sec) mysql> USE php-virt-control; Database changed mysql> SELECT DATABASE(); +------------------+ | DATABASE() | +------------------+ | php-virt-control | +------------------+ 1 row in set (0.00 sec) mysql> SHOW TABLES; Empty set (0.00 sec) mysql>
Please help!
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
Web: http://spotfire.tibco.com/support
Description: Description: TIBCO-Spotfire-Logo
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
-- Michal Novotny minovotn@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
Not yet as there was no time to do so but the simple RPM installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions. Does such a document exist?
Best Regards,
Adam Scarcella 870 Haverhill Street, Unit 4C Rowley, MA 01969 H: (978) 432-1631 M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com mailto:minovotn@redhat.com> wrote:
Hi Adam, it seems to be path related. > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*> > > <?php > /* > * Define type of storage type > * Currently supported storages are mysql or file > */ > $type = 'mysql'; > > /* > * Define configuration file for the storage > * For 'file' type it is the data file to store data into > * For 'mysql' type it is the name of the connection configuration file > */ > $config = 'mysql-connection.php'; > You should put absolute path there if the location is config/mysql-connection.php, by default the php-virt-control looks to /etc/php-virt-control for the file specified, i.e. it's trying to look for /etc/php-virt-control/mysql-connection.php in this case IMHO. Hope this helps and if not, I'll try to reproduce the behavior to provide better help. Thanks for using php-virt-control! Michal > ?> > > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*> > > <?php > /* Name of the database server */ > $server = 'localhost'; > > /* Username for database server */ > $user = 'php-virt-control'; > > /* Password for $user */ > $password = 'support'; > > /* Name of the database with the tables */ > $dbname = 'php-virt-control'; > > /* Prefix of tables for php-virt-control */ > $prefix = 'vmc_'; > ?> > > > > [root@ts-z600-1 html]# mysql -u php-virt-control -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 71 > Server version: 5.1.66-log Source distribution > > Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights > reserved. > > Oracle is a registered trademark of Oracle Corporation and/or its > affiliates. Other names may be trademarks of their respective > owners. > > Type 'help;' or '\h' for help. Type '\c' to clear the current > input statement. > > mysql> show databases; > +--------------------+ > | Database | > +--------------------+ > | information_schema | > | cloud | > | cloud_usage | > | cloudbridge | > | mysql | > | php-virt-control | > +--------------------+ > 6 rows in set (0.00 sec) > > mysql> SELECT DATABASE(); > +------------+ > | DATABASE() | > +------------+ > | NULL | > +------------+ > 1 row in set (0.00 sec) > > mysql> USE php-virt-control; > Database changed > mysql> SELECT DATABASE(); > +------------------+ > | DATABASE() | > +------------------+ > | php-virt-control | > +------------------+ > 1 row in set (0.00 sec) > > mysql> SHOW TABLES; > Empty set (0.00 sec) > > mysql> > > > Please help! > > Best Regards, > > > > Adam Scarcella > > > > Sr. Support Engineer | Spotfire, TIBCO Software Inc. > > Office: (617) 702-1559 | Mobile: (781) 367-8015 > > Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com> > > Web: http://spotfire.tibco.com/support > > > > Description: Description: TIBCO-Spotfire-Logo > > > > _______________________________________________ > php-virt-control mailing list > php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> > https://lists.fedorahosted.org/mailman/listinfo/php-virt-control -- 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> _______________________________________________ php-virt-control mailing list php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
Where can I find the RPM? I only found a tar.gz and had to run ./configure, make && make install. Then I used the .spec file to build an rpm using rpmbuild, but it didn't work, so I never actually "installed" anything. My path is relative to my apache doc root and not /etc/ because I extracted the tar.gz there. I'm assuming that the RPM will install everything into /etc/ correct?
Anyway, please let me know where I can download the RPM for CentOS 6.3 x86_64. Thanks.
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc. Office: (617) 702-1559 | Mobile: (781) 367-8015 Email: mailto:ascarcel@tibco.com Web: http://spotfire.tibco.com/support
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Tuesday, December 04, 2012 9:04 AM To: Virtual machine control for PHP Cc: Adam; Adam Scarcella Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL 5.1
Not yet as there was no time to do so but the simple RPM installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions. Does such a document exist?
Best Regards,
Adam Scarcella 870 Haverhill Street, Unit 4C Rowley, MA 01969 H: (978) 432-1631 M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com mailto:minovotn@redhat.com> wrote:
Hi Adam, it seems to be path related. > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*> > > <?php > /* > * Define type of storage type > * Currently supported storages are mysql or file > */ > $type = 'mysql'; > > /* > * Define configuration file for the storage > * For 'file' type it is the data file to store data into > * For 'mysql' type it is the name of the connection configuration file > */ > $config = 'mysql-connection.php'; > You should put absolute path there if the location is config/mysql-connection.php, by default the php-virt-control looks to /etc/php-virt-control for the file specified, i.e. it's trying to look for /etc/php-virt-control/mysql-connection.php in this case IMHO. Hope this helps and if not, I'll try to reproduce the behavior to provide better help. Thanks for using php-virt-control! Michal > ?> > > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*> > > <?php > /* Name of the database server */ > $server = 'localhost'; > > /* Username for database server */ > $user = 'php-virt-control'; > > /* Password for $user */ > $password = 'support'; > > /* Name of the database with the tables */ > $dbname = 'php-virt-control'; > > /* Prefix of tables for php-virt-control */ > $prefix = 'vmc_'; > ?> > > > > [root@ts-z600-1 html]# mysql -u php-virt-control -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 71 > Server version: 5.1.66-log Source distribution > > Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights > reserved. > > Oracle is a registered trademark of Oracle Corporation and/or its > affiliates. Other names may be trademarks of their respective > owners. > > Type 'help;' or '\h' for help. Type '\c' to clear the current > input statement. > > mysql> show databases; > +--------------------+ > | Database | > +--------------------+ > | information_schema | > | cloud | > | cloud_usage | > | cloudbridge | > | mysql | > | php-virt-control | > +--------------------+ > 6 rows in set (0.00 sec) > > mysql> SELECT DATABASE(); > +------------+ > | DATABASE() | > +------------+ > | NULL | > +------------+ > 1 row in set (0.00 sec) > > mysql> USE php-virt-control; > Database changed > mysql> SELECT DATABASE(); > +------------------+ > | DATABASE() | > +------------------+ > | php-virt-control | > +------------------+ > 1 row in set (0.00 sec) > > mysql> SHOW TABLES; > Empty set (0.00 sec) > > mysql> > > > Please help! > > Best Regards, > > > > Adam Scarcella > > > > Sr. Support Engineer | Spotfire, TIBCO Software Inc. > > Office: (617) 702-1559 | Mobile: (781) 367-8015 > > Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com> > > Web: http://spotfire.tibco.com/support > > > > Description: Description: TIBCO-Spotfire-Logo > > > > _______________________________________________ > php-virt-control mailing list > php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> > https://lists.fedorahosted.org/mailman/listinfo/php-virt-control -- 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> _______________________________________________ php-virt-control mailing list php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
-- Michal Novotny minovotn@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
Try the ./autobuild.sh script. This should generate it for you. There are no RPMs for RHEL/CentOS but the autobuild script should do it for you.
The development has been done on Fedora 17 x86_64 so if this helps, you can find RPM for F-17 x86_64 at http://people.redhat.com/minovotn/php-virt-control-0.0.4-1.fc17.x86_64.rpm .
Michal
On 12/04/2012 03:12 PM, Adam Scarcella wrote:
Where can I find the RPM? I only found a tar.gz and had to run ./configure, make && make install. Then I used the .spec file to build an rpm using rpmbuild, but it didn't work, so I never actually "installed" anything. My path is relative to my apache doc root and not /etc/ because I extracted the tar.gz there. I'm assuming that the RPM will install everything into /etc/ correct?
Anyway, please let me know where I can download the RPM for CentOS 6.3 x86_64. Thanks.
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc. Office: (617) 702-1559 | Mobile: (781) 367-8015 Email: mailto:ascarcel@tibco.com Web: http://spotfire.tibco.com/support
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Tuesday, December 04, 2012 9:04 AM To: Virtual machine control for PHP Cc: Adam; Adam Scarcella Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL 5.1
Not yet as there was no time to do so but the simple RPM installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions. Does such a document exist?
Best Regards,
Adam Scarcella 870 Haverhill Street, Unit 4C Rowley, MA 01969 H: (978) 432-1631 M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com mailto:minovotn@redhat.com> wrote:
Hi Adam, it seems to be path related. > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*> > > <?php > /* > * Define type of storage type > * Currently supported storages are mysql or file > */ > $type = 'mysql'; > > /* > * Define configuration file for the storage > * For 'file' type it is the data file to store data into > * For 'mysql' type it is the name of the connection configuration file > */ > $config = 'mysql-connection.php'; > You should put absolute path there if the location is config/mysql-connection.php, by default the php-virt-control looks to /etc/php-virt-control for the file specified, i.e. it's trying to look for /etc/php-virt-control/mysql-connection.php in this case IMHO. Hope this helps and if not, I'll try to reproduce the behavior to provide better help. Thanks for using php-virt-control! Michal > ?> > > > *sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php* <http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*> > > <?php > /* Name of the database server */ > $server = 'localhost'; > > /* Username for database server */ > $user = 'php-virt-control'; > > /* Password for $user */ > $password = 'support'; > > /* Name of the database with the tables */ > $dbname = 'php-virt-control'; > > /* Prefix of tables for php-virt-control */ > $prefix = 'vmc_'; > ?> > > > > [root@ts-z600-1 html]# mysql -u php-virt-control -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 71 > Server version: 5.1.66-log Source distribution > > Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights > reserved. > > Oracle is a registered trademark of Oracle Corporation and/or its > affiliates. Other names may be trademarks of their respective > owners. > > Type 'help;' or '\h' for help. Type '\c' to clear the current > input statement. > > mysql> show databases; > +--------------------+ > | Database | > +--------------------+ > | information_schema | > | cloud | > | cloud_usage | > | cloudbridge | > | mysql | > | php-virt-control | > +--------------------+ > 6 rows in set (0.00 sec) > > mysql> SELECT DATABASE(); > +------------+ > | DATABASE() | > +------------+ > | NULL | > +------------+ > 1 row in set (0.00 sec) > > mysql> USE php-virt-control; > Database changed > mysql> SELECT DATABASE(); > +------------------+ > | DATABASE() | > +------------------+ > | php-virt-control | > +------------------+ > 1 row in set (0.00 sec) > > mysql> SHOW TABLES; > Empty set (0.00 sec) > > mysql> > > > Please help! > > Best Regards, > > > > Adam Scarcella > > > > Sr. Support Engineer | Spotfire, TIBCO Software Inc. > > Office: (617) 702-1559 | Mobile: (781) 367-8015 > > Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com> > > Web: http://spotfire.tibco.com/support > > > > Description: Description: TIBCO-Spotfire-Logo > > > > _______________________________________________ > php-virt-control mailing list > php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> > https://lists.fedorahosted.org/mailman/listinfo/php-virt-control -- 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> _______________________________________________ php-virt-control mailing list php-virt-control@lists.fedorahosted.org <mailto:php-virt-control@lists.fedorahosted.org> https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list php-virt-control@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
-- Michal Novotny minovotn@redhat.com, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
I don't have that script:
[root@ts-z600-1 php-virt-control]# pwd
/var/www/html/php-virt-control
[root@ts-z600-1 php-virt-control]# ls -l
total 384
-rwxrwxrwx 1 apache root 22000 Dec 6 2011 aclocal.m4
drwxrwxrwx 2 apache root 4096 Dec 1 2011 auth
-rwxrwxrwx 1 apache root 454 Jun 28 2011 AUTHORS
-rwxrwxrwx 1 apache root 1457 Dec 1 2011 auth.php
-rwxrwxrwx 1 apache root 0 Jul 22 2011 ChangeLog
drwxrwxrwx 2 apache root 4096 Dec 3 15:27 classes
drwxrwxrwx 2 apache root 4096 Dec 3 15:25 config
-rw-r--r-- 1 root root 4862 Dec 3 12:49 config.log
-rwxr-xr-x 1 root root 25659 Dec 3 12:49 config.status
-rwxrwxrwx 1 apache root 99287 Dec 6 2011 configure
-rwxrwxrwx 1 apache root 159 Dec 5 2011 configure.ac
-rwxrwxrwx 1 apache root 35147 Jul 22 2011 COPYING
drwxrwxrwx 2 apache root 4096 Aug 30 2011 data
-rwxrwxrwx 1 apache root 1161 Dec 1 2011 dialog-login.php
-rwxrwxrwx 1 apache root 667 Aug 22 2011 error-connection-db.php
-rwxrwxrwx 1 apache root 616 Aug 22 2011 error-missing.php
-rwxrwxrwx 1 apache root 624 Aug 22 2011 error-need-update.php
-rwxrwxrwx 1 apache root 351 Aug 22 2011 error.php
-rwxrwxrwx 1 apache root 1035 Dec 5 2011 functions.php
drwxrwxrwx 2 apache root 4096 Jun 23 2011 graphics
-rwxrwxrwx 1 apache root 2014 Aug 22 2011 index.php
-rwxrwxrwx 1 apache root 3424 Dec 3 13:34 init.php
-rwxrwxrwx 1 apache root 1167 Dec 6 2011 INSTALL
-rwxrwxrwx 1 apache root 13663 Dec 6 2011 install-sh
drwxrwxrwx 2 apache root 4096 Dec 6 2011 lang
drwxrwxrwx 2 apache root 4096 Sep 14 2011 logs
-rwxrwxrwx 1 apache root 536 Dec 5 2011 main-menu.php
-rw-r--r-- 1 root root 21368 Dec 3 12:49 Makefile
-rwxrwxrwx 1 apache root 114 Oct 1 2011 Makefile.am
-rwxrwxrwx 1 apache root 20674 Dec 6 2011 Makefile.in
-rwxrwxrwx 1 apache root 1774 Jul 21 2011 manager.css
-rwxrwxrwx 1 apache root 1149 Aug 22 2011 menu.php
-rwxrwxrwx 1 apache root 11419 Dec 6 2011 missing
-rwxrwxrwx 1 apache root 34 Jul 22 2011 NEWS
drwxrwxrwx 3 apache root 4096 Dec 6 2011 pages
-rwxrwxrwx 1 apache root 2991 Dec 5 2011 php-virt-control.spec
-rwxrwxrwx 1 apache root 270 Jul 24 2011 README
drwxrwxrwx 2 apache root 4096 Dec 3 12:49 tools
[root@ts-z600-1 php-virt-control]# find . -name "autobuild.sh"
[root@ts-z600-1 php-virt-control]# find . -name "*.sh"
[root@ts-z600-1 php-virt-control]#
Where do I get that script?
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
Web: http://spotfire.tibco.com/support
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Tuesday, December 04, 2012 10:06 AM To: Adam Scarcella Cc: Virtual machine control for PHP; Adam Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL 5.1
Try the ./autobuild.sh script. This should generate it for you. There are no RPMs for RHEL/CentOS but the autobuild script should do it for you.
The development has been done on Fedora 17 x86_64 so if this helps, you can find RPM for F-17 x86_64 at http://people.redhat.com/minovotn/php-virt-control-0.0.4-1.fc17.x86_64.rpm .
Michal
On 12/04/2012 03:12 PM, Adam Scarcella wrote:
Where can I find the RPM? I only found a tar.gz and had to run ./configure, make && make install. Then I used the .spec file to build an rpm using rpmbuild, but it didn't work, so I never actually "installed" anything. My path is relative to my apache doc root and not /etc/ because I extracted the tar.gz there. I'm assuming that the RPM will install everything into /etc/ correct?
Anyway, please let me know where I can download the RPM for CentOS 6.3 x86_64. Thanks.
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
-----Original Message-----
From: Michal Novotny [mailto:minovotn@redhat.com]mailto:[mailto:minovotn@redhat.com]
Sent: Tuesday, December 04, 2012 9:04 AM
To: Virtual machine control for PHP
Cc: Adam; Adam Scarcella
Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL
5.1
Not yet as there was no time to do so but the simple RPM installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions.
Does such a document exist?
Best Regards,
Adam Scarcella
870 Haverhill Street, Unit 4C
Rowley, MA 01969
H: (978) 432-1631
M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com
mailto:minovotn@redhat.com> wrote:
Hi Adam,
it seems to be path related.
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*<http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/connection.php*>>
>
> <?php
> /*
> * Define type of storage type
> * Currently supported storages are mysql or file
> */
> $type = 'mysql';
>
> /*
> * Define configuration file for the storage
> * For 'file' type it is the data file to store data into
> * For 'mysql' type it is the name of the connection
configuration file
> */
> $config = 'mysql-connection.php';
>
You should put absolute path there if the location is
config/mysql-connection.php, by default the php-virt-control looks to
/etc/php-virt-control for the file specified, i.e. it's trying to look
for /etc/php-virt-control/mysql-connection.php in this case IMHO.
Hope this helps and if not, I'll try to reproduce the behavior to
provide better help.
Thanks for using php-virt-control!
Michal
> ?>
>
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*<http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*>>
>
> <?php
> /* Name of the database server */
> $server = 'localhost';
>
> /* Username for database server */
> $user = 'php-virt-control';
>
> /* Password for $user */
> $password = 'support';
>
> /* Name of the database with the tables */
> $dbname = 'php-virt-control';
>
> /* Prefix of tables for php-virt-control */
> $prefix = 'vmc_';
> ?>
>
>
>
> [root@ts-z600-1 html]# mysql -u php-virt-control -p
> Enter password:
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 71
> Server version: 5.1.66-log Source distribution
>
> Copyright (c) 2000, 2012, Oracle and/or its affiliates. All
rights
> reserved.
>
> Oracle is a registered trademark of Oracle Corporation
and/or its
> affiliates. Other names may be trademarks of their respective
> owners.
>
> Type 'help;' or '\h' for help. Type '\c' to clear the current
> input statement.
>
> mysql> show databases;
> +--------------------+
> | Database |
> +--------------------+
> | information_schema |
> | cloud |
> | cloud_usage |
> | cloudbridge |
> | mysql |
> | php-virt-control |
> +--------------------+
> 6 rows in set (0.00 sec)
>
> mysql> SELECT DATABASE();
> +------------+
> | DATABASE() |
> +------------+
> | NULL |
> +------------+
> 1 row in set (0.00 sec)
>
> mysql> USE php-virt-control;
> Database changed
> mysql> SELECT DATABASE();
> +------------------+
> | DATABASE() |
> +------------------+
> | php-virt-control |
> +------------------+
> 1 row in set (0.00 sec)
>
> mysql> SHOW TABLES;
> Empty set (0.00 sec)
>
> mysql>
>
>
> Please help!
>
> Best Regards,
>
>
>
> Adam Scarcella
>
>
>
> Sr. Support Engineer | Spotfire, TIBCO Software Inc.
>
> Office: (617) 702-1559 | Mobile: (781) 367-8015
>
> Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com>
>
> Web: http://spotfire.tibco.com/support
>
>
>
> Description: Description: TIBCO-Spotfire-Logo
>
>
>
> _______________________________________________
> php-virt-control mailing list
> php-virt-control@lists.fedorahosted.org<mailto:php-virt-control@lists.fedorahosted.org>
<mailto:php-virt-control@lists.fedorahosted.org>
>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com<mailto:minovotn@redhat.com%20%3cmailto:minovotn@redhat.com>>>,
RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org
<http://php-virt-control.org>
_______________________________________________
php-virt-control mailing list
php-virt-control@lists.fedorahosted.org<mailto:php-virt-control@lists.fedorahosted.org>
<mailto:php-virt-control@lists.fedorahosted.org>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list
php-virt-control@lists.fedorahosted.orgmailto:php-virt-control@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.commailto:minovotn@redhat.com>, RHCE, Red Hat Virtualization |
libvirt-php bindings | php-virt-control.org
--
Michal Novotny <minovotn@redhat.commailto:minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
Try cloning it from the git repository:
git://git.php-virt-control.org/php-virt-control.git
Michal
On 12/04/2012 05:02 PM, Adam Scarcella wrote:
I don't have that script:
[root@ts-z600-1 php-virt-control]# pwd
/var/www/html/php-virt-control
[root@ts-z600-1 php-virt-control]# ls -l
total 384
-rwxrwxrwx 1 apache root 22000 Dec 6 2011 aclocal.m4
drwxrwxrwx 2 apache root 4096 Dec 1 2011 auth
-rwxrwxrwx 1 apache root 454 Jun 28 2011 AUTHORS
-rwxrwxrwx 1 apache root 1457 Dec 1 2011 auth.php
-rwxrwxrwx 1 apache root 0 Jul 22 2011 ChangeLog
drwxrwxrwx 2 apache root 4096 Dec 3 15:27 classes
drwxrwxrwx 2 apache root 4096 Dec 3 15:25 config
-rw-r--r-- 1 root root 4862 Dec 3 12:49 config.log
-rwxr-xr-x 1 root root 25659 Dec 3 12:49 config.status
-rwxrwxrwx 1 apache root 99287 Dec 6 2011 configure
-rwxrwxrwx 1 apache root 159 Dec 5 2011 configure.ac
-rwxrwxrwx 1 apache root 35147 Jul 22 2011 COPYING
drwxrwxrwx 2 apache root 4096 Aug 30 2011 data
-rwxrwxrwx 1 apache root 1161 Dec 1 2011 dialog-login.php
-rwxrwxrwx 1 apache root 667 Aug 22 2011 error-connection-db.php
-rwxrwxrwx 1 apache root 616 Aug 22 2011 error-missing.php
-rwxrwxrwx 1 apache root 624 Aug 22 2011 error-need-update.php
-rwxrwxrwx 1 apache root 351 Aug 22 2011 error.php
-rwxrwxrwx 1 apache root 1035 Dec 5 2011 functions.php
drwxrwxrwx 2 apache root 4096 Jun 23 2011 graphics
-rwxrwxrwx 1 apache root 2014 Aug 22 2011 index.php
-rwxrwxrwx 1 apache root 3424 Dec 3 13:34 init.php
-rwxrwxrwx 1 apache root 1167 Dec 6 2011 INSTALL
-rwxrwxrwx 1 apache root 13663 Dec 6 2011 install-sh
drwxrwxrwx 2 apache root 4096 Dec 6 2011 lang
drwxrwxrwx 2 apache root 4096 Sep 14 2011 logs
-rwxrwxrwx 1 apache root 536 Dec 5 2011 main-menu.php
-rw-r--r-- 1 root root 21368 Dec 3 12:49 Makefile
-rwxrwxrwx 1 apache root 114 Oct 1 2011 Makefile.am
-rwxrwxrwx 1 apache root 20674 Dec 6 2011 Makefile.in
-rwxrwxrwx 1 apache root 1774 Jul 21 2011 manager.css
-rwxrwxrwx 1 apache root 1149 Aug 22 2011 menu.php
-rwxrwxrwx 1 apache root 11419 Dec 6 2011 missing
-rwxrwxrwx 1 apache root 34 Jul 22 2011 NEWS
drwxrwxrwx 3 apache root 4096 Dec 6 2011 pages
-rwxrwxrwx 1 apache root 2991 Dec 5 2011 php-virt-control.spec
-rwxrwxrwx 1 apache root 270 Jul 24 2011 README
drwxrwxrwx 2 apache root 4096 Dec 3 12:49 tools
[root@ts-z600-1 php-virt-control]# find . -name "autobuild.sh"
[root@ts-z600-1 php-virt-control]# find . -name "*.sh"
[root@ts-z600-1 php-virt-control]#
Where do I get that script?
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
Web: http://spotfire.tibco.com/support
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Tuesday, December 04, 2012 10:06 AM To: Adam Scarcella Cc: Virtual machine control for PHP; Adam Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL 5.1
Try the ./autobuild.sh script. This should generate it for you. There are no RPMs for RHEL/CentOS but the autobuild script should do it for you.
The development has been done on Fedora 17 x86_64 so if this helps, you can find RPM for F-17 x86_64 at http://people.redhat.com/minovotn/php-virt-control-0.0.4-1.fc17.x86_64.rpm .
Michal
On 12/04/2012 03:12 PM, Adam Scarcella wrote:
Where can I find the RPM? I only found a tar.gz and had to run
./configure, make && make install. Then I used the .spec file to build an rpm using rpmbuild, but it didn't work, so I never actually "installed" anything. My path is relative to my apache doc root and not /etc/ because I extracted the tar.gz there. I'm assuming that the RPM will install everything into /etc/ correct?
Anyway, please let me know where I can download the RPM for CentOS
6.3 x86_64. Thanks.
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
-----Original Message-----
From: Michal Novotny [mailto:minovotn@redhat.com]
mailto:[mailto:minovotn@redhat.com]
Sent: Tuesday, December 04, 2012 9:04 AM
To: Virtual machine control for PHP
Cc: Adam; Adam Scarcella
Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL
5.1
Not yet as there was no time to do so but the simple RPM
installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions.
Does such a document exist?
Best Regards,
Adam Scarcella
870 Haverhill Street, Unit 4C
Rowley, MA 01969
H: (978) 432-1631
M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com
mailto:minovotn@redhat.com> wrote:
Hi Adam,
it seems to be path related.
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/co... http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/connection.php*>
>
> <?php
> /*
> * Define type of storage type
> * Currently supported storages are mysql or file
> */
> $type = 'mysql';
>
> /*
> * Define configuration file for the storage
> * For 'file' type it is the data file to store data into
> * For 'mysql' type it is the name of the connection
configuration file
> */
> $config = 'mysql-connection.php';
>
You should put absolute path there if the location is
config/mysql-connection.php, by default the php-virt-control
looks to
/etc/php-virt-control for the file specified, i.e. it's trying
to look
for /etc/php-virt-control/mysql-connection.php in this case IMHO.
Hope this helps and if not, I'll try to reproduce the behavior to
provide better help.
Thanks for using php-virt-control!
Michal
> ?>
>
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/my... http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*>
>
> <?php
> /* Name of the database server */
> $server = 'localhost';
>
> /* Username for database server */
> $user = 'php-virt-control';
>
> /* Password for $user */
> $password = 'support';
>
> /* Name of the database with the tables */
> $dbname = 'php-virt-control';
>
> /* Prefix of tables for php-virt-control */
> $prefix = 'vmc_';
> ?>
>
>
>
> [root@ts-z600-1 html]# mysql -u php-virt-control -p
> Enter password:
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 71
> Server version: 5.1.66-log Source distribution
>
> Copyright (c) 2000, 2012, Oracle and/or its affiliates. All
rights
> reserved.
>
> Oracle is a registered trademark of Oracle Corporation
and/or its
> affiliates. Other names may be trademarks of their respective
> owners.
>
> Type 'help;' or '\h' for help. Type '\c' to clear the current
> input statement.
>
> mysql> show databases;
> +--------------------+
> | Database |
> +--------------------+
> | information_schema |
> | cloud |
> | cloud_usage |
> | cloudbridge |
> | mysql |
> | php-virt-control |
> +--------------------+
> 6 rows in set (0.00 sec)
>
> mysql> SELECT DATABASE();
> +------------+
> | DATABASE() |
> +------------+
> | NULL |
> +------------+
> 1 row in set (0.00 sec)
>
> mysql> USE php-virt-control;
> Database changed
> mysql> SELECT DATABASE();
> +------------------+
> | DATABASE() |
> +------------------+
> | php-virt-control |
> +------------------+
> 1 row in set (0.00 sec)
>
> mysql> SHOW TABLES;
> Empty set (0.00 sec)
>
> mysql>
>
>
> Please help!
>
> Best Regards,
>
>
>
> Adam Scarcella
>
>
>
> Sr. Support Engineer | Spotfire, TIBCO Software Inc.
>
> Office: (617) 702-1559 | Mobile: (781) 367-8015
>
> Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com>
>
> Web: http://spotfire.tibco.com/support
>
>
>
> Description: Description: TIBCO-Spotfire-Logo
>
>
>
> _______________________________________________
> php-virt-control mailing list
> php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
<mailto:php-virt-control@lists.fedorahosted.org>
>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com
mailto:minovotn@redhat.com%20%3cmailto:minovotn@redhat.com>>,
RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org
<http://php-virt-control.org>
_______________________________________________
php-virt-control mailing list
php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
<mailto:php-virt-control@lists.fedorahosted.org>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list
php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.com mailto:minovotn@redhat.com>,
RHCE, Red Hat Virtualization |
libvirt-php bindings | php-virt-control.org
--
Michal Novotny <minovotn@redhat.com mailto:minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
Hi Adam, I tried to do the installation process on a new RHEL/CentOS 6.3 machine myself so I've been able to create the packages for you. You require the php-libvirt package too so you can find it on the same location.
The location is http://people.redhat.com/minovotn/tools/php
Please note that this is not officially supported however I'll try to provide my support as the original author and maintainer.
Now the steps I took: 1) Install both RPMs, it creates the /etc/php-virt-control 2) Edit /etc/php-virt-control/mysql-connection.php to match your configuration (don't use the dashes and special characters in the database name - it was not working for me) 3) Restart Apache to make it aware of new php-virt-control Apache config 4) Access http://servername/php-virt-control from your webbrowser, the login screen shout pop-up 5) Login using default credentials - username "admin", password "admin" (no quotes) 6) For my configuration I was in and able to manage the guests :-)
Michal
On 12/04/2012 05:02 PM, Adam Scarcella wrote:
I don't have that script:
[root@ts-z600-1 php-virt-control]# pwd
/var/www/html/php-virt-control
[root@ts-z600-1 php-virt-control]# ls -l
total 384
-rwxrwxrwx 1 apache root 22000 Dec 6 2011 aclocal.m4
drwxrwxrwx 2 apache root 4096 Dec 1 2011 auth
-rwxrwxrwx 1 apache root 454 Jun 28 2011 AUTHORS
-rwxrwxrwx 1 apache root 1457 Dec 1 2011 auth.php
-rwxrwxrwx 1 apache root 0 Jul 22 2011 ChangeLog
drwxrwxrwx 2 apache root 4096 Dec 3 15:27 classes
drwxrwxrwx 2 apache root 4096 Dec 3 15:25 config
-rw-r--r-- 1 root root 4862 Dec 3 12:49 config.log
-rwxr-xr-x 1 root root 25659 Dec 3 12:49 config.status
-rwxrwxrwx 1 apache root 99287 Dec 6 2011 configure
-rwxrwxrwx 1 apache root 159 Dec 5 2011 configure.ac
-rwxrwxrwx 1 apache root 35147 Jul 22 2011 COPYING
drwxrwxrwx 2 apache root 4096 Aug 30 2011 data
-rwxrwxrwx 1 apache root 1161 Dec 1 2011 dialog-login.php
-rwxrwxrwx 1 apache root 667 Aug 22 2011 error-connection-db.php
-rwxrwxrwx 1 apache root 616 Aug 22 2011 error-missing.php
-rwxrwxrwx 1 apache root 624 Aug 22 2011 error-need-update.php
-rwxrwxrwx 1 apache root 351 Aug 22 2011 error.php
-rwxrwxrwx 1 apache root 1035 Dec 5 2011 functions.php
drwxrwxrwx 2 apache root 4096 Jun 23 2011 graphics
-rwxrwxrwx 1 apache root 2014 Aug 22 2011 index.php
-rwxrwxrwx 1 apache root 3424 Dec 3 13:34 init.php
-rwxrwxrwx 1 apache root 1167 Dec 6 2011 INSTALL
-rwxrwxrwx 1 apache root 13663 Dec 6 2011 install-sh
drwxrwxrwx 2 apache root 4096 Dec 6 2011 lang
drwxrwxrwx 2 apache root 4096 Sep 14 2011 logs
-rwxrwxrwx 1 apache root 536 Dec 5 2011 main-menu.php
-rw-r--r-- 1 root root 21368 Dec 3 12:49 Makefile
-rwxrwxrwx 1 apache root 114 Oct 1 2011 Makefile.am
-rwxrwxrwx 1 apache root 20674 Dec 6 2011 Makefile.in
-rwxrwxrwx 1 apache root 1774 Jul 21 2011 manager.css
-rwxrwxrwx 1 apache root 1149 Aug 22 2011 menu.php
-rwxrwxrwx 1 apache root 11419 Dec 6 2011 missing
-rwxrwxrwx 1 apache root 34 Jul 22 2011 NEWS
drwxrwxrwx 3 apache root 4096 Dec 6 2011 pages
-rwxrwxrwx 1 apache root 2991 Dec 5 2011 php-virt-control.spec
-rwxrwxrwx 1 apache root 270 Jul 24 2011 README
drwxrwxrwx 2 apache root 4096 Dec 3 12:49 tools
[root@ts-z600-1 php-virt-control]# find . -name "autobuild.sh"
[root@ts-z600-1 php-virt-control]# find . -name "*.sh"
[root@ts-z600-1 php-virt-control]#
Where do I get that script?
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
Web: http://spotfire.tibco.com/support
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Tuesday, December 04, 2012 10:06 AM To: Adam Scarcella Cc: Virtual machine control for PHP; Adam Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL 5.1
Try the ./autobuild.sh script. This should generate it for you. There are no RPMs for RHEL/CentOS but the autobuild script should do it for you.
The development has been done on Fedora 17 x86_64 so if this helps, you can find RPM for F-17 x86_64 at http://people.redhat.com/minovotn/php-virt-control-0.0.4-1.fc17.x86_64.rpm .
Michal
On 12/04/2012 03:12 PM, Adam Scarcella wrote:
Where can I find the RPM? I only found a tar.gz and had to run
./configure, make && make install. Then I used the .spec file to build an rpm using rpmbuild, but it didn't work, so I never actually "installed" anything. My path is relative to my apache doc root and not /etc/ because I extracted the tar.gz there. I'm assuming that the RPM will install everything into /etc/ correct?
Anyway, please let me know where I can download the RPM for CentOS
6.3 x86_64. Thanks.
Best Regards,
Adam Scarcella
Sr. Support Engineer | Spotfire, TIBCO Software Inc.
Office: (617) 702-1559 | Mobile: (781) 367-8015
Email: mailto:ascarcel@tibco.com
-----Original Message-----
From: Michal Novotny [mailto:minovotn@redhat.com]
mailto:[mailto:minovotn@redhat.com]
Sent: Tuesday, December 04, 2012 9:04 AM
To: Virtual machine control for PHP
Cc: Adam; Adam Scarcella
Subject: Re: [php-virt-control] Installation on CentOS 6.3 and MySQL
5.1
Not yet as there was no time to do so but the simple RPM
installation should work fine.
Michal
On 12/04/2012 02:17 PM, Adam wrote:
I could not find a set of comprehensive installation instructions.
Does such a document exist?
Best Regards,
Adam Scarcella
870 Haverhill Street, Unit 4C
Rowley, MA 01969
H: (978) 432-1631
M: (781) 367-8015
On Dec 4, 2012 7:26 AM, "Michal Novotny" <minovotn@redhat.com
mailto:minovotn@redhat.com> wrote:
Hi Adam,
it seems to be path related.
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/co... http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/connection.php*>
>
> <?php
> /*
> * Define type of storage type
> * Currently supported storages are mysql or file
> */
> $type = 'mysql';
>
> /*
> * Define configuration file for the storage
> * For 'file' type it is the data file to store data into
> * For 'mysql' type it is the name of the connection
configuration file
> */
> $config = 'mysql-connection.php';
>
You should put absolute path there if the location is
config/mysql-connection.php, by default the php-virt-control
looks to
/etc/php-virt-control for the file specified, i.e. it's trying
to look
for /etc/php-virt-control/mysql-connection.php in this case IMHO.
Hope this helps and if not, I'll try to reproduce the behavior to
provide better help.
Thanks for using php-virt-control!
Michal
> ?>
>
>
>
*sftp://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*
<http://ts-z600-1.na.tibco.com//var/www/html/php-virt-control-0.0.3/config/my... http://ts-z600-1.na.tibco.com/var/www/html/php-virt-control-0.0.3/config/mysql-connection.php*>
>
> <?php
> /* Name of the database server */
> $server = 'localhost';
>
> /* Username for database server */
> $user = 'php-virt-control';
>
> /* Password for $user */
> $password = 'support';
>
> /* Name of the database with the tables */
> $dbname = 'php-virt-control';
>
> /* Prefix of tables for php-virt-control */
> $prefix = 'vmc_';
> ?>
>
>
>
> [root@ts-z600-1 html]# mysql -u php-virt-control -p
> Enter password:
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 71
> Server version: 5.1.66-log Source distribution
>
> Copyright (c) 2000, 2012, Oracle and/or its affiliates. All
rights
> reserved.
>
> Oracle is a registered trademark of Oracle Corporation
and/or its
> affiliates. Other names may be trademarks of their respective
> owners.
>
> Type 'help;' or '\h' for help. Type '\c' to clear the current
> input statement.
>
> mysql> show databases;
> +--------------------+
> | Database |
> +--------------------+
> | information_schema |
> | cloud |
> | cloud_usage |
> | cloudbridge |
> | mysql |
> | php-virt-control |
> +--------------------+
> 6 rows in set (0.00 sec)
>
> mysql> SELECT DATABASE();
> +------------+
> | DATABASE() |
> +------------+
> | NULL |
> +------------+
> 1 row in set (0.00 sec)
>
> mysql> USE php-virt-control;
> Database changed
> mysql> SELECT DATABASE();
> +------------------+
> | DATABASE() |
> +------------------+
> | php-virt-control |
> +------------------+
> 1 row in set (0.00 sec)
>
> mysql> SHOW TABLES;
> Empty set (0.00 sec)
>
> mysql>
>
>
> Please help!
>
> Best Regards,
>
>
>
> Adam Scarcella
>
>
>
> Sr. Support Engineer | Spotfire, TIBCO Software Inc.
>
> Office: (617) 702-1559 | Mobile: (781) 367-8015
>
> Email: mailto:ascarcel@tibco.com <mailto:ascarcel@tibco.com>
>
> Web: http://spotfire.tibco.com/support
>
>
>
> Description: Description: TIBCO-Spotfire-Logo
>
>
>
> _______________________________________________
> php-virt-control mailing list
> php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
<mailto:php-virt-control@lists.fedorahosted.org>
>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.com <mailto:minovotn@redhat.com
mailto:minovotn@redhat.com%20%3cmailto:minovotn@redhat.com>>,
RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org
<http://php-virt-control.org>
_______________________________________________
php-virt-control mailing list
php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
<mailto:php-virt-control@lists.fedorahosted.org>
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
php-virt-control mailing list
php-virt-control@lists.fedorahosted.org
mailto:php-virt-control@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/php-virt-control
--
Michal Novotny <minovotn@redhat.com mailto:minovotn@redhat.com>,
RHCE, Red Hat Virtualization |
libvirt-php bindings | php-virt-control.org
--
Michal Novotny <minovotn@redhat.com mailto:minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org
php-virt-control@lists.fedorahosted.org