Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 212150
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Web Application Packages Maintainers <web-apps@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ron <root@liwave.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 212150 depends on: Show dependency tree
Bug 212150 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-03 02:00 0000
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 From Jakub Moc (RETIRED) 2008-03-03 08:09:16 0000 -------
(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 From Benedikt Böhm 2008-03-07 09:28:07 0000 -------
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 From Gunnar Wrobel 2008-05-06 10:06:18 0000 -------
(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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug