Page 1 of 2
How to connect to webserver.
Posted: Fri Apr 20, 2012 12:16 pm
by egbertje
Hello,
Im new here and have a question.
Im also completely new to linux, but after reading a lot here i finally after a week i got a working Domotiga.
I made under VMware a VM with Ubuntu desktop 10.04, installed all the stuff/gambas and domotiga.
I bought a RFXcom reciever/transmitter V3 and now i can switch some KaKu devices finally!
But what not works is making connection to the webserver and see the nice Domotiga status page as shown on the homepage of Domotiga.
When i go to
http://localhost:8001 all i get is an empty page with shows : DomotiGa v.0.1.204.
The webserver module is enabled and settings are default : ~/domotiga/www
Do i have to change here something, or copy some data to this folder?
i know i am doing something wrong, but somebody can help me further.
Egbert
Re: How to connect to webserver.
Posted: Fri Apr 20, 2012 9:04 pm
by tradiuz
Re: How to connect to webserver.
Posted: Sat Apr 21, 2012 11:21 am
by egbertje
Tradiuz,
Thanks for reply.
I did exactly what is written there.
In my config.php under /var/www/domotiga i copy-paste
..
$rpc_connect="
http://127.0.0.1:9009";
..
Now when i go in a browser in the same VM to
http://127.0.0.1:9009 i get : Bad Request 405 Method Not Allowed. Gambas XML-RPC Server
What am i doing wrong?
And what is the difference in settings in Domotiga for : settings / webserver : default is Document root = ~/domotiga/www and Http port =8001
Re: How to connect to webserver.
Posted: Sat Apr 21, 2012 9:03 pm
by RDNZL
You have to surf to
http://localhost/domotiga/
http://127.0.0.1:9009 is the xmlrpc port of DomotiGa.
Re: How to connect to webserver.
Posted: Sun Apr 22, 2012 12:05 pm
by egbertje
Ron,
Thank you it works now!
I got confused because in your "Installation of PHP/XML webclient"article you wrote : For example domotiga, so you can access it by browsing to
http://yourserver.org/domotiga.
But it has to be :
http://localhost/domotiga/
Am i right ?
Now im gonna play with your nice sofware.
Re: How to connect to webserver.
Posted: Mon Apr 23, 2012 10:23 am
by egbertje
Ron,
One more question:
How can i begin with an empty database so if i wanna try Domotiga from scratch?
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 9:02 am
by RDNZL
I have added support for installing an empty database to the install wizard.
So you should be able to update your DomotiGa installation, and drop the current database you have.
Code: Select all
mysqladmin -u root -p drop domotiga
Then start DomotiGa and you have the option to install it from the wizard.
If you want to delete certain tables like devices you can do that in the Database Admin tool from inside DomotiGa already.
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 10:51 am
by egbertje
Ive updated but 2 things:
In the wizard i can only choose the demo database, i cant make a new one.
I choosed the demo database and got an error :
Error : query failed: Table 'Domotiga.version' doent exist -1 Main. CheckDatabaseVersion.5715 Program aborted.
After that error Ubuntu/Gambas hangs.
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 3:19 pm
by RDNZL
Hi, the fact that empty database is disable means you run the older code still, or I made a mistake.
You downloaded revision 863?
What also catches my eye is the fact that the error says Domotiga.version, by default the database name is domotiga, all lower case.
Can you check again?
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 3:32 pm
by egbertje
I updated via svn command and checked revision is 863.
Now i can choose empty or demo database but error is the same.
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 10:05 pm
by RDNZL
Did you change the database name in the wizard?
There is an issue with that, it works ok here when using the default 'domotiga' as database name, and leave this default in domotiga.conf too.
Will investigate what the problem is in the mean time.
Re: How to connect to webserver.
Posted: Tue Apr 24, 2012 10:08 pm
by egbertje
I try to setup a new VMware and install everything again to try.
Btw thanks for excellent support!
Re: How to connect to webserver.
Posted: Wed Apr 25, 2012 1:26 pm
by egbertje
Ron,
Installed everything new, but now i cant start Domotiga anymore.
If it askes the first time to create a database for demo or new i choose demo and get folloing error in insstall database : ERROR 1007 (HY000) at line 1: Can't create database 'domotiga'; database exists
Created database called 'domotiga' ...
ERROR at line 1: Failed to open file '/home/egbert/install/domotiga.sql', error: 2
Loaded database tables from 'domotiga.sql' ...
Flushed database privileges ...
After pressing ok i get error : Connection is not opened -1 Main.Checkdatabaseversion.5793 Program aborted.
Svn is now 867!
Re: How to connect to webserver.
Posted: Wed Apr 25, 2012 3:34 pm
by RDNZL
No need to re-install everything, why do people do that? We are not running Windows...
So you loaded a whole new OS, and got on first time running database domotiga already exists??
Code: Select all
ERROR at line 1: Failed to open file '/home/egbert/install/domotiga.sql', error: 2
It can't find the sql dump file,needed to create the database.
You must install/copy the whole 'domotiga' directory inside your home directory.
So not in /home/egbert/install
But you should have /home/egbert/domotiga/install..
/home/egbert/domotiga/DomotiGa.. etc...
Can you fix your domotiga installation and try again.
Re: How to connect to webserver.
Posted: Wed Apr 25, 2012 4:42 pm
by RDNZL
Oh and you should delete the half installed database first with:
Code: Select all
mysqladmin -u root -p drop domotiga