Copy to clipboard libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ git status
# On branch master
nothing to commit, working directory clean
libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ git push appsdeck master
Counting objects: 11074, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10951/10951), done.
Writing objects: 100% (11074/11074), 28.68 MiB | 76 KiB/s, done.
Total 11074 (delta 1229), reused 0 (delta 0)
<-- Start deployment of jyhem-tiki-12 -->
-----> Bundling NGINX 1.6.1
-----> Bundling PHP 5.5.15
-----> Bundling extensions
apcu
phpredis
mongo
-----> Vendoring Composer
Updating Composer
Updating to version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a.
Downloading: 100%
Use composer self-update --rollback to return to version 28c65b5425f7f8722c260e3787b74c1ea6b37e3b
-----> Installing application dependencies with Composer
Loading composer repositories with package information
Installing dependencies from lock file
- Installing afarkas/html5shiv (3.6.2)
Downloading: 100%
- Installing adodb/adodb (5.18)
Downloading: 100%
- Installing bombayworks/zendframework1 (v1.12.3)
Downloading: 100%
- Installing ckeditor/ckeditor (4.3.4)
Downloading: 100%
…
…
…
- Installing zetacomponents/webdav (1.1.3)
Downloading: 100%
Generating optimized autoload files
Warning: Ambiguous class resolution, "Multilingual_Aligner_SentenceAlignments" was found in both "/build/lib/core/Multilingual/Aligner/SentenceAlignments.php" and "/build/lib/core/Multilingual/Aligner/SentenceAlignments3.php", the first will be used.
Warning: Ambiguous class resolution, "Text_Wiki_Parse_Tt" was found in both "/build/vendor_extra/pear/Text/Wiki/Parse/Default/Tt.php" and "/build/vendor_extra/pear/Text/Wiki/Parse/Mediawiki/Tt.php", the first will be used.
…
Warning: Ambiguous class resolution, "ADORecordSet_postgres64" was found in both "/build/vendor/adodb/adodb/drivers/drivers/adodb-postgres64.inc.php" and "/build/vendor/adodb/adodb/drivers/adodb-postgres64.inc.php", the first will be used.
-----> Setting up default configuration
-----> Vendoring binaries into slug
Build complete, shipping your container...
Waiting for your application to boot...
<-- https://jyhem-tiki-12.appsdeck.eu -->
To git@appsdeck.eu:jyhem-tiki-12.git
* [new branch] master -> master
https://jyhem-tiki-12.appsdeck.eu Partial success !
→ Gets to installer
Tiki has detected your PHP memory_limit at: 128 MB.
No email because no sendmail binary existing or planned.
All looks good except that we can't exit the installer (with or without creating the lock file)
I assume the issue is, it does not let us create db/local.php
I assumed wrong: Creating files is not an issue by itself. Here, the issue is with port allocation
Working with Soulou, from appsdeck.eu
IRC log in french
Copy to clipboard [Thursday 14 August 2014] [16:53:05] donc
[Thursday 14 August 2014] [16:53:07] tiki
[Thursday 14 August 2014] [16:53:12] quand tu vas sur l'index.php
[Thursday 14 August 2014] [16:53:16] genere un $base_url
[Thursday 14 August 2014] [16:53:16] non, ça passe pas bien, mais pas grave
[Thursday 14 August 2014] [16:53:33] ce $base_url se base sur les variabels $_SERVER
[Thursday 14 August 2014] [16:53:43] donc $_SERVER['SERVER_PORT']
[Thursday 14 August 2014] [16:54:06] or chez nosu on associe des ports arbitraires aux instances d'applications qui tournent
[Thursday 14 August 2014] [16:54:11] genre 40123
[Thursday 14 August 2014] [16:54:21] du coup l'index.php redirige vers
[Thursday 14 August 2014] [16:54:36] https://tiki.appsdeck.eu:40123/tiki_index.php
[Thursday 14 August 2014] [16:54:49] Il y a possibilite de le detecter
[Thursday 14 August 2014] [16:55:04] car le reverse proxy frontal cree le header
[Thursday 14 August 2014] [16:55:11] X_FORWARDED_PROTO pour l'application
[Thursday 14 August 2014] [16:55:20] comme ca elle sait si c'est port 80/443
[Thursday 14 August 2014] [17:39:10] car imagine
[Thursday 14 August 2014] [17:39:15] Quelqu'un a un tiki wiki chez nous
[Thursday 14 August 2014] [17:39:19] et utilise deux instances
[Thursday 14 August 2014] [17:39:22] pour avoir de la redondance
[Thursday 14 August 2014] [17:39:26] une va fonctionner sur
[Thursday 14 August 2014] [17:39:40] http://node1.internal.appsdeck.eu:40001
[Thursday 14 August 2014] [17:39:41] et l'autre sur
[Thursday 14 August 2014] [17:39:48] http://node23.internal.appsdeck.eu:40002
[Thursday 14 August 2014] [17:39:56] devant on a un load balancer
[Thursday 14 August 2014] [17:40:08] * Jyhem_laptop suit, continue
[Thursday 14 August 2014] [17:40:09] qui distribue les requetes de https://tikiwiki.appsdeck.eu
[Thursday 14 August 2014] [17:40:19] sur les deux instances
[Thursday 14 August 2014] [17:40:37] si l'une ou l'autre genere des informations
[Thursday 14 August 2014] [17:40:47] avec le numero du port dedans c'est un non sens
[Thursday 14 August 2014] [17:40:53] car si tu veux mettre a jour ton application
[Thursday 14 August 2014] [17:41:08] les instances vont etre sur http://node4.internal.appsdeck.eu:40032
[Thursday 14 August 2014] [17:41:13] et autre chose par exemple
[Thursday 14 August 2014] [17:41:18] c'est tres tres temporaire
[Thursday 14 August 2014] [17:41:31] donc dans notre cas SERVER_PORT est une information inutilisable
[Thursday 14 August 2014] [17:41:47] et en fait c'est le cas des qu'il y a un proxy devant un ou plusieurs instance de l'application
[Thursday 14 August 2014] [17:42:05] puisque le port utilise pour l'application elle meme n'est pas publique
I did it in :
Copy to clipboard Revision: 52330
http://sourceforge.net/p/tikiwiki/code/52330
Author: jyhem
Date: 2014-08-14 16:40:52 +0000 (Thu, 14 Aug 2014)
Log Message:
-----------
[FIX] Check if behind a Frontend-Proxie/Load-Balancer which rewrites ports (some cloud offerings need this) (thanks Soulou)
Modified Paths:
--------------
trunk/lib/setup/absolute_urls.php
Modified: trunk/lib/setup/absolute_urls.php
===================================================================
--- trunk/lib/setup/absolute_urls.php 2014-08-14 11:42:37 UTC (rev 52329)
+++ trunk/lib/setup/absolute_urls.php 2014-08-14 16:40:52 UTC (rev 52330)
@@ -8,6 +8,15 @@
//this script may only be included - so its better to die if called directly.
$access->check_script($_SERVER['SCRIPT_NAME'], basename(__FILE__));
+// Check if behind a Frontend-Proxie/Load-Balancer which rewrites ports
+if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
+ if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == "http") {
+ $_SERVER['SERVER_PORT'] = 80;
+ } else if($_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
+ $_SERVER['SERVER_PORT'] = 443;
+ }
+}
+
// check if the current port is not 80 or 443
if (isset($_SERVER['SERVER_PORT'])) {
if (($_SERVER['SERVER_PORT'] != 80) && ($_SERVER['SERVER_PORT'] != 443)) {
So, to get Tiki running, until this is backported,
libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ svn merge -c 52330 https://svn.code.sf.net/p/tikiwiki/code/trunk/ .
libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ git add lib/setup/absolute_urls.php
libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ git commit -m "Support HTTP_X_FORWARDED_PROTO"
[master edd1a24] Support HTTP_X_FORWARDED_PROTO
1 file changed, 9 insertions(+)
libs@tanelorn:~/alsawiki_share/projets/appsdeck/12.x$ git push appsdeck master
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 628 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
<-- Start deployment of jyhem-tiki-12 -->
-----> Bundling NGINX 1.6.1
Checksums match. Fetching from cache.
-----> Bundling PHP 5.5.15
Checksums match. Fetching from cache.
-----> Bundling extensions
apcu
Checksums match. Fetching from cache.
…
Build complete, shipping your container...
Waiting for your application to boot...
<-- https://jyhem-tiki-12.appsdeck.eu -->
To git@appsdeck.eu:jyhem-tiki-12.git
82fd4ff..edd1a24 master -> master
|