Hi Forum,
We have got Emoncms working very nicely on a WAMP installation with perfect operation. Now this is working, we would like to install Emoncms on a Windows 2008 server, using Apache, PHP and Mysql to give a more robust production solution.
I have got all the components installed and working as a AMP stack, but having trouble setting Emoncms running.
Does anybody had any experience in setting up Emoncms on this type of installation? I have gone through the httd.conf and set this up best I can, but the home page will not load. Wondering what is particular to the Emoncms in the way of modules, apart from mod_rewrite and gettext.
Any tips for building the correct AMP stack?
kind regards Richard
Re: Installing Emoncms on Window 2008 server
Did you enable logging? What errors do you get in the logs?
Re: Installing Emoncms on Window 2008 server
Hello Richard, just saw your email too, might be worth checking your browser console window, does it show any errors? In firefox you can press ctrl + shift + k and then click Network, refresh the page and it will show all the requests it tries to do. check the response of the request, are there any errors?
As Mattia mentioned Apache logs will likely show the same errors if there are any.
Re: Installing Emoncms on Window 2008 server
Thank Mattia,
I followed your suggestion of Logging and found a few errors, regarding the ext directory and that has helped, but still getting the following log error.
I have checked the firefox console and not getting any error in the header responce.
apache error log...
[Mon Oct 28 08:58:31.879234 2013] [mpm_winnt:notice] [pid 5340:tid 396] AH00455: Apache/2.4.6 (Win32) PHP/5.4.21 configured -- resuming normal operations
[Mon Oct 28 08:58:31.879234 2013] [mpm_winnt:notice] [pid 5340:tid 396] AH00456: Apache Lounge VC11 Server built: Jul 15 2013 20:13:45
[Mon Oct 28 08:58:31.879234 2013] [core:notice] [pid 5340:tid 396] AH00094: Command line: 'c:\\apache\\bin\\httpd.exe -d C:/apache'
[Mon Oct 28 08:58:31.879234 2013] [mpm_winnt:notice] [pid 5340:tid 396] AH00418: Parent: Created child process 972
[Mon Oct 28 08:58:32.487635 2013] [mpm_winnt:notice] [pid 972:tid 296] AH00354: Child: Starting 64 worker threads.
Any pointers (apart from using a linux machine!)?
R
Re: Installing Emoncms on Window 2008 server
None of those look like error's to me, they look like the server starting up, although I dont know the exact details of windows 2008. On the login screen do you see a red box when you try and login with no text in it?
Re: Installing Emoncms on Window 2008 server
Genuine perseverance!!
I re-read the php.ini file again and noticed the mysql extension was not enabled.
That took more time that I had hoped, but a good learning experience.
I am now able to register user and enable accounts. However, when I try to create and input from the input example, I get the 'OK' message but the input is not created in the db.
Many thanks again.
Re: Installing Emoncms on Window 2008 server
if user register works then everything should be in place for input creation too, so not quite sure why its not working. Did the input table get created ok in the database? although I guess if it didnt it would have given you an error.
Are you logged in when creating an input?
What does this give you:
http://localhost/emoncms/input/post.json?node=1&csv=100,200,300
Re: Installing Emoncms on Window 2008 server
Trystan,
Thanks again for getting back to me.
I am logged in. When creating a user the database populates, but when I send an input using the string in your last reply, (even when using an apikey) I get an 'ok' in the browser, but nothing appears in the database.
I can even add content to the dashboard, simple gauge etc, and I can see those in the database.
The only thing which may be off, is that I am using 32bit PHP and Apache, but the mysql is a 64bit install, and wondering if the drivers for the string may not like the combination. I do find it odd, but determined to get to the bottom of it.
Any thought on the 32bit thing?
regards Richard