Open utrenkner opened 8 years ago
I went back to Apache. But encountered the same problem here. Note: In each case I was using PHP as a stand-alone fcgi-server (php-fpm). Maybe this is the reason? But shouldn't it work, anyway???
NB: If you ask, why I did not use Apache with mod_php? I am trying to find something a little more modern/performant. mod_php is not thread-safe and this it cannot be used with Apache's newer MPM-models (I am testing "event" but "worker" would be the same).
I now even went so far as to use the non-threaded Apache MPM-module (pre-fork) with mod_php.
But the result is always the same: I can reach the install page. I can create the yawik database and user. But when I want to continue to yawik, I end up in an indefinite redirect loop (302).
My vhost.conf looks exactly like in the documentation (and it works on my local machine). What else could cause this behaviour? ("exactly" means, of course, that I have edited the paths to suit my server).
OK, solved it... had nothing to do with the specific web server. I just had to install a handful additional php modules, such as tokenizer, xml and session... the installation documentation only covers a small subset of the actually required ones.
I started with a fresh install of FreeBSD 10.2 and ended up with these (some of them were required by composer, when I installed the dependencies - they might actually not be need to run YAWIK). Be aware that a few of them are named differently from e.g. Debian packages:
mod_php56-5.6.14 PHP Scripting Language
php-composer-1.0.0.a10 Dependency Manager for PHP
php56-5.6.14 PHP Scripting Language
php56-ctype-5.6.14 The ctype shared extension for php
php56-curl-5.6.14 The curl shared extension for php
php56-dom-5.6.14 The dom shared extension for php
php56-filter-5.6.14 The filter shared extension for php
php56-hash-5.6.14 The hash shared extension for php
php56-json-5.6.14 The json shared extension for php
php56-mbstring-5.6.14 The mbstring shared extension for php
php56-openssl-5.6.14 The openssl shared extension for php
php56-phar-5.6.14 The phar shared extension for php
php56-session-5.6.14 The session shared extension for php
php56-simplexml-5.6.14 The simplexml shared extension for php
php56-tokenizer-5.6.14 The tokenizer shared extension for php
php56-xml-5.6.14 The xml shared extension for php
php56-zlib-5.6.14 The zlib shared extension for php
pecl-intl-3.0.0_2 PECL extension to support Internationalization(ICU)
pecl-mongo-1.6.11 PECL classes for Mongo Database Driver
Whatever I try with these two servers, I don't manage to make it work.
Installation of YAWIK seems to work fine. But after that I am thrown into a redirect loop:
http://mydomain.org/ -> http://mydomain.org/en/error http://mydomain.org/en/error -> http://mydomain.org/en/error http://mydomain.org/en/error -> http://mydomain.org/en/error etc. etc. until the browser gives up.
I tried various configurations for zf2 apps on nginx, which I found on the internet. They work quite differently, but each of them ends up with this problem. I can't believe I am the only one who tried it. Did anyone manage to find a working configuration?