/emoncms3/user/ directory is empty

I've tried to set up emoncms3 under both OSX and linux and I've run into the same issue on both.  I get everything working to the point of creating a new user.  However I get a file not found error and when I look in the file system, there aren't any files in the user directory.  (There is a readme in the directory but that doesn't really count.)

On OSX I used the zip file and on linux I used the git hub replication.  I really don't understand becase even when browse the files on git hub there isn't anything in the user directory so I have no idea how it is meant to work???

I'm hoping I'm missing something simple since I'd really like to get it up and running.

 

This is the error when I try and add a new user:

Not Found

The requested URL /emoncms3/user/create was not found on this server.


Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80
 
This is the error when I try and login.

Not Found

The requested URL /emoncms3/user/login was not found on this server.


Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80
TrystanLea's picture

Re: /emoncms3/user/ directory is empty

Hello, yes the user directory should be empty its for user uploaded files. The URL path is independent from the directory structure every part of the site is accessed though index.php the front side controller. Its a common application technique. There is more on that here: http://openenergymonitor.org/emon/node/312

The error you are getting is because you need to enable mod_rewrite, see step 4 here: http://openenergymonitor.org/emon/emoncms/installing-ubuntu-debian-pi

Mod_rewrite is what tells the server to translate  /emoncms3/user/create

into a paramater request to index.php of the form  /emoncms3/index.php?q=user/create

Hope that helps

Parlex's picture

Re: /emoncms3/user/ directory is empty

Thank you, that made it work.  I thought I had followed the instructions but I enabled write and missed editing the default file.

I'd had a look and done a search, but can't find the equivalent file on OSX.  I'm use MAMP from AppSolute software.  It is using apache.  Any help would be appreciated.

Comment viewing options

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