For the ebuild zoneminder-1.22.2, file '...files/postinstall-2.txt' = post installation instructions contains an error - in the line "grant....." the database name should be "zm", not "zoneminder". And the content is presented in a confusing way. ================================== This is the current content of 'postinstall-2.txt': 0. If this is a new installation, you will need to create a database for ZM to use. Execute the following: cd /usr/share/${PN} mysql mysql < db/zm_create.sql mysql mysql > grant select,insert,update,delete on zoneminder.* to '<username>'@localhost identified by '<password>'; > quit mysqladmin reload 1. Edit /etc/zm.conf: ZM_PATH_BUILD => /usr/share/${PN} ZM_PATH_WEB => ${MY_INSTALLDIR} ZM_PATH_CGI => ${VHOST_CGIBINDIR} Also set your database settings. 2. Start the zoneminder daemon: /etc/init.d/zoneminder stop 3. Login: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/zm.php Default username/password are admin/admin ----------------------------------------------------------- I propose this text : 0. If this is a new installation, you will need to create a database for zoneminder to use. Execute the following: $ cd /usr/share/${PN} $ mysql -p < db/zm_create.sql Next login to the database and grant rights to database user that zoneminder will use.Note: <username> and <password> has to be replaced by the DB user/password, that zoneminder will use.: $ mysql -p mysql> grant select,insert,update,delete on zm.* to <username>'@localhost identified by '<password>'; mysql> quit $ mysqladmin -p reload 1. Edit the file '/etc/zm.conf': ZM_PATH_BUILD => /usr/share/${PN} ZM_PATH_WEB => ${MY_INSTALLDIR} ZM_PATH_CGI => ${VHOST_CGIBINDIR} Also set your database <username> and <password>. 2. Start the zoneminder daemon: # /etc/init.d/zoneminder stop # /etc/init.d/zoneminder start 3. Login: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/zm.php If your server is accessible on the internet, it is strongly recommended to set your zoneminder installation to authorized access only (set this in 'options' in the zoneminder console). Default username/password are admin/admin.
Mea culpa. When trying to reproduce the bug for geting more info for bugzilla, it suddenly works :-/ . It did not before, I spent few days in searching for the cause before... OK, better that it works than not. :)