Won't stream video

Forum for questions and support relating to the 1.24.x releases only.
stimburg
Posts: 22
Joined: Mon Feb 01, 2010 1:45 pm

Post by stimburg »

I'm in that IRC room but I just got the call that I have to be at work an hour earlier in the morning. So I need to get to bed very soon.

Thanks for your help and I will be on tomorrow if you are around.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay no problem. Thank you for the heads up :)
Paranoid
Posts: 129
Joined: Thu Feb 05, 2009 10:40 pm

Post by Paranoid »

The PATH_ZMS you have set is a relative path. You need to change it to:

Code: Select all

/cgi-bin/zms
to make it an absolute path.

It should then work.

NOTE: trying to fetch anything from 192.168.1.1/zm/cgi-bin/.. will still attempt to download the file because apache doesn't know its a cgi-bin. To change this behavior add the following below your current ScriptAlias definition:

Code: Select all

ScriptAlias /zm/cgi-bin/ "/var/www/htdocs/zm/cgi-bin/"
stimburg
Posts: 22
Joined: Mon Feb 01, 2010 1:45 pm

Post by stimburg »

Paranoid wrote:The PATH_ZMS you have set is a relative path. You need to change it to:

Code: Select all

/cgi-bin/zms
to make it an absolute path.

It should then work.

NOTE: trying to fetch anything from 192.168.1.1/zm/cgi-bin/.. will still attempt to download the file because apache doesn't know its a cgi-bin. To change this behavior add the following below your current ScriptAlias definition:

Code: Select all

ScriptAlias /zm/cgi-bin/ "/var/www/htdocs/zm/cgi-bin/"

I had a quick moment to try this and an interesting thing just happened. It runs the test file that doesn't have the file extension now. It displays the hello world message without a problem, but It still wants to download the ZMS file.
stimburg
Posts: 22
Joined: Mon Feb 01, 2010 1:45 pm

Post by stimburg »

Success!

I just changed it to the non-parsing header zms file because it wouldn't download and now video is streaming.

Thank you for your help.
BlankMan
Posts: 147
Joined: Tue Jan 19, 2010 2:53 am
Location: Milwaukee, WI USA

Post by BlankMan »

Ran into something similar due to apcupsd so I thought I'd post this, might help others.

When I first installed apcupsd years ago it created it's cgi files with the .cgi extension and I had to add the "AddHandler cgi-script .cgi" to my apache conf. that broke every cgi in the cgi-bin directory that didn't have the .cgi extension. My solution was to rename every cgi script with the .cgi extension. Time cosuming, had to change a lot of my code but it worked. Didn't like that solution.

When I installed ZM of course ZM's cgi scripts would not run and changing them to .cgi did not appear to be a solution and I didn't want to do that. So I attacked apache's conf instead. I config'd apache to now run any script in the cgi-bin directory and removed the AddHandler, this is the conf to do that:

Code: Select all

ScriptAlias /cgi-bin/ /srv/www/cgi-bin/
<Directory>
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
</Directory>
Locked