Emoncms and local server LINUX

HI,

I have been using the energy monitor very successfully with the http://vis.openenergymonitor.org site for over a year so I decided to upgrade a bit by running the new scripts on a local LINUX server (UBUNTU) and have a few niggling problems. A slap round the head or some help please!  It all works ....mostly.... with the new scripts but...

1) The new time on the GLCD is wrong, shows correct minutes but hours are wrong i.e 0:25 minutes. The script is the new PV solar one from the github. The OLD scripts the time is correct and everything works OK.

Changing the emoncms website admin/hours in my account has no effect.

2) The new install is on a local server and located at  " /var/www/emoncms", the Emon-TX script requires the base directory to be set. The local machine is browserURL is 192.18.0.1/emoncms so do I use " /emoncms" or "/var/www/emoncms" ? Neither work!

" // 2) If your emoncms install is in a subdirectory add details here i.e "/emoncms3"
char base dir[] = "/var/www/emoncms"; "

3) The local help API tab in the LOCAL emoncms posts data to the input but the local server does not get it at all when posted by the emon TX module.

Do I have a permission problem with the emoncms directory? Permissions are set to "root".

What are the correct permissons?

4) The new Emonbase script that posts to the internet posts data on the http://emoncms.org/input/node website OK  but will not post to the local machine with either the old or new scripts.

I want to get a self contained server running on a Pi webserver eventually.

It still is a very useful bit of kit!

Cheers

David P