Probleme bei der Installation von YAWIK unter Ubuntu 18.04

Hallo zusammen,

ich versuche auf einem Ubuntu 18.04 YAWIK zu installieren.
Habe mich für die Installation via ./install.sh entschlossen:

it clone https://github.com/cross-solution/YAWIK
cd YAWIK
cp build.properties.dist build.properties
./install.sh

Leider erhalte ich folgende Fehler:

root@localhost:~/YAWIK# sudo ./install.sh
Installing úsing: build.properties
Download Composer
./install.sh: line 71: php: command not found
curl: (23) Failed writing body (0 != 16133)
/usr/bin/env: ‘php’: No such file or directory
Installing Assets
./install.sh: line 82: bin/yawik: No such file or directory
npm ERR! addLocal Could not install /root/YAWIK/public/modules/Core
npm ERR! Linux 4.15.0-45-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /root/YAWIK/public/modules/Core
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open ‘/root/YAWIK/public/modules/Core’
npm ERR! enoent ENOENT: no such file or directory, open ‘/root/YAWIK/public/modules/Core’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /root/YAWIK/npm-debug.log
root@localhost:~/YAWIK#

Hi,

Du solltest Yawik nicht als root installieren. Es wird zu einem Problem bei der Installation der assets führen.

Die Installation sollte als normaler User per:

https://yawik.readthedocs.io/en/latest/installation.html#setup

composer create-project yawik/standard MeinYawik
cd MeinYawik
php -S localhost:8000 -t test/sandbox/MeinYawik

Danach sollte man per http://localhost:8000 das Yawik öffnen können

Die letzte Zeole war falsch.

Den internal PHP Webserver startest du per:

cbleek@php7-cb:~/MeinYawik$ php -S 0.0.0.0:8000 -t public/
PHP 7.2.18-1+ubuntu18.04.1+deb.sury.org+1 Development Server started at Wed May 22 14:45:42 2019
Listening on http://0.0.0.0:8000

Vielen Dank für die schnelle Hilfe, ich habe via adduser einen neuen Standart User angelegt und mit dem die Schritte:

it clone https://github.com/cross-solution/YAWIK
cd YAWIK
cp build.properties.dist build.properties
./install.sh
composer create-project yawik/standard MeinYawik
cd MeinYawik
php -S 0.0.0.0:8000 -t public/

Der Start von PHP wird mir auch bestätigt:

yamik@localhost : ~/myYAMIK $ php -S 0.0.0.0:8000 -t public/

PHP 7.2.17-0ubuntu0.18.04.1 Development Server started at Wed May 22 17:07:24 2019
Listening on http://0.0.0.0:8000
Document root is /home/yamik/myYAMIK/public
Press Ctrl-C to quit.

vollzogen - leider erhalte ich dann beim versuch YAWIK auf zu rufen nur eine weiße Seite und die Meldung:

Diese Seite funktioniert nicht

SERVERNAME kann diese Anfrage momentan nicht verarbeiten.
HTTP ERROR 500

Das Serverlog gibt mir das hier aus:

[Wed May 22 17:27:30 2019] PHP Warning: include(/home/yamik/myYAMIK/public/…/vendor/autoload.php): failed to open stream: No such file or directory in /home/yamik/myYAMIK/public/index.php on line 14

[Wed May 22 17:27:30 2019] PHP Warning: include(): Failed opening ‘/home/yamik/myYAMIK/public/…/vendor/autoload.php’ for inclusion (include_path=’.:/usr/share/php’) in /home/yamik/myYAMIK/public/index.php on line 14

[Wed May 22 17:27:30 2019] PHP Fatal error: Uncaught RuntimeException: Unable to load application.

  • Type composer install if you are developing locally.

  • Type vagrant ssh -c 'composer install' if you are using Vagrant.

  • Type docker-compose run zf composer install if you are using Docker.

in /home/yamik/myYAMIK/public/index.php:17

Stack trace:

#0 {main}

thrown in /home/yamik/myYAMIK/public/index.php on line 17

[Wed May 22 17:27:30 2019] 217.82.35.103:62732 [500]: / - Uncaught RuntimeException: Unable to load application.

  • Type composer install if you are developing locally.

  • Type vagrant ssh -c 'composer install' if you are using Vagrant.

  • Type docker-compose run zf composer install if you are using Docker.

in /home/yamik/myYAMIK/public/index.php:17

Stack trace:

#0 {main}

thrown in /home/yamik/myYAMIK/public/index.php on line 17

Gerade sehe ich noch folgende Meldung nach versuch den Composer zu installieren:

yamik@localhost:~/myYAMIK$ composer require
Search for a package:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- behat/behat v3.5.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.4.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.4.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.4.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.3.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.3.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.0rc2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.0rc1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat v3.2.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- behat/behat 3.5.x-dev requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- yawik/behat 0.32.x-dev requires behat/behat ^3.2 -> satisfiable by behat/behat[3.5.x-dev, v3.2.0, v3.2.0rc1, v3.2.0rc2, v3.2.1, v3.2.2, v3.2.3, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5.0].
- Installation request for yawik/behat 0.32.x-dev -> satisfiable by yawik/behat[0.32.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.2/cli/php.ini
- /etc/php/7.2/cli/conf.d/10-opcache.ini
- /etc/php/7.2/cli/conf.d/10-pdo.ini
- /etc/php/7.2/cli/conf.d/15-xml.ini
- /etc/php/7.2/cli/conf.d/20-calendar.ini
- /etc/php/7.2/cli/conf.d/20-ctype.ini
- /etc/php/7.2/cli/conf.d/20-curl.ini
- /etc/php/7.2/cli/conf.d/20-dom.ini
- /etc/php/7.2/cli/conf.d/20-exif.ini
- /etc/php/7.2/cli/conf.d/20-fileinfo.ini
- /etc/php/7.2/cli/conf.d/20-ftp.ini
- /etc/php/7.2/cli/conf.d/20-gettext.ini
- /etc/php/7.2/cli/conf.d/20-iconv.ini
- /etc/php/7.2/cli/conf.d/20-intl.ini
- /etc/php/7.2/cli/conf.d/20-json.ini
- /etc/php/7.2/cli/conf.d/20-mongodb.ini
- /etc/php/7.2/cli/conf.d/20-phar.ini
- /etc/php/7.2/cli/conf.d/20-posix.ini
- /etc/php/7.2/cli/conf.d/20-readline.ini
- /etc/php/7.2/cli/conf.d/20-shmop.ini
- /etc/php/7.2/cli/conf.d/20-simplexml.ini
- /etc/php/7.2/cli/conf.d/20-sockets.ini
- /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.2/cli/conf.d/20-sysvsem.ini
- /etc/php/7.2/cli/conf.d/20-sysvshm.ini
- /etc/php/7.2/cli/conf.d/20-tokenizer.ini
- /etc/php/7.2/cli/conf.d/20-wddx.ini
- /etc/php/7.2/cli/conf.d/20-xmlreader.ini
- /etc/php/7.2/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.2/cli/conf.d/20-xsl.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

Habe es - es fehlte:

sudo apt-get install php-gd php-xml php7.2-mbstring