Page 1 of 1

Ubuntu 5.04 - No Streaming

Posted: Sat Oct 01, 2005 1:04 am
by tommysbeast
Hi Guys,

This morning I have rebuilt by FC3 box to run Ubuntu 5.04 instead.
It seems to me that I have an error in my my apache2 configuration because I am unable to see live images from my camera (pwc mod).

Captured images are fine, but no cigar with the live stuff whether or not I use cambozola or not. I have simplified just to use Jpeg but still not working.

This is the relevant error in my httpd error log:

[Sat Oct 01 10:46:36 2005] [notice] Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4.1 configured -- resuming normal operations
Error, unable to authenticate user
[Sat Oct 01 10:47:05 2005] [error] [client 192.168.1.75] Premature end of script headers: zms, referer: http://192.168.1.5/index.php?view=watch ... 0&control=
Error, unable to authenticate user
Error, unable to authenticate user
[Sat Oct 01 10:49:04 2005] [error] [client 192.168.1.75] Premature end of script headers: zms, referer: http://192.168.1.5/index.php?view=watch ... 0&control=

This carries on and on..

Anyway, I thought it was something to do with cgi permission, or the web server couldnt find the cgi-bin directory, so I copied the zms binaries to /var/www/cgi-bin (my server root is /var/www) . I chowned and chgrp'd them to my web user (www-data) and also added to following to my apache2.conf:

<Directory /var/www/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>


Still the error above occurs.

I am wondering if I am experiencing an security issue with Apache2 or a Ubuntu-specific issue.

Does anyone have any ideas about this?

Thanks

additional

Posted: Sat Oct 01, 2005 1:20 am
by tommysbeast
Sorry, I neglected to mention it was Zoneminder zm-1.21.3.

Thanks

Posted: Sat Oct 01, 2005 2:18 am
by cordel
Were there any warnings when you ran the configure script?

Posted: Sat Oct 01, 2005 6:15 am
by tommysbeast
Hi Cordel,

Yes, here are the warnings:

root@Rimmer:/home/tommy/files/zm-1.21.3 # ./configure --with-mysql=/var/lib/mysql --with-webdir=/var/www --with-cgidir=/var/www/cgi-bin --with-webuser=www-data --with-webgroup=www-data > configurescript
configure: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg build directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. A normal
install of ffmpeg only installs the applications and not the libraries or headers necessary
to link to so this will probably be a local or temporary directory.
e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
configure: WARNING: libcrypto.a is required for authenticated streaming
configure: WARNING: libpcre.a may be required for some remote/network camera support
configure: WARNING: libavcodec.a is required for MPEG streaming
configure: WARNING: libavformat.a is required for MPEG streaming
configure: WARNING: libmp3lame.a may be required if ffmpeg was built with it


Thanks

Hoary Hedgehog Now working!

Posted: Sat Oct 01, 2005 1:04 pm
by tommysbeast
Hi Everyone,

After changing authentication to plain instead of hashed, live streams are now visible.

So zoneminder is performing fabulously on Ubuntu Hoary 5.04 using apache2, php4, mysql4.0 and my Logitech 3000 camera.

Zoneminder is GREAT software!

Tommy

Posted: Sat Oct 01, 2005 5:21 pm
by cordel
tommysbeast wrote: configure: WARNING: libcrypto.a is required for authenticated streaming
configure: WARNING: libpcre.a may be required for some remote/network camera support
I'd clear these two up.
Libcrypto.a is provided by openssl and this what is preventing you from logging in.
pcre-devel will take care of the other warning if you have pcre tools installed it helps with preformance a bit but is not required.
Regards,
Cordel

libcrypto.a

Posted: Sat Oct 01, 2005 10:49 pm
by tommysbeast
Hi Cordel,

Thanks for your help.

I have libcrypto.a installed via the libssl-dev package. I can locate this file in /usr/lib/libcrypto.a

Any ideas why zoneminder would not be able to find it? should i symlink it to somewhere else?

Thanks

Posted: Sun Oct 02, 2005 12:46 am
by cordel
It should pick it up right where it is. Try running ldconfig and see if it is able to pick it up after that.

sweet

Posted: Thu Oct 06, 2005 9:24 am
by tommysbeast
That did the trick.

Thanks again.