Hello Phil,
thanks for your great software.
Installation went fine on SUSE 9.1, apache 2.0.49, mysql 4.0.18. In
the /tmp/zmdc.log I see the following (everything seems OK) messages:
Server starting at 04/10/29 15:30:21
'zmc -d 0' started at 04/10/29 15:30:24
'zmc -d 0' starting at 04/10/29 15:30:24, pid = 23720
'zmfilter.pl' started at 04/10/29 15:30:24
'zmfilter.pl' starting at 04/10/29 15:30:24, pid = 23725
'zmaudit.pl -d 900 -y' started at 04/10/29 15:30:25
'zmaudit.pl -d 900 -y' starting at 04/10/29 15:30:25, pid = 23730
'zmwatch.pl' started at 04/10/29 15:30:25
'zmwatch.pl' starting at 04/10/29 15:30:25, pid = 23737
'zmupdate.pl -c' started at 04/10/29 15:30:26
'zmupdate.pl -c' starting at 04/10/29 15:30:26, pid = 23742
BUT: I have no video in the video window. When I right-click in the video-frame and copy the url in a browser (Netscape or Konqueror)
(http://localhost/cgi-bin/zms?mode=jpeg& ... 0&maxfps=5)
I get the following message from my apache server:
------------------------------------------------------------------------------
Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: zms
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Fri Oct 29 15:35:30 2004
Apache/2.0.49 (Linux/SuSE)
------------------------------------------------------------------------------------
I tried with and without cambozola. Is it an apache problem? Or a zms compiling problem?
Can you povide any help to me? I would appreciate to use that software!
Best regards from Germany
Andreas Ottburg
REMARKS:
1.) xawtv -c /dev/video0 works of course
2.) I tried zms and nph-zms
3.) apache model is "prefork"
Streaming problem with zms
more hints on my problem
...still working on my problem:
1.) as I read in the forum I checked the zms in command-line mode in the bash:
/srv/www/cgi-bin/zms
------------------------------------------------------
.....?
c$???(8??&??$TX1?sJ@?84r
4V??T?Ooz=0??YI£e??????c??[rT]n>j3?R(4;?d`??SU?q<;?Fa{????`$_??.awq??@|?&
?q Pz?????9NE;???z??2\W??iw{i?HA?&M??=jF)???d?
--ZoneMinderFrame
------------------------------------------------------
I see lots of ASCI signs scrolling in the console screen, that shows that zms is working (am I right?). If I'm right the missing video output seems to be a apache problem?
2.) If I go to "settings" in a video window (without webcam picture) I get the (normal) setting dialog. If I put anything in or leave it clean an say "save" then I get the following message:
------------------------------------------------------
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' Contrast = , Hue = , Colour = where Id = '1'' at line 1
-----------------------------------------------------
additional questions:
a.) how can I check what is wrong in my mysql database zm? Or in general: How can I check the functionality of the mysql database?
b.) general question: what is to be set in the configure options for --with-webuser --with-webgroup
my present setting is:
------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=andreas --with-webgroup=users
------------------------------------------------------------------------
should I use
... --with-webuser=wwwrun --with-webgroup=www
Best regards
Andreas Ottburg
1.) as I read in the forum I checked the zms in command-line mode in the bash:
/srv/www/cgi-bin/zms
------------------------------------------------------
.....?
c$???(8??&??$TX1?sJ@?84r
4V??T?Ooz=0??YI£e??????c??[rT]n>j3?R(4;?d`??SU?q<;?Fa{????`$_??.awq??@|?&
?q Pz?????9NE;???z??2\W??iw{i?HA?&M??=jF)???d?
--ZoneMinderFrame
------------------------------------------------------
I see lots of ASCI signs scrolling in the console screen, that shows that zms is working (am I right?). If I'm right the missing video output seems to be a apache problem?
2.) If I go to "settings" in a video window (without webcam picture) I get the (normal) setting dialog. If I put anything in or leave it clean an say "save" then I get the following message:
------------------------------------------------------
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' Contrast = , Hue = , Colour = where Id = '1'' at line 1
-----------------------------------------------------
additional questions:
a.) how can I check what is wrong in my mysql database zm? Or in general: How can I check the functionality of the mysql database?
b.) general question: what is to be set in the configure options for --with-webuser --with-webgroup
my present setting is:
------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=andreas --with-webgroup=users
------------------------------------------------------------------------
should I use
... --with-webuser=wwwrun --with-webgroup=www
Best regards
Andreas Ottburg
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Hi Andreas,
Your zms problems certainly sound web config related. I think other SUSE users generally use wwwrun and www for the web user and group as you have suggested. It is possible that with your current settings apache does not have sufficient privileges to run zms. I assume the cgi-bin directory you specified is where apache is looking for scripts as well.
I'm not so sure about your second problem. It's possible that it is related so if you can crack the zms one and it still remains I'll have a closer look.
Phil,
Your zms problems certainly sound web config related. I think other SUSE users generally use wwwrun and www for the web user and group as you have suggested. It is possible that with your current settings apache does not have sufficient privileges to run zms. I assume the cgi-bin directory you specified is where apache is looking for scripts as well.
I'm not so sure about your second problem. It's possible that it is related so if you can crack the zms one and it still remains I'll have a closer look.
Phil,
Hi Phil,
my problem is NEARLY solved.
What I did is the following.
--------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
--------------------------------------------------------------
what I realized then is that I could not start the start-script anymore. I read in the forum and saw a hint to change the permissions on the log files. I did it like that:
-------------------------------------------------------------
cd /tmp or for me: cd /srv/www/htdocs/zm/temp
chown wwwrun:www zm*
chmod 777 zm*
-------------------------------------------------------------
Now I can start the start script (wich I modified a bit for SUSE)
When I start Zoneminder and switch to my video device I see still a blank
video BUT if I right-click inside and say "open in a new browser" I see my video very clear.
I'm working on the final solution! Any suggestions from your side?
Vielen Dank
Andreas
my problem is NEARLY solved.
What I did is the following.
--------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
--------------------------------------------------------------
what I realized then is that I could not start the start-script anymore. I read in the forum and saw a hint to change the permissions on the log files. I did it like that:
-------------------------------------------------------------
cd /tmp or for me: cd /srv/www/htdocs/zm/temp
chown wwwrun:www zm*
chmod 777 zm*
-------------------------------------------------------------
Now I can start the start script (wich I modified a bit for SUSE)
When I start Zoneminder and switch to my video device I see still a blank
video BUT if I right-click inside and say "open in a new browser" I see my video very clear.
I'm working on the final solution! Any suggestions from your side?
Vielen Dank
Andreas
Hi all,
I would like to share some expiriencies on my SUSE 9.1 installation
this worked for me:
--------------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
perl ./zmconfig.pl
...
Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [wwwrun] : wwwrun
...
Unprivileged DB user name, need just select privilege. (alphanumeric) [andreas] : andreas
...
Web path to zms streaming server (relative/path/to/somewhere) [../cgi-bin/zms] : ../cgi-bin/zms
...
make
make install
cd /tmp #all log files these permissions!
chown wwwrun:www zm*
chmod 666 zm*
#SUSE sets "bad" permissions on video devices:
#crw------- 1 andreas video 81, 0 2004-10-28 22:57 video0
#thats why the following must be done:
cd /dev
chmod 666 video*
#change zm start script for SUSE, and copy it into:
cp zm /etc/init.d/zm
#make a link into /usr/sbin
ln -s zm /usr/sbin/rczm
#now you can simply start all damons as root:
rczm start
#hint: watch the logs:
/tmp/zmdc.log or for me: /srv/www/htdocs/zm/temp:
--------------------------------------------------------------------------------
Now I can start and stop Zoneminder from my webbrowser and may see
a picture in the video window, but only in "STILLS" mode, but i'm working on it!
Thanks Phil
I would like to share some expiriencies on my SUSE 9.1 installation
this worked for me:
--------------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
perl ./zmconfig.pl
...
Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [wwwrun] : wwwrun
...
Unprivileged DB user name, need just select privilege. (alphanumeric) [andreas] : andreas
...
Web path to zms streaming server (relative/path/to/somewhere) [../cgi-bin/zms] : ../cgi-bin/zms
...
make
make install
cd /tmp #all log files these permissions!
chown wwwrun:www zm*
chmod 666 zm*
#SUSE sets "bad" permissions on video devices:
#crw------- 1 andreas video 81, 0 2004-10-28 22:57 video0
#thats why the following must be done:
cd /dev
chmod 666 video*
#change zm start script for SUSE, and copy it into:
cp zm /etc/init.d/zm
#make a link into /usr/sbin
ln -s zm /usr/sbin/rczm
#now you can simply start all damons as root:
rczm start
#hint: watch the logs:
/tmp/zmdc.log or for me: /srv/www/htdocs/zm/temp:
--------------------------------------------------------------------------------
Now I can start and stop Zoneminder from my webbrowser and may see
a picture in the video window, but only in "STILLS" mode, but i'm working on it!
Thanks Phil
Hi all,
I would like to share some expiriencies on my SUSE 9.1 installation
this worked for me:
--------------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
perl ./zmconfig.pl
...
Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [wwwrun] : wwwrun
...
Unprivileged DB user name, need just select privilege. (alphanumeric) [andreas] : andreas
...
Web path to zms streaming server (relative/path/to/somewhere) [../cgi-bin/zms] : ../cgi-bin/zms
...
make
make install
cd /tmp #all log files these permissions!
chown wwwrun:www zm*
chmod 666 zm*
#SUSE sets "bad" permissions on video devices:
#crw------- 1 andreas video 81, 0 2004-10-28 22:57 video0
#thats why the following must be done:
cd /dev
chmod 666 video*
#change zm start script for SUSE, and copy it into:
cp zm /etc/init.d/zm
#make a link into /usr/sbin
ln -s zm /usr/sbin/rczm
#now you can simply start all damons as root:
rczm start
#hint: watch the logs:
/tmp/zmdc.log or for me: /srv/www/htdocs/zm/temp:
--------------------------------------------------------------------------------
Now I can start and stop Zoneminder from my webbrowser and may see
a picture in the video window, but only in "STILLS" mode, but i'm working on it!
Thanks Phil
I would like to share some expiriencies on my SUSE 9.1 installation
this worked for me:
--------------------------------------------------------------------------------
./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=no --with-webuser=wwwrun --with-webgroup=www
perl ./zmconfig.pl
...
Privileged DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [wwwrun] : wwwrun
...
Unprivileged DB user name, need just select privilege. (alphanumeric) [andreas] : andreas
...
Web path to zms streaming server (relative/path/to/somewhere) [../cgi-bin/zms] : ../cgi-bin/zms
...
make
make install
cd /tmp #all log files these permissions!
chown wwwrun:www zm*
chmod 666 zm*
#SUSE sets "bad" permissions on video devices:
#crw------- 1 andreas video 81, 0 2004-10-28 22:57 video0
#thats why the following must be done:
cd /dev
chmod 666 video*
#change zm start script for SUSE, and copy it into:
cp zm /etc/init.d/zm
#make a link into /usr/sbin
ln -s zm /usr/sbin/rczm
#now you can simply start all damons as root:
rczm start
#hint: watch the logs:
/tmp/zmdc.log or for me: /srv/www/htdocs/zm/temp:
--------------------------------------------------------------------------------
Now I can start and stop Zoneminder from my webbrowser and may see
a picture in the video window, but only in "STILLS" mode, but i'm working on it!
Thanks Phil