index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /setup/composertest.php |
-rw-r--r-- | setup/composertest.php | 68 |
diff --git a/setup/composertest.php b/setup/composertest.php new file mode 100644 index 0000000..b8a5663 --- /dev/null +++ b/setup/composertest.php @@ -0,0 +1,68 @@ +<?php + +@set_time_limit(0); +ini_set('memory_limit', '64M'); + +define('IN_FS', 1); +define('BASEDIR', dirname(__FILE__)); +define('APPLICATION_PATH', dirname(BASEDIR)); +define('OBJECTS_PATH', APPLICATION_PATH . '/includes'); +define('TEMPLATE_FOLDER', BASEDIR . '/templates/'); + +require_once OBJECTS_PATH.'/i18n.inc.php'; +class user{var $infos=array();}; class project{var $id=0;}; +$user=new user; $proj=new project; +load_translations(); + +# no caching to prevent old pages if user goes back and forth during install +header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); +header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); + +# Step 1 and 2 of composer install now working also with SAFE_MODE enabled in php5.3.* +#if(ini_get('safe_mode') == 1){ +# $composerit = 'composerit.pl'; // try it with perl scripts +#}else{ + $composerit = 'composerit.php'; // try it with php +#} +?> +<!DOCTYPE html> +<html> +<head> + <meta charset='utf-8'> + <title>Flyspray Install - Third Party Packages needed</title> + <link media="screen" href="../themes/CleanFS/theme.css" rel="stylesheet" type="text/css" /> +</head> +<body style="padding:2em;"><img src="../flyspray.png" style="display:block;margin:auto;"> + <h2>It seems you try to install a development version of Flyspray.</h2> + <h2><?php echo L('needcomposer'); ?></h2> + <a href="<?php echo $composerit; ?>" class="button" style="margin:auto;max-width:300px;text-align:center;display:block;font-size:2em;"><?php echo L('installcomposer'); ?></a> + <p style="margin-top:50px;"> + In case the above solution doesn't work for you, use ssh to login to your server, move to the root directory of your unpacked flyspray sources and execute this: + </p> + <pre> + curl -sS https://getcomposer.org/installer | php + php composer.phar install + </pre> + +<div class="error"> +<h4>Shared Hostings</h4> +<p>If you are on a shared hosting, there are probably different php versions available. The hosting companies name them often like <b>php5.4</b>, <b>php5.5-cli</b> or <b>php-cgi-7.0</b>. Choose the best matching php-version for your Hosting (should ideally match that of what the webserver uses). To see available php versions on the commandline type</p> +<pre><strong>php</strong> <kbd class="key">tab</kbd> <kbd class="key">tab</kbd></pre> +<p><kbd>tab</kbd> <kbd>tab</kbd> is autocompletion on bash, so it shows all executable that start with <strong>php</strong>.</p> +<p>Lets say the webserver uses PHP 5.6 by default, than a <b>php5.6</b> you found on the commandline is a good choice:</p> +<pre>curl -sS https://getcomposer.org/installer | php5.6 +php5.6 composer.phar install +</pre> +</div> + + <p>Or take an official release, which contains all needed external packages bundled.</p> + <h2>README.md</h2> + <div id="content"> + <pre> + <?php echo file_get_contents('../README.md'); ?> + </pre> + </div> +</body> +</html> |