Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212150 - www-misc/zoneminder-1.23.1 - some apps are using wrong paths
Summary: www-misc/zoneminder-1.23.1 - some apps are using wrong paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 02:00 UTC by Ron
Modified: 2008-05-06 10:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron 2008-03-03 02:00:15 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-03 08:09:16 UTC
(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?
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-03-07 09:28:07 UTC
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 ...
Comment 3 Gunnar Wrobel (RETIRED) gentoo-dev 2008-05-06 10:06:18 UTC
(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.