Red5 and Apache configuration - help needed

Author Message

Sandra Parente

Monday 07 January 2008 8:35:04 am

We have a local server with Debian, Red5 and php 5.2.0. We have installed eZ 4.0 and eZ Flow extension without problems. Red5 works fine, we can record and publish recorded videos from Tomcat. We followed the tutorial but also some useful tips of other users.
This is my apache conf of virtual host:

# Red5 Streams sharing
<VirtualHost 192.168.3.106:80>
    <Directory /usr/lib/red5/webapps/test/streams>
      Options FollowSymLinks
      AllowOverride None
      Allow From All
    </Directory>
  DocumentRoot /usr/lib/red5/webapps/test/streams
  ServerName video.local.lan
</VirtualHost>

The virtual server works, we can see and use the stream demos.

Then we have set the Record Live Video:

Name: Record Live Video
Stream server: rtmp://video.local.lan:1935/test/
File server: http://video.local.lan

When we publish it, the connection with the stream server looks OK since we can see the list of the Recorded videos, but the broadcaster.swf is not displayed, and if we click on one of the Recorded videos, no streaming.swf is displayed.
On our server Red5 cannot be opened on localhost, that's why we cannot set the Stream server and the File server with localhost as shown in the setup guide.

The virtual host configuration for eZ 4.0 is the standard:

<VirtualHost 192.168.3.106:80>
    <Directory /var/www/local/>
     Options FollowSymLinks
     AllowOverride None
    </Directory>

<IfModule mod_php5.c>
   php_admin_flag safe_mode Off
   php_admin_value register_globals 0
   php_value magic_quotes_gpc 0
   php_value magic_quotes_runtime 0
   php_value allow_call_time_pass_reference 0
   </IfModule>
   DirectoryIndex index.php
  <IfModule mod_rewrite.c>
  RewriteEngine On
  Rewriterule ^/var/storage/.* - [L]
  Rewriterule ^/var/[^/]+/storage/.* - [L]
  RewriteRule ^/var/cache/texttoimage/.* - [L]
  RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
  Rewriterule ^/design/[^/]+/(stylesheets|images|flash|javascript)/.* - [L]
  Rewriterule ^/share/icons/.* - [L]
  Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
  Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
  RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
  RewriteRule ^/favicon\.ico - [L]
  RewriteRule ^/robots\.txt - [L]
  # Uncomment the following lines when using popup style debug.
  # RewriteRule ^/var/cache/debug\.html.* - [L]
  # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
  RewriteRule .* /index.php
  </IfModule>
DocumentRoot /var/www/local/
  ServerName www.local.lan
  ServerAlias admin.local.lan
  ServerAlias eng.www.local.lan
ErrorLog /var/log/apache2/local.lan-error_log
CustomLog /var/log/apache2/local.lan-access_log combined
</VirtualHost>

Can someone explain us what is wrong?
Cheers.

Sandra Parente
www.netbliss.it

Sandra Parente

Friday 11 January 2008 1:47:20 am

This is the solution.
For ezFlow it is necessary to modify

 
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]

specifying the flash directory this way:

 Rewriterule ^/extension/[^/]+/design/[^/]+/(flash|stylesheets|images|javascripts?)/.* - [L]

I think you have to point out this in the eZFlow setup guide.

Sandra Parente
www.netbliss.it

Trent Jurewicz

Wednesday 23 January 2008 3:42:10 pm

Sandra,

I have made the modification specified below, but apache still won't serve the .swf files. Any additional thoughts?

Thanks,
Trent

Sandra Parente

Thursday 24 January 2008 4:13:41 am

Are you sure the stream server is working? If you connect to the page of live video recording in eZ Flow can you see the list of the demo videos in Red5? How did you set the Record Live Video?

Remember that another important requirement for eZ Publish 4 and eZ Flow is the installation of eZ Components, which is quite simple if you follow the instructions from http://ezcomponents.org/docs/install and use PEAR installer.

Hope this helps.
Sandra

Sandra Parente
www.netbliss.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.