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.

eZ debug

Timing: Jan 18 2025 04:10:22
Script start
Timing: Jan 18 2025 04:10:22
Module start 'layout'
Timing: Jan 18 2025 04:10:22
Module start 'content'
Timing: Jan 18 2025 04:10:22
Module end 'content'
Timing: Jan 18 2025 04:10:22
Script end

Main resources:

Total runtime0.1401 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2109152.6406
Module start 'layout' 0.00660.0038 741.851639.4922
Module start 'content' 0.01030.1284 781.3438563.4453
Module end 'content' 0.13870.0014 1,344.789116.1172
Script end 0.1401  1,360.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.4897160.0002
Check MTime0.00141.0038160.0001
Mysql Total
Database connection0.00100.731510.0010
Mysqli_queries0.079756.9065620.0013
Looping result0.00060.4368600.0000
Template Total0.106676.120.0533
Template load0.00231.630920.0011
Template processing0.104374.410220.0521
Template load and register function0.00010.100610.0001
states
state_id_array0.00090.644610.0009
state_identifier_array0.00090.612320.0004
Override
Cache load0.00191.3839370.0001
Sytem overhead
Fetch class attribute can translate value0.00060.434120.0003
Fetch class attribute name0.00130.936250.0003
XML
Image XML parsing0.00060.436020.0003
class_abstraction
Instantiating content class attribute0.00000.013670.0000
General
dbfile0.00070.5003160.0000
String conversion0.00000.007340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs