Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Thanks for the reply. But with which parameters should I execute run_replace_root.php?
When I execute it with: php run_replace_root.php /kalturaCE I get the following error message:
<?
function replace_root($file_path, $server_root)
{
if (substr_count($file_path, "kae_generic_generic.xml") > 0)
return;
if (substr_count($file_path, "kae_generic_generic_no_thumbnail.xml") > 0)
return;
if (substr_count($file_path, "kse_samplekit.xml") > 0)
return;
if (substr_count($file_path, "se_wordpress.xml") > 0)
return;
if (substr_count($file_path, "se_drupal.xml") > 0)
return;
$data = file_get_contents($file_path);
//avoid replacement of static urls
$data = str_replace("kaltura.com/content", "kaltura.com_content", $data);
// replace /content with /SERVER_ROOT/content
$data = str_replace("/content/", "$server_root/content/", $data);
// restore static urls
$data = str_replace("kaltura.com_content", "kaltura.com/content", $data);
// save file
file_put_contents($file_path, $data);
}
deleting ../content/uiconf
PHP Fatal error: Call to undefined function replace_root() in /srv/www/htdocs/kalturaCE/install/run_replace_root.php on line 33
If I try to run the script run_replace_root.sh instead with parameter /kalturaCE I get the error message (several times):
find: /kalturaCE: No such file or directory.
Because I installed kaltura in the directory /srv/www/htdocs/kalturaCE I tried with the directory path as parameter for the script. Now I get the following error message (again serveral times):
find: /srv/www/htdocs/kalturaCE/: Permission denied
Although I execute the script as root.
you should execute also the script to fix permissions I guess
I don't remember exactly the script name, but it's also in the install folder
then run
php run_replace_root.php /srv/www/htdocs/kalturaCE which is tour new root path
don't worry I tried many tests before finding this one was the good one....
I executed fixperms.sh (to fix the permissions) and afterwards tried run_replace_root.sh and run_replace_root.php again. I still get the same error messages as described before.
exact same issue as oli
I just posted today about the same issue...
seems to be related to the server root (I installed mine in the folder /kalturaCE )
need to run the script run_replace_root.php in the install folder (or the sh script run_replace_root.sh)
> php run_replace_root.php /kalturaCE
it will modify the server root in some paths in some .xml files of the uiconf files