Change Hostname Emoncms and Apache

Hi,

I got some problem after changed my hostname from xxxx to xxxx.yyyyy.com  problem is that just the Multigraph published on the dashboard still go to xxxx all other part are correctly redirected to xxxx.yyyyy.com.

 

Any suggestion?

Alex

fake-name's picture

Re: Change Hostname Emoncms and Apache

All the dashboards are saved in the SQL database as a giant text-string.

 

I had this issue as well, and I had to manually update the contents of the DB to reflect the new URL to fix it.

scacchi's picture

Re: Change Hostname Emoncms and Apache

Thanks for the hits..but which is the right  table value you changed? I don't want kick me out from the user login.. ehehehhe

The strange is that just the multigraph inside Dashboard still point to the local hostname, the gauges and other things are correctly changed...

Thanks

Bra1n's picture

Re: Change Hostname Emoncms and Apache

It's part of the 'content' field in the 'dashboard' table of the 'emoncms' database. If you look at the entry for a multigraph you will see src="http://yourhost/emoncms/vis/multigraph? somewhere in the middle of the data for that field just remove the http://yourhost bit and then it will work anywhere.

To avoid the problem when saving multigraphs in future edit line 35 of /var/www/emoncms/index.php from 

$path = get_application_path();

to 

$path = "/emoncms/";

assuming your server is using the default setup and running from the emoncms directory.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.