diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..f4b48cd00c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/nbproject/private/ +/videos/ \ No newline at end of file diff --git a/install/index.php b/install/index.php index 5f9cac332f..c5521889ee 100644 --- a/install/index.php +++ b/install/index.php @@ -1,447 +1,462 @@ -= 0) { - return true; - } else { - return false; - } -} - -function modRewriteEnabled() { - return in_array('mod_rewrite', apache_get_modules()); -} - -function isFFMPEG() { - return trim(shell_exec('which ffmpeg')); -} - -function getPathToApplication() { - return str_replace("install/index.php", "", $_SERVER["SCRIPT_FILENAME"]); -} - -function getURLToApplication() { - $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; - $url = str_replace("install/index.php", "", $url); - return $url; -} - -//max_execution_time = 7200 -function check_max_execution_time() { - $max_size = ini_get('max_execution_time'); - $recomended_size = 7200; - if ($recomended_size > $max_size) { - return false; - } else { - return true; - } -} - -//post_max_size = 100M -function check_post_max_size() { - $max_size = parse_size(ini_get('post_max_size')); - $recomended_size = parse_size('100M'); - if ($recomended_size > $max_size) { - return false; - } else { - return true; - } -} - -//upload_max_filesize = 100M -function check_upload_max_filesize() { - $max_size = parse_size(ini_get('upload_max_filesize')); - $recomended_size = parse_size('100M'); - if ($recomended_size > $max_size) { - return false; - } else { - return true; - } -} - -//memory_limit = 100M -function check_memory_limit() { - $max_size = parse_size(ini_get('memory_limit')); - $recomended_size = parse_size('100M'); - if ($recomended_size > $max_size) { - return false; - } else { - return true; - } -} - -//var_dump($_SERVER);exit; -?> - - -
-install
directory to continue
- a2enmod rewrite
/etc/init.d/apache2 restart
- sudo add-apt-repository ppa:mc3man/trusty-media
-
- Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
- More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
- Press [ENTER] to continue or ctrl-c to cancel adding it
-
-
- sudo apt-get update
- sudo apt-get dist-upgrade
-
- sudo apt-get install ffmpeg
-
- sudo chmod -R 777 /var/www/[YouPHPTube Dir]/videos
- install
directory to continue
+ a2enmod rewrite
/etc/init.d/apache2 restart
+ sudo add-apt-repository ppa:mc3man/trusty-media
+
+ Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
+ More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
+ Press [ENTER] to continue or ctrl-c to cancel adding it
+
+
+ sudo apt-get update
+ sudo apt-get dist-upgrade
+
+ sudo apt-get install ffmpeg
+
+ sudo mkdir /var/www/[YouPHPTube Dir]/videos
+ sudo chmod -R 777 /var/www/[YouPHPTube Dir]/videos
+ - | - | - |
---|
';
- echo htmlentities($code);
- ?>
+ | + | + |
---|
';
+ echo htmlentities($code);
+ ?>