This is an old revision of the document!
https://dietpi.com/#downloadinfo
“emoncms 404 Not Found: Is modrewrite configured on your system?”
Open /etc/lighttpd/lighttpd.conf with a text editor and enable the rewrite module by uncommenting it (remove the #). It will then look something like this:
server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_rewrite", )
Then add the rewrite regular expression to the same file; https://tech.borpin.co.uk/2018/10/13/emoncms-on-dietpi/
url.rewrite-if-not-file = ( "^/emoncms/([^?]*)$" => "/emoncms/index.php?q=$1", "^/emoncms/([^?]*)\?(.*)$" => "/emoncms/index.php?q=$1&$2" )
sudo service lighttpd restart .
you can resolve this by the steps following
start/stop mysql by using service mysqld start/stop/restart instead of service mysql start/stop/restart
make sure you have the right password for mysql user - root, if no, please reset password by following step 3, else, skip step 3
edit mysql config file, usually /etc/my.cny, add skip-grant-tables under [mysqld], then restart mysql, now you can go into mysql without password, then reset password by using
update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost'; flush privileges;