Last night I went through the procedure for installing emoncms v8 on Ubuntu / Debian linux on my Pi starting with a fresh Raspbian build set to boot and run off a USB HDD.
I navigated to http://localhost/emoncms using the epiphany browser and saw the emoncms landing page. I entered username and password as defined in /var/www/emoncms/settings.php and pressed enter and the page went white and now I can't get anything to display when navigating to the localhost/emoncms url.
I did have 'remember password' box checked, but went to the browser settings and cleared personal data and history and de-selected remember passwords in the epiphany settings, but no change.
Revisiting the setup procedure I discovered that I missed changing the second AllowOverride All in the ./sites-available/default file, but fixed that and restarted the machine and still no change.
Any thoughts on where I may have gone wrong? I tried installing the chromium browser to try but ran into the 'chromium cannot run as root' issue and gave up for the night.
Thanks!
Re: emoncms on R Pi Raspbian build - saw local landing page once, now it's blank white
I suppose a start is to see if apache is running, and what errors, if any are showing in the Apache log.
(or wherever your apache logs are located - I'm only familiar with Raspbian)
Can you get access via your systems private IP address instead of Localhost? for example;
http://192.168.1.3/emoncms
Paul
Re: emoncms on R Pi Raspbian build - saw local landing page once, now it's blank white
Got it, error log pointed me to line 10 of settings.php and I was missing a semicolon. Thanks! Gotta remember those helpful log files.
I was able to see the page again and register and it seems to be OK so far.
Next is to work with getting the serial monitor doing its job of feeding data in, I found a couple example scripts for that on the forums that look good. I'm using an Envi cc128 for now, will probably get the better device eventually.
Re: emoncms on R Pi Raspbian build - saw local landing page once, now it's blank white
Edit - I may need to give up on hosting my own server for now and just start over with the install when I have time to mess with it again. I did some reading up on LAMP server stack and will really have to do my homework before digging into hosting the thing locally, at least if I want to have a decent understanding of how all the code is working such that I can have a chance in heck of troubleshooting things. The php stuff is just getting me too bogged down. For now I will focus on getting the perl script running to post a data feed from the Current Cost meter to emoncms.org. Should be much more straightforward to start that way.
Well I'm stuck again, I broke stuff while trying to make it better...
I realized that before writing any real data I should move my data repository locations and the mysql database to the bigger partition since I installed everything initially on sda1 (/var/lib). I made folders at /home/pi/data on sda3, changed the corresponding lines in /var/www/emoncms/settings.php (lines 37 etc) reinstalled mysql (client, server and common b/c the server was throwing an error during startup after moving some files).
After a lot of fooling around (purging mysql client, server and common to get a clean install in the /sda3 partition) I seem to be most of the way back to where I was yesterday, but I'm getting a blank page on login to http://localhost/emoncms again. The var/log/apache2/error.log file says
File does not exist: /var/www/faivon.ico.
This is apparently the file for the browser address bar image so its absence indicates I messed something up.
Are there log files for emoncms I can look at for additional information?
I re-setup the mysql database name and user info the same as before and I don't think mysql is putting files in /var/www anyways so not sure the reinstalling mysql is related or not.
I tried updating emoncms with the hopes it would restore any lost files but that didn't change things.