'4096' //INI_ALL , 'memory_limit' => '2048M' //INI_ALL , 'error_reporting' => '6143' //INI_ALL , 'default_charset' => 'UTF-8' //INI_ALL , 'session.use_cookies' => 'on' //INI_ALL , 'session.use_only_cookies' => 'on' //INI_ALL , 'session.auto_start' => 'off' //INI_ALL , 'session.hash_function' => 'on' //INI_ALL , 'session.hash_bits_per_character' => '6' //INI_ALL , 'allow_url_fopen' => 'on' //INI_ALL , 'display_errors' => 'off' //INI_ALL , 'display_startup_errors' => 'off' //INI_ALL , 'log_errors' => 'off' //INI_ALL , 'session.cache_limiter' => '' //INI_ALL ); protected static $PHP_REQ = array( 'safe_mode' => 'off' , 'file_uploads' => 'on' , 'magic_quotes_runtime' => 'off' //INI_ALL , 'magic_quotes_gpc' => 'off' //INI_PER_DIR -- just for check ); public static function is_installed() { $appConf = new \Alchemy\Phrasea\Core\Configuration\ApplicationSpecification(); return $appConf->isSetup(); } public static function needUpgradeConfigurationFile() { return (is_file(__DIR__ . "/../../config/connexion.inc") && is_file(__DIR__ . "/../../config/config.inc")); } public function create_global_values(registryInterface &$registry, $datas = array()) { require(__DIR__ . "/../../lib/conf.d/_GV_template.inc"); if ($registry->is_set('GV_timezone')) date_default_timezone_set($registry->get('GV_timezone')); else date_default_timezone_set('Europe/Berlin'); $debug = $log_errors = false; $vars = array(); $error = false; $extra_conf = ''; foreach ($GV as $section) { foreach ($section['vars'] as $variable) { if (isset($datas[$variable['name']]) === false) { if (isset($variable['default'])) { if ($variable['type'] === 'boolean') { if ($variable['default'] === true) $datas[$variable['name']] = '1'; else $datas[$variable['name']] = '0'; } else { $datas[$variable['name']] = $variable['default']; } } } $type = 'string'; switch ($variable['type']) { case 'string': case 'password': $datas[$variable['name']] = (string) trim($datas[$variable['name']]); break; case 'enum': if ( ! isset($variable['available'])) { $variable['error'] = 'avalaibility'; } elseif ( ! is_array($variable['available'])) { $variable['error'] = 'avalaibility'; } elseif ( ! in_array($datas[$variable['name']], $variable['available'])) { $variable['error'] = 'avalaibility'; } break; case 'enum_multi': if ( ! isset($datas[$variable['name']])) $datas[$variable['name']] = null; $datas[$variable['name']] = ($datas[$variable['name']]); $type = 'array'; break; case 'boolean': $datas[$variable['name']] = strtolower($datas[$variable['name']]) === 'true' ? '1' : '0'; $type = 'boolean'; break; case 'integer': $datas[$variable['name']] = (int) trim($datas[$variable['name']]); $type = 'integer'; break; case 'text': $datas[$variable['name']] = trim($datas[$variable['name']]); break; case 'timezone': $datas[$variable['name']] = trim($datas[$variable['name']]); break; default: $error = true; break; } if (isset($variable['required']) && $variable['required'] === true && trim($datas[$variable['name']]) === '') $variable['error'] = 'required'; if (isset($variable['end_slash'])) { if ($variable['end_slash'] === true) { $datas[$variable['name']] = trim($datas[$variable['name']]) !== '' ? p4string::addEndSlash($datas[$variable['name']]) : ''; } if ($variable['end_slash'] === false) { $datas[$variable['name']] = trim($datas[$variable['name']]) !== '' ? p4string::delEndSlash($datas[$variable['name']]) : ''; } } if ($variable['name'] === 'GV_debug' && $datas[$variable['name']] === '1') $debug = true; if ($variable['name'] === 'GV_log_errors' && $datas[$variable['name']] === '1') $log_errors = true; if ($variable['type'] !== 'integer' && $variable['type'] !== 'boolean') $datas[$variable['name']] = $datas[$variable['name']]; $vars[$variable['name']] = array('value' => $datas[$variable['name']], 'type' => $type); } } if ($error === false) { foreach ($vars as $key => $values) { $registry->set($key, $values['value'], $values['type']); } return true; } return false; } public static function check_binaries(registryInterface $registry) { $finder = new \Symfony\Component\Process\ExecutableFinder(); $binaries = array( 'PHP CLI' => $registry->get('GV_cli', $finder->find('php')), 'ImageMagick (convert)' => $registry->get('GV_imagick', $finder->find('convert')), 'PDF 2 SWF' => $registry->get('GV_pdf2swf', $finder->find('pdf2swf')), 'Unoconv' => $registry->get('GV_unoconv', $finder->find('unoconv')), 'SWFextract' => $registry->get('GV_swf_extract', $finder->find('swfextract')), 'SWFrender' => $registry->get('GV_swf_render', $finder->find('swfrender')), 'MP4Box' => $registry->get('GV_mp4box', $finder->find('MP4Box')), 'xpdf (pdf2text)' => $registry->get('GV_pdftotext', $finder->find('pdftotext')), 'ImageMagick (composite)' => $registry->get('GV_pathcomposite', $finder->find('composite')), 'FFmpeg' => $registry->get('GV_ffmpeg', $finder->find('ffmpeg')), 'FFprobe' => $registry->get('GV_ffprobe', $finder->find('ffprobe')), 'phraseanet_indexer' => $finder->find('phraseanet_indexer'), ); $constraints = array(); foreach ($binaries as $name => $binary) { if (trim($binary) == '' || ( ! is_file($binary))) { $constraints[] = new Setup_Constraint( $name , false , sprintf('%s missing', $name) , false ); } else { if ( ! is_executable($binary)) { $constraints[] = new Setup_Constraint( $name , false , sprintf('%s not executeable', $name) , true ); } else { $constraints[] = new Setup_Constraint( $name , true , sprintf('%s OK', $name) , true ); } } } return new Setup_ConstraintsIterator($constraints); } public static function discover_binaries() { $finder = new \Symfony\Component\Process\ExecutableFinder(); return array( 'php' => array( 'name' => 'PHP CLI', 'binary' => $finder->find('php') ), 'phraseanet_indexer' => array( 'name' => 'Indexeur Phrasea', 'binary' => $finder->find('phraseanet_indexer') ), 'convert' => array( 'name' => 'ImageMagick (convert)', 'binary' => $finder->find('convert') ), 'composite' => array( 'name' => 'ImageMagick (composite)', 'binary' => $finder->find('composite') ), 'pdf2swf' => array( 'name' => 'PDF 2 SWF', 'binary' => $finder->find('pdf2swf') ), 'unoconv' => array( 'name' => 'Unoconv', 'binary' => $finder->find('unoconv') ), 'swfextract' => array( 'name' => 'SWFextract', 'binary' => $finder->find('swfextract') ), 'swfrender' => array( 'name' => 'SWFrender', 'binary' => $finder->find('swfrender') ), 'MP4Box' => array( 'name' => 'MP4Box', 'binary' => $finder->find('MP4Box') ), 'xpdf' => array( 'name' => 'XPDF', 'binary' => $finder->find('xpdf') ), 'ffmpeg' => array( 'name' => 'FFmpeg', 'binary' => $finder->find('ffmpeg') ), ); } public function check_mod_auth_token() { $registry = registry::get_instance(); if ($registry->get('GV_h264_streaming') !== true) { return; } ?>

mod_auth_token configuration

Apache Server mods avalaibility