Ошибка сервера 500 при установке Newscoop-4.4.6-2015.10.20
  • На сервер загрузил инсталляционные файлы newscoop-4.4.6-2015.10.20 в виде архива.
    Распаковал архив, захожу на страницу сайта и вижу ошибку 500

    В логах вижу следующие записи:

    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77] Stack trace
    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77] #2 {main
    [Thu Jan 07 20:16:17 2016] [error] [client 145.249.141.77]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77] Stack trace
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77] #2 {main
    [Thu Jan 07 20:16:28 2016] [error] [client 145.249.141.77]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77] Stack trace
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77] #2 {main
    [Thu Jan 07 20:32:07 2016] [error] [client 145.249.141.77]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77] Stack trace
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77] #2 {main
    [Thu Jan 07 20:35:30 2016] [error] [client 145.249.141.77]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77] Stack trace
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77] #2 {main
    [Thu Jan 07 20:45:32 2016] [error] [client 145.249.141.77]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8

    В чем может быть проблема?
    Что необходимо настроить?
  • 16 Comments sorted by
  • Дичайше плюсую установку на чистую систему! Я сделал проще: написал bash скрипт установки всех пакетов + Webmin.

    По умолчанию он поднимает версию 4,2,4 со всеми зависимостями. Далее всё максимально просто: удаляем папку со старой версией, закатываем новую и инсталим. Профит! :) 

    Если будут проблемы и не добавится репозиторий, сделайте это руками (лень смотреть в манах, как в новой Убунте команда выглядит)

    Содержимое поместить в скрипт с расширением .sh, дать права на запуск и стартануть:
    #!/bin/sh
    apt-get update
    apt-get install mc -y
    apt-get install python-software-properties
    # Добавлено
    apt-get install software-properties-common
    #
    apt-add-repository 'deb http://apt.sourcefabric.org/ wheezy main'
    apt-get update -y
    apt-get install sourcefabric-keyring
    apt-get update -y
    apt-get install geonames-city-data -y
    apt-get install newscoop-sample-data -y
    apt-get install imagemagick -y
    apt-get remove php5-xcache -y
    apt-get install php-apc -y
    apt-get install php5-curl
    apt-get install php5-intl

    #Установка Mysql
    apt-get install mysql-server

    apt-get install newscoop
    chown -R www-data:www-data /var/lib/newscoop/public
    a2enmod rewrite php5
    service apache2 restart

    curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
    apt-get install -y nodejs
    apt-get install -y build-essential
    npm install npm -g
    npm install -g grunt-cli

    apt-add-repository 'deb http://download.webmin.com/download/repository sarge contrib'
    apt-get update -y
    cd /root
    apt-key add jcameron-key.asc
    apt-get update -y
    #Установка Webmmin
    apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
    apt-get install webmin
    Post edited by Butov Stanislav at 2016-02-27 15:14:03
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    необходимо установить пакет php5-intl
  • Свою работу по установке скрипта на выделенном сервере под управлением панели ISPmanager 5 business описал в виде шагов.

    1. Создаем новго пользователя. Настраиваем PHP как CGI, указываем версию pHP 5.3
    2. Закачиваем скрипт инсталятора, распаковываем в корень домена.
    3. Создаем базу данных на mysql и создаем в нем пользователя.
    4. Запускаем инсталятор, ловим первую ошибку, выраженную белым экраном  с цифрой 500
    5. Идем в логи сервера
    [Fri Jan 08 21:01:59 2016] [error] [client 145.249.192.89] File does not exist: /var/www/nk/data/www/kostanay.today/favicon.ico, referer: http://kostanay.today
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89] PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImplementedException' with message 'The Symfony\\Component\\Intl\\Collator\\Collator::__construct() method's argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported.  Please install the "intl" extension for full localization capabilities.' in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:8
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89] Stack trace
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89] #0 /var/www/nk/data/www/kostanay.today/install/SymfonyRequirements.php(649): Symfony\\Component\\Intl\\Collator\\Collator->__construct('fr_FR'
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89] #1 /var/www/nk/data/www/kostanay.today/install/index.php(21): SymfonyRequirements->__construct(
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89] #2 {main
    [Fri Jan 08 21:14:03 2016] [error] [client 145.249.192.89]   thrown in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 8

    Обращаем внимание на сообщение "intl", соответственно идем в настройки PHP и ищем там расширение "intl" в каком оно состоянии. Видим что установлено, но выключено. Включаем его и смотрим что выдаст инсталлятор.
  • 6. Инсталлятор выдал очередное сообщение на мониторе:
    Welcome to Newscoop Installer!

    Before we will show You a real installer we need to fix some requirements first.
    Please read all messages and try to fix them:
    json_encode() must be available
          Install and enable the JSON extension.
     
    Your php.ini config file path: /var/www/php-bin-isp-php53/nk/php.ini

    You can try to fix common problems by running our fixer.php script: 
    sudo php /var/www/nk/data/www/kostanay.today/scripts/fixer.php
    When it's done, please refresh this page. Thanks!

    Видим явную инструкцию о том, что необходимо исправить.
    6.1. Исправляем опцию  json_encode() проверяем, включена ли она. Ищем...
    Точно такой json_encode нет, но есть просто json, с выключенным статусом. Включаем его.
    6.2. Выполняем рекомендацию и запускаем под рутом файл скрипта php выпоонив команду в консоли: sudo php /var/www/nk/data/www/kostanay.today/scripts/fixer.php

    получаем в консоли следующее сообщение:
    Failed loading /usr/lib/php/modules/eaccelerator.so:
    /usr/lib/php/modules/eaccelerator.so:
    cannot open shared object file:
    No such file or directory                                                                                                                       
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/eaccelerator.so' - /usr/lib64/php/modules/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Видим что рекомендуемый скрипт исправления ошибок, не находит пути

    6.3. Идем смотреть что же такого интересного есть по пути: /var/www/php-bin-isp-php53/nk/php.ini
    Сохранил копию состояния этого файла.
  • 7. Перезагружаем инсталяцию скрипта и видим что уже отображен интерфейс инсталятора и он выдает предупреждения, в частности:
    7.1. posix_isatty() should be available
    у пользователя root находим и включаем posix
    предупреждение исчезло.

    7.2. a PHP accelerator should be installed

    7.3. short_open_tag should be disabled in php.ini
    идем в php.ini выключать опцию short_open_tag. Зашел в настройки php у пользователя root
    Предупреждение исчезло.

    7.4. magic_quotes_gpc should be disabled in php.ini
    идем в php.ini выключать опцию magic_quotes_gpc. Зашел в настройки php у пользователя root
    Предупреждение исчезло.

    8. Смотрим какие настройки в php у пользователя под которым устанавливается скрипт.
    magic_quotes_gpc - нет такой опции, есть только magic - в выключенном состоянии.
    short_open_tag - нет такой опции, даже короткого его наименования.
    posix_isatty - нет такой опции, есть только posix - в выключенном состоянии, я его включил ранее под пользователем

    accelerator - вот тут у меня затык и случился.
    пришел к пониманию, что эта опция это определенная программа которая ускоряет работу PHP, и скорее всего от низ зависят фреймворки внутри инсталятора.

    Принимаю решение нсталяровать скрипт, игнорируя это предупреждение и взглянуть на логи ошибок
    Вышел следующий шаг окна регистратора, где я введ данные ранее созданной базы.
    После вышло окно где скрипт мне предлагает заполнить следующие данные касающиеся админки
    Site title: 
    Password:
    Repeat Password:
    User email:
  • 9. Вот тут инсталятор выдал следующую ошибку:
    Whoops, looks like something went wrong.

    1/1InvalidArgumentException: Identifier "db" is not defined.
    in /var/www/nk/data/www/kostanay.today/vendor/pimple/pimple/lib/Pimple.php line 78
    at Pimple->offsetGet('db') in /var/www/nk/data/www/kostanay.today/install/index.php line 323
    at {closure}(object(Request))
    at call_user_func_array(object(Closure), array(object(Request))) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 145
    at HttpKernel->handleRaw(object(Request), '1') in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66
    at HttpKernel->handle(object(Request), '1', true) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 547
    at Application->handle(object(Request)) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 524
    at Application->run() in /var/www/nk/data/www/kostanay.today/install/index.php line 354
  • 10. Идем в логи сервера: (В логах убрал свои айпишники для краткости ] [error] [client 145.249.155.21])
    [Fri Jan 08 22:16:57 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:16:57 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:18:57 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:18:57 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install
    [Fri Jan 08 22:18:57 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:18:57 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:50 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:28:50 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:34:14 2016 PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:14 2016 PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:15 2016 PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:15 2016 PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/proces

    11. session.save_path - под рутом в настройка php нашлась session.save_path и было выключено. Включаем.
    Идем в кабинет пользователя видим что есть такая переменная session.save_path можем ее включить
  • 12. Запускаем инстялятор и видим ошибки 
    ====================
    RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set).
    in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php line 140
    at NativeSessionStorage->start() in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php line 262
    at NativeSessionStorage->getBag('attributes') in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php line 81
    at Session->has('db_data') in /var/www/nk/data/www/kostanay.today/install/index.php line 85
    at {closure}(object(Request), object(Application))
    at call_user_func(object(Closure), object(Request), object(Application)) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 316
    at Silex\{closure}(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
    at call_user_func(object(Closure), object(GetResponseEvent), 'kernel.request', object(EventDispatcher)) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
    at EventDispatcher->doDispatch(array(object(Closure), array(object(SessionServiceProvider), 'onEarlyKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(LogListener), 'onKernelRequest'), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
    at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 126
    at HttpKernel->handleRaw(object(Request), '1') in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66
    at HttpKernel->handle(object(Request), '1', true) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 547
    at Application->handle(object(Request)) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 524
    at Application->run() in /var/www/nk/data/www/kostanay.today/install/index.php line 354
    ===================
  • 13. Идем в логи сервера
    ------------------------
    [Fri Jan 08 22:28:26 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:26 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:30 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/licens
    [Fri Jan 08 22:28:50 2016 - PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:28:50 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:01 2016 - PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:29:02 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/prepar
    [Fri Jan 08 22:34:14 2016 - PHP Warning:  Module 'intl' already loaded in Unknown on line 0, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:14 2016 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 148, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:15 2016 - PHP Warning:  Unknown: open(/tmp/sess_ork63qvn2e85sgs1udbl5mfk46, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:34:15 2016 - PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0, referer: http://kostanay.today/install/proces
    [Fri Jan 08 22:56:07 2016 - File does not exist: /var/www/nk/data/www/kostanay.today/ph
    [Fri Jan 08 22:56:16 2016 - File does not exist: /var/www/nk/data/www/kostanay.today/php.inf
    [Fri Jan 08 22:56:31 2016 - File does not exist: /var/www/nk/data/www/kostanay.today/php(info
    [Fri Jan 08 23:23:38 2016 - PHP Warning:  ini_set() [<a href='function.ini-set'>function.ini-set</a>]: A session is active. You cannot change the session module's ini settings at this time in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 5
    [Fri Jan 08 23:28:03 2016 - PHP Warning:  ini_set() [<a href='function.ini-set'>function.ini-set</a>]: A session is active. You cannot change the session module's ini settings at this time in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 5
    [Fri Jan 08 23:28:22 2016 - File does not exist: /var/www/nk/data/www/kostanay.today/admi
    [Fri Jan 08 23:28:31 2016 - PHP Warning:  ini_set() [<a href='function.ini-set'>function.ini-set</a>]: A session is active. You cannot change the session module's ini settings at this time in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 5

    Насколько я понимаю, надо закрыть открытую сессию.
    Почистить кэш??
    Очистка кэша ничего не дала
  • 14. В настройках применение/изменение Режима работы PHP в виде опций "Как модуль Apache" и "CGI", дала результат в виде того, что выбор опции "Как модуль Apache", в интерфейсе инсталятора исключила все предупреждения, но на следующем шаге под конец инсталляции выдало ошибку:
    =========================
    InvalidArgumentException: File is not writable.
    in /var/www/nk/data/www/kostanay.today/vendor/yzalis/crontab/src/Crontab/CrontabFileHandler.php line 177
    at CrontabFileHandler->writeToFile(object(Crontab), false) in /var/www/nk/data/www/kostanay.today/vendor/yzalis/crontab/src/Crontab/CrontabFileHandler.php line 154
    at CrontabFileHandler->write(object(Crontab)) in /var/www/nk/data/www/kostanay.today/vendor/yzalis/crontab/src/Crontab/Crontab.php line 72
    at Crontab->write() in /var/www/nk/data/www/kostanay.today/library/Newscoop/Installer/Services/FinishService.php line 180
    at FinishService->saveCronjobs(object(SchedulerService)) in /var/www/nk/data/www/kostanay.today/install/index.php line 343
    at {closure}(object(Request))
    at call_user_func_array(object(Closure), array(object(Request))) in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 145
    at HttpKernel->handleRaw(object(Request), '1') in /var/www/nk/data/www/kostanay.today/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66
    at HttpKernel->handle(object(Request), '1', true) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 547
    at Application->handle(object(Request)) in /var/www/nk/data/www/kostanay.today/vendor/silex/silex/src/Silex/Application.php line 524
    at Application->run() in /var/www/nk/data/www/kostanay.today/install/index.php line 354

    Вот с таким состоянием лег спать, иначе голова уже не соображала, а глаза слипались.

    Что вы можете сказать?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Могу посоветовать отказаться от ispmanager и поставить на чистый ubuntu 14.04 cервер. Ставится без проблем.

    Необходимые пакеты:

    mysql-server phpmyadmin php5-intl php5-gd exim4 

    активировать rewrite модуль:  ab2enmod rewrite

    в ./etc/php5/apache2/php.ini  установите вашу временную зону (например date.timezone = Europe/Moscow)

  • Здравствуйте.
    Извините, что пишу в данной теме, но у меня тоже самые были проблемы. И хочу спросить только на  VPS устанавливается?
    Скажите, а какие параметры самой  VPS при ubuntu 14.04?


  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    параметры VPS? На сколько я знаю, кроме памяти других параметров там нет. 
    1ГБ ОЗУ достаточно. Подойдет и 32 и 64-битная версия ubuntu
  • Коллеги, так как все же решить проблему? уже даже права на эти файлы выставлял 777, ничего не помогает и без ispmanager на голый сервак и локально на ubuntu и через MAMP та же самая ошибка! Хотя перед установкой все чекбоксы зеленые, fixer.php запускал
    ==========
    InvalidArgumentException: File is not writable.
    in /var/www/user_on_server/data/www/site.com/newscoop/vendor/yzalis/crontab/src/Crontab/CrontabFileHandler.php line 177
    at CrontabFileHandler->writeToFile(object(Crontab), false) in /var/www/user_on_server/data/www/site.com/newscoop/vendor/yzalis/crontab/src/Crontab/CrontabFileHandler.php line 154
    at CrontabFileHandler->write(object(Crontab)) in /var/www/user_on_server/data/www/site.com/newscoop/vendor/yzalis/crontab/src/Crontab/Crontab.php line 72
    at Crontab->write() in /var/www/user_on_server/data/www/site.com/newscoop/library/Newscoop/Installer/Services/FinishService.php line 180
    at FinishService->saveCronjobs(object(SchedulerService)) in /var/www/user_on_server/data/www/site.com/newscoop/install/index.php line 343
    at {closure}(object(Request))
    at call_user_func_array(object(Closure), array(object(Request))) in /var/www/user_on_server/data/www/site.com/newscoop/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 145
    at HttpKernel->handleRaw(object(Request), '1') in /var/www/user_on_server/data/www/site.com/newscoop/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 66
    at HttpKernel->handle(object(Request), '1', true) in /var/www/user_on_server/data/www/site.com/newscoop/vendor/silex/silex/src/Silex/Application.php line 547
    at Application->handle(object(Request)) in /var/www/user_on_server/data/www/site.com/newscoop/vendor/silex/silex/src/Silex/Application.php line 524
    at Application->run() in /var/www/user_on_server/data/www/site.com/newscoop/install/index.php line 354
  • Спасибо! 
    Главное на чистую ставить, без isp manager и др. 
  • Привет всем кто будет рассматривать скрипт newscoop-а для своего проекта, не ставить его из под панели.
    Мой опыт установки его из под панели ISPmanager 5Business показал несовершенство при инсталляции. При попытках исправить на ошибки на которые ссылался инсталятор, уронил саму панель, что пришлось ее дважды переустанавливать, при этом исключил свои кривые руки, и обращался с поддержкой к сторонним сисадминам имеющим опыт работы с панелью, и они также пришли к выводу "проще переустановить панель" чем исправлять многочисленные ошибки...
    Удалять из консоли, на той машине где проинсталирована панель, pcre версии 7.8, меняя ее на требуюмую инсталятором версию повыше, вообще не стоит, панель после этих манипуляций лагает.

    Все таки победив с горе пополам уставновку скрипта из под панели, столкнулся с ошибкой в выходные дни, с сообщением:
    {closure}() called at [:]
    is_readable() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Loader.php:198]
    Zend_Loader::isReadable() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Loader/PluginLoader.php:389]
    Zend_Loader_PluginLoader::load() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Controller/Action/HelperBroker.php:366]
    Zend_Controller_Action_HelperBroker::_loadHelper() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Controller/Action/HelperBroker.php:155]
    Zend_Controller_Action_HelperBroker::getStaticHelper() called at [/var/www/nk/data/www/xxx.xxx/application/modules/admin/Bootstrap.php:124]
    Admin_Bootstrap::_initFlashMessenger() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:669]
    Zend_Application_Bootstrap_BootstrapAbstract::_executeResource() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622]
    Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:586]
    Zend_Application_Bootstrap_BootstrapAbstract::bootstrap() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Resource/Modules.php:124]
    Zend_Application_Resource_Modules::bootstrapBootstraps() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Resource/Modules.php:110]
    Zend_Application_Resource_Modules::init() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:683]
    Zend_Application_Bootstrap_BootstrapAbstract::_executeResource() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:626]
    Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:586]
    Zend_Application_Bootstrap_BootstrapAbstract::bootstrap() called at [/var/www/nk/data/www/xxx.xxx/vendor/bombayworks/zendframework1/library/Zend/Application.php:355]
    Zend_Application::bootstrap() called at [/var/www/nk/data/www/xxx.xxx/public/index.php:86]
    require_once() called at [/var/www/nk/data/www/xxx.xxx/index.php:17]
    require_once() called at [/var/www/nk/data/www/xxx.xxx/admin.php:2]


      После чего на сервере создал под скрипт виртуальную машину, и провел установку при помощи скрипта Стаса...
    Post edited by Kadyrkhan Utin at 2016-03-02 13:54:29