Установка "с нуля"

Started by Warden on 2017-04-25 15:04 — 3 replies, 1295 views

#1
Подготовил nginx+php70.
Склонировал репозиторий.
Не запускается: пытается прочесть из дирки vendor, а она пустая.
Поискал howto, не нашёл. Разобрался, поставил composer, поставил им необходимые пакеты.
ОК, про vendor не ругается. Выкидывает 404 (на самом деле 50x, не найден /home/www/torrentpier/50x.html)

017/04/25 08:45:56 [error] 14507#14507: *31853 FastCGI sent in stderr: "PHP message: PHP Error: Call to undefined function DB() in /home/www/torrentpier/library/includes/sessions.php on line 117
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /home/www/torrentpier/index.php:0
PHP message: PHP 2. user_common->session_start($cfg = *uninitialized*) /home/www/torrentpier/index.php:59
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function DB() in /home/www/torrentpier/library/includes/sessions.php:117
Stack trace:
#0 /home/www/torrentpier/index.php(59): user_common->session_start()
#1 {main}
thrown in /home/www/torrentpier/library/includes/sessions.php on line 117" while reading response header from upstream, client: X.X.X.X, server: Z.Z.Z.Z, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.socket:", host: "Z.Z.Z.Z"
2017/04/25 08:45:56 [error] 14507#14507: *31853 open() "/home/www/torrentpier/50x.html" failed (2: No such file or directory), client: X.X.X.X, server: Z.Z.Z.Z, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.socket", host: "Z.Z.Z.Z"


что не так-то?
#2
Ставь версию tp 2.1.5 и php 5.4 или выше, для php 7 версии движок не готов ещё
#3
Ставь версию tp 2.1.5 и php 5.4 или выше, для php 7 версии движок не готов ещё
Ну почему не готов .
если 2.1.5 обновить с этого коммита , то на php 7.0 всё работает 🙂
https://torrentpier.com/forum/threa...-podderzhivaemye-versii-php.41620/#post-89459
#4
свитчнулся на 2.1.6. ОМГ! заработало 🙂