{"action":"created","issue":{"url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/3","repository_url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3","labels_url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/3/comments","events_url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/3/events","html_url":"https://github.com/xdxdVSxdxd/HumanEcosystemsv3/issues/3","id":324012198,"number":3,"title":"Multiple errors in fresh install","user":{"login":"theodotos","id":11475588,"avatar_url":"https://avatars3.githubusercontent.com/u/11475588?v=4","gravatar_id":"","url":"https://api.github.com/users/theodotos","html_url":"https://github.com/theodotos","followers_url":"https://api.github.com/users/theodotos/followers","following_url":"https://api.github.com/users/theodotos/following{/other_user}","gists_url":"https://api.github.com/users/theodotos/gists{/gist_id}","starred_url":"https://api.github.com/users/theodotos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodotos/subscriptions","organizations_url":"https://api.github.com/users/theodotos/orgs","repos_url":"https://api.github.com/users/theodotos/repos","events_url":"https://api.github.com/users/theodotos/events{/privacy}","received_events_url":"https://api.github.com/users/theodotos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-17T12:59:54Z","updated_at":"2018-05-18T05:02:03Z","closed_at":"2018-05-18T05:02:03Z","author_association":"NONE","body":"I am getting these errors when I try to run Human Ecosystemv3:\r\n\r\n```\r\nWarning (2): Declaration of Cake\\Chronos\\Traits\\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) [ROOT/vendor/cakephp/chronos/src/MutableDate.php, line 24]\r\n\r\nWarning (2): Declaration of Cake\\Chronos\\Traits\\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTimeImmutable::setTime($hour, $minute, $second = NULL, $microseconds = NULL) [ROOT/vendor/cakephp/chronos/src/Date.php, line 24]\r\n\r\nWarning (2): ini_set() [function.ini-set]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/src/Network/Session.php, line 291]\r\n\r\nWarning (2): ini_set() [function.ini-set]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/src/Network/Session.php, line 291]\r\n\r\n\r\nWarning: ini_set() [function.ini-set]: Headers already sent. You cannot change the session module's ini settings at this time in /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php on line 291\r\n\r\nFatal error: [RuntimeException] Unable to configure the session, setting session.use_trans_sid failed. #0 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php(212): Cake\\Network\\Session->options(Array) #1 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php(119): Cake\\Network\\Session->__construct(Array) #2 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Request.php(184): Cake\\Network\\Session::create(Array) #3 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(118): Cake\\Network\\Request::createFromGlobals() #4 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(91): Cake\\Error\\ExceptionRenderer->_getController() #5 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ErrorHandler.php(143): Cake\\Error\\ExceptionRenderer->__construct(Object(Cake\\Error\\FatalErrorException)) #6 /var/www/html/example.com/vendor/cakep in /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 156\r\n\r\nWarning: ini_set() [function.ini-set]: Headers already sent. You cannot change the session module's ini settings at this time in /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php on line 291\r\n\r\nFatal error: [RuntimeException] Unable to configure the session, setting session.use_trans_sid failed. #0 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php(212): Cake\\Network\\Session->options(Array) #1 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Session.php(119): Cake\\Network\\Session->__construct(Array) #2 /var/www/html/example.com/vendor/cakephp/cakephp/src/Network/Request.php(184): Cake\\Network\\Session::create(Array) #3 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(118): Cake\\Network\\Request::createFromGlobals() #4 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(91): Cake\\Error\\ExceptionRenderer->_getController() #5 /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ErrorHandler.php(143): Cake\\Error\\ExceptionRenderer->__construct(Object(Cake\\Error\\FatalErrorException)) #6 /var/www/html/example.com/vendor/cakep in /var/www/html/example.com/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 156\r\n```\r\n\r\nMy system setup:\r\n\r\n```\r\n# lsb_release -a; echo; apache2 -V; echo; mysqld -V; echo; php --version\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 18.04 LTS\r\nRelease:        18.04\r\nCodename:       bionic\r\n\r\n[Thu May 17 12:57:05.926546 2018] [core:warn] [pid 23374] AH00111: Config variable ${APACHE_RUN_DIR} is not defined\r\napache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot\r\nServer version: Apache/2.4.29 (Ubuntu)\r\nServer built:   2018-04-25T11:38:24\r\nServer's Module Magic Number: 20120211:68\r\nServer loaded:  APR 1.6.3, APR-UTIL 1.6.1\r\nCompiled using: APR 1.6.3, APR-UTIL 1.6.1\r\nArchitecture:   64-bit\r\nServer MPM:     \r\nServer compiled with....\r\n -D APR_HAS_SENDFILE\r\n -D APR_HAS_MMAP\r\n -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)\r\n -D APR_USE_SYSVSEM_SERIALIZE\r\n -D APR_USE_PTHREAD_SERIALIZE\r\n -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT\r\n -D APR_HAS_OTHER_CHILD\r\n -D AP_HAVE_RELIABLE_PIPED_LOGS\r\n -D DYNAMIC_MODULE_LIMIT=256\r\n -D HTTPD_ROOT=\"/etc/apache2\"\r\n -D SUEXEC_BIN=\"/usr/lib/apache2/suexec\"\r\n -D DEFAULT_PIDLOG=\"/var/run/apache2.pid\"\r\n -D DEFAULT_SCOREBOARD=\"logs/apache_runtime_status\"\r\n -D DEFAULT_ERRORLOG=\"logs/error_log\"\r\n -D AP_TYPES_CONFIG_FILE=\"mime.types\"\r\n -D SERVER_CONFIG_FILE=\"apache2.conf\"\r\n\r\nmysqld  Ver 10.1.29-MariaDB-6 for debian-linux-gnu on x86_64 (Ubuntu 18.04)\r\n\r\nPHP 7.2.5-0ubuntu0.18.04.1 (cli) (built: May  9 2018 17:21:02) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n    with Zend OPcache v7.2.5-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies\r\n```\r\n\r\nThis is the Playbook I used to set it up:\r\n\r\n```\r\n---\r\n- hosts: humanecosystems.cut.ac.cy\r\n  user: root\r\n\r\n  tasks:\r\n\r\n  - include_vars: vars/all.yml\r\n\r\n  - name: Install Essential Packages\r\n    apt:\r\n      name: \"{{ item }}\"\r\n      state: present\r\n    with_items:\r\n      - apache2\r\n      - libapache2-mod-php\r\n      - php-mysql\r\n      - php-mbstring\r\n      - php-intl\r\n      - mariadb-server\r\n      - git\r\n      - python-mysqldb\r\n\r\n  - name: Git source into Apache DocRoot\r\n    git:\r\n      repo: https://github.com/xdxdVSxdxd/HumanEcosystemsv3.git\r\n      dest: \"{{ docroot }}\"\r\n      update: no\r\n\r\n  - name: Debug Docroot\r\n    debug:\r\n      msg: \"Docroot = {{ docroot }}\"\r\n\r\n  - name: Set Docroot Owneship to www-data\r\n    file:\r\n      path: \"{{ docroot }}\"\r\n      owner: www-data\r\n      group: www-data\r\n      recurse: yes\r\n\r\n  - name: Create Database\r\n    mysql_db:\r\n      name: \"{{ mysql_db }}\"\r\n      state: present\r\n    notify:\r\n      - Import SQL Schema into Database\r\n\r\n  - name: Create Database User\r\n    mysql_user:\r\n      name: \"{{ mysql_user }}\"\r\n      password: \"{{ mysql_pass }}\"\r\n      priv: \"{{ mysql_db }}.*:ALL\"\r\n      state: present\r\n\r\n  - name: Create the /etc/apache2/ssl directory\r\n    file:\r\n      path: /etc/apache2/ssl\r\n      state: directory\r\n\r\n  - name: Copy configuration files over\r\n    template:\r\n      src: \"{{ item.src }}\"\r\n      dest: \"{{ item.dest }}\"\r\n    with_items:\r\n      - { src: templates/app_local.php.j2, dest: \"{{ docroot }}/config/app_local.php\" }\r\n      - { src: templates/vhost.conf.j2, dest: \"/etc/apache2/sites-available/{{ domain }}.conf\" }\r\n      - { src: templates/cert.crt.j2, dest: \"/etc/apache2/ssl/{{ domain }}.crt\" }\r\n      - { src: templates/fullcert.pem.j2, dest: \"/etc/apache2/ssl/{{ domain }}.pem\" }\r\n      - { src: templates/privkey.key.j2, dest: \"/etc/apache2/ssl/{{ domain }}.key\" }\r\n\r\n  - name: Enable Needed Apache Modules\r\n    apache2_module:\r\n      name: \"{{ item }}\"\r\n      state: present\r\n    with_items:\r\n      - rewrite\r\n      - ssl\r\n\r\n  - name: Disable the default Vhost\r\n    file:\r\n      path: /etc/apache2/sites-enabled/000-default.conf\r\n      state: absent\r\n\r\n  - name: Enable the Vhost\r\n    file:\r\n      src: /etc/apache2/sites-available/{{ domain }}.conf\r\n      dest: /etc/apache2/sites-enabled/{{ domain }}.conf\r\n      state: link\r\n\r\n  - name: Restart Apache\r\n    service:\r\n      name: apache2\r\n      state: restarted\r\n\r\n  handlers:\r\n\r\n  - name: Import SQL Schema into Database\r\n    mysql_db:\r\n      name: \"{{ mysql_db }}\"\r\n      state: import\r\n      target: \"{{ docroot }}/DatabaseSchemes/Schema.sql\"\r\n```\r\n\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/comments/390095125","html_url":"https://github.com/xdxdVSxdxd/HumanEcosystemsv3/issues/3#issuecomment-390095125","issue_url":"https://api.github.com/repos/xdxdVSxdxd/HumanEcosystemsv3/issues/3","id":390095125,"user":{"login":"theodotos","id":11475588,"avatar_url":"https://avatars3.githubusercontent.com/u/11475588?v=4","gravatar_id":"","url":"https://api.github.com/users/theodotos","html_url":"https://github.com/theodotos","followers_url":"https://api.github.com/users/theodotos/followers","following_url":"https://api.github.com/users/theodotos/following{/other_user}","gists_url":"https://api.github.com/users/theodotos/gists{/gist_id}","starred_url":"https://api.github.com/users/theodotos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodotos/subscriptions","organizations_url":"https://api.github.com/users/theodotos/orgs","repos_url":"https://api.github.com/users/theodotos/repos","events_url":"https://api.github.com/users/theodotos/events{/privacy}","received_events_url":"https://api.github.com/users/theodotos/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T05:02:03Z","updated_at":"2018-05-18T05:02:03Z","author_association":"NONE","body":"It seems to be a compatibility issue with php7.2. I installed php7.0 and it worked!\r\n\r\nHere are the instructions if you want to set this up on Ubuntu 18.04:\r\n\r\n```\r\n# apt -y install software-properties-common\r\n# add-apt-repository ppa:ondrej/php\r\n# apt-get update\r\n# apt-get -y install php7.0 php7.0-intl php7.0-mbstring\r\n# a2dismod php7.2\r\n# a2enmod php7.0\r\n# systemctl restart apache2\r\n```\r\n\r\nThanks @xdxdVSxdxd !"}}
{"actor":{"display_login":"theodotos"}}