1. Permissions are incorrectly set on /var/run/zm. Process runs under "apache" user, but the owner is root.root, with rights set to rwxr-xr-x. This causes zm to fail to start with an error at line 167 in zmdc.pl. I changed the owner to root.apache and set the permissions to rwxrwxr-x. 2. The install sets ups two paths for the zoneminder. One path is /usr/share/webapps/zoneminder/1.23.1/htdocs the other is /var/www/localhost/htdocs/zoneminder. Some of the program functions use one path, while some use the other. This causes functions like saving jpeg images or generating movies to fail. As a work around, I deleted the folders /usr/share/webapps/zoneminder/1.23.1/htdocs/events and /usr/share/webapps/zoneminder/1.23.1/htdocs/images and created symbolic links in /usr/share/webapps/zoneminder/1.23.1/htdocs to /var/www/localhost/htdocs/zoneminder/events and /var/www/localhost/htdocs/zoneminder/images. This restored full functionally. 3. The permissions for the files and directories in /var/www/localhost/htdocs/zoneminder where also set to root.root as the owner. I changed them to apache.apache I installed the zoneminder-1.23.1 package as a new install on new server. Perhaps these issues do not appear when upgrading from earlier versions. Reproducible: Always
(In reply to comment #0) > 1. Permissions are incorrectly set on /var/run/zm. You hit a portage bug, has nothing to do with the ebuild which sets the permissions to apache:apache > 2. The install sets ups two paths for the zoneminder. That's how all webapps work on Gentoo and none of them has any trouble with that; nothing should use the master copy in /usr/share/webapps/${PN}/${PVR}. Symlinking is totally not any solution, it will break horribly w/ USE=vhosts. So, identifying why things get saved to a wrong place is needed instead. > 3. The permissions for the files and directories in > /var/www/localhost/htdocs/zoneminder where also set to root.root as the owner. > I changed them to apache.apache Erm, of course. The *whole* website is totally NOT expected to be webserver-writeable. The ebuild sets htdocs/{events,images,sound} to be writeable by the webserver. Which additional directories *must* to be writeable by the webserver?
zoneminder does not support installation in multiple vhosts afaics, but since we do not know to which vhost you install it, you have to change /etc/zm.conf yourself i guess ...
(In reply to comment #2) > zoneminder does not support installation in multiple vhosts afaics, but since > we do not know to which vhost you install it, you have to change /etc/zm.conf > yourself i guess ... > Which is why it should not use the webapp eclass. webapp-config can actually only do one thing: install webapps into vhosts. As zoneminder does not support such an installation type we shouldn't use the webapp eclass here. I don't know my fixes to the ebuild are really the right way of doing it (it is installing in /var/www/zoneminder now) but I'm happy about feedback. Marking as fixed for now.