I am attempting to configure emoncms on Ubuntu 17.04. I have configured this system with a LAMP stack and cloned the git repo. When attempting to register a user or login I receive an undefined error message. Apparently the login.json or register.json can not be found when these calls are initiated. I have looked at other forum posts with no resolution. Since the emoncms/user/ directory does not exist; however I assume the PHP rewrite module will redirect this to the Modules/user directory. I am also under the assumption the .json files are created automatically. I have the PHP rewrite module loaded.
I have placed the following within the .htaccess file.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^index\.php$ - [L]
Options Indexes FollowSymLinks
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
# Skip rewrites for known files, folders and 4xx/5xx errors so we know if something is wrong
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !=/robots.txt
RewriteCond %{REQUEST_URI} !^/?docs.*$
RewriteCond %{REQUEST_URI} !^/?Lib.*$
RewriteCond %{REQUEST_URI} !^/?Modules.*$
RewriteCond %{REQUEST_URI} !^/?scripts.*$
RewriteCond %{REQUEST_URI} !^/?Theme.*$
RewriteCond %{ENV:REDIRECT_STATUS} ![45]0[0-9]
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>