Kaltura Community Edition Server on OSX

9 replies [Last post]
Joined: 06/03/2009
Points: 8

It would seem to me from the dependencies that the Kaltura server should run fine on OSX. So I'm starting a thread here documenting my progress:

1.) Download http://www.apachefriends.org/en/xampp-macosx.html and drag the dmg contents to the application folder

2) Download the Katura server and install it into the XAMPP folder by dragging it into the htdocs folder inside the XAMPP folder. Rename the folder "kaltura" rather than "kaltura_v0.9".

3) Stop the built in Apache using the control panel "Sharing", and stop any other MySQL servers you may have running if you've got your own installed

4) Go to the XAMPP folder in Applications and launch XAMPP Control. Start Apache and MySQL

5) Go to http:localhost/kaltura/install/prepare_install.php - and note errors

6) Fix permissions using the script provided by Kaltura

7) Make sure you have MacPorts installed www.macports.org

8) Install ffmpeg using "sudo port install ffmpeg" from the command line... and wait :)

9) Check ffmpeg installed correctly by issuing "ffmpeg --version" at the command line

9) Now you will still see only the following error:
Could not run FFMPEG. FFMPEG is crucial for converting media to FlashVideo format. The system should be able to run the script located at:
/Applications/XAMPP/xamppfiles/htdocs/kaltura/kaltura/bin/i386/ffmpeg - please make sure apache can run that script.

So we need to fix the Kaltura script found at /Applications/XAMPP/xamppfiles/htdocs/kaltura/kaltura/bin/i386/ffmpeg

Somehow :)

Joined: 05/21/2009
Points: 2

david,

you can download ffmpeg elsewhere, and create a symbolic link to it...

shay

Joined: 06/03/2009
Points: 8

Follow instruction here to install memcached: http://readystate4.com/2008/08/19/installing-memcached-on-os-x-1054-leop...

memcached -d -m 24 -p 11211

Install ffmpeg with Macports

sudo port install ffmpeg

Replacing the ffmpeg file in the "ffmpeg-bin-0.5" folder with an alias to the ffmpeg file installed with MacPorts does the trick. So "cd" to the "ffmpeg-bin-0.5" directory, copy all the old i386 files into a folder somewhere and issue:

ln -s /opt/local/bin/ffmpeg ffmpeg

Install apache2 and php5 with MacPorts as well: http://2tbsp.com/content/install_apache_2_and_php_5_macports

So far got everything working except the right configuration for email...

Joined: 01/05/2009
Points: 1697

Thanks for sharing david!

What are the problems you're having with the email ?

Joined: 06/03/2009
Points: 8

Well email is not the only prob at the moment: see the recursive linkage problem.

As for mail, I modified the php.ini file to contain the following:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from =


; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail

commenting out the Win32 section makes no difference the install page still complains that mail is not configured properly.

Would be great to get this fixed ahead of the Open video conference :) Thanks

Joined: 02/22/2009
Points: 97

David,
can you do the following ?

telnet localhost 25

what do you get ? can you connect to SMTP on your localhost using telnet ?
if not, you probably don't have SMTP server installed (or it is installed but not running or listening to another port).

Gonen

Joined: 09/30/2011
Points: 3

Hi there,

I realize it's been some time since you posted the mac instructions and I've searched everywhere but I can't seem to find directions for the new Community Edition. I'm able to get to step 5 but get hung up on step "6) Fix permissions using the script provided by Kaltura" as there is no longer a script to fix the permissions issues.

Here's a portion of the error that i get in step 5.

Warning: fopen(install_log_05.10.2011_21.41.17) [function.fopen]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/kaltura/installer/OsUtils.class.php on line 83

Warning: fopen(install_log_05.10.2011_21.41.17) [function.fopen]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/kaltura/installer/OsUtils.class.php on line 76

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/kaltura/installer/OsUtils.class.php on line 77

Warning: fclose() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/kaltura/installer/OsUtils.class.php on line 78

Warning: file_put_contents(install_seq) [function.file-put-contents]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/kaltura/install.php on line 66

Warning: fopen(install_log_05.10.2011_21.41.17) [function.fopen]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/kaltura/installer/OsUtils.class.php on line 76

Any assistance or direction would be greatly appreciated.

Regards,
Wade

Joined: 01/05/2009
Points: 1697

Hi Mac and Windows support is currently not available.
There are few projects that have migrated Kaltura to work on Windows, but none for Mac.

Sorry for the bad news :\
May I ask what type of setup would you pursue with Mac? Are you using Kaltura locally on a private computer or as a Mac Server?

Thanks

Joined: 09/30/2011
Points: 3

Thank you for your response Kalturian.

I work at a University doing eLearning Development. We have an xServe that was purchased as a media server but have found the Quicktime streaming to be problematic. I was hoping that, as we move to moodle, Kultura would provide us with an appropriate solution using the same hardware. Do you know if people have had success using Parallels to install it? Any advice would be appreciated. Thanks again for the quick response.

Cheers!

Joined: 01/05/2009
Points: 1697

If you're looking for a stable production environment I would avoid using Mac/Parallels with Kaltura at this point.
A standard Linux (latest Ubuntu or CentOS) server would do the work.