Quentinvarquet / docker-phpservermonitor

2 stars 54 forks source link

Docker installation failed #7

Closed docb7 closed 4 years ago

docb7 commented 4 years ago

Hi, I followed your instructions - first Information & Build, where I needed to change this line: git clone https://github.com/phpservermon/phpservermonitor.git phpservermonitor to git clone https://github.com/phpservermon/docker-phpservermonitor.git phpservermonitor and then I chose Option 1 and editet the docker-config.yml only regarding the ports (new: ports:

Fatal error: No dependencies found in vendor dir. Did you install the dependencies?
 Please run "php composer.phar install". in /var/www/html/src/bootstrap.php on line 73
Auto Configure / Create config.php
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.3. Set the 'ServerName' directive globally to suppress this message
[Fri May 01 07:51:32.695916 2020] [mpm_prefork:notice] [pid 11] AH00163: Apache/2.4.25 (Debian) PHP/7.2.30 configured -- resuming normal operations
[Fri May 01 07:51:32.696512 2020] [core:notice] [pid 11] AH00094: Command line: 'apache2 -D FOREGROUND'

Can anyone help?

ulfw commented 4 years ago

I modified the Dockerfile

then rebuild the image

sadortun commented 4 years ago

@ulfw please submit a PR if you have solved this issue.

Thanks, Samuel

ulfw commented 4 years ago

not that easy because the fork that is used for docker is a few commits ahead

docb7 commented 4 years ago

Hi, thanks for the effort. Unfortunately it did not seem to work. The image build is without any problems, and the container goes up, but when I open phpservermonitor I still get the Message

"Fatal error: No dependencies found in vendor dir. Did you install the dependencies? Please run "php composer.phar install". in /var/www/html/src/bootstrap.php on line 73".

When I do so by docker-compose exec phpservermonitor php composer.phar install I get the next error message:


Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 14 installs, 0 updates, 0 removals
    Failed to download jaxl/jaxl from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run php --ini to show them.
    Now trying to download from source
  - Installing jaxl/jaxl (v3.1.0): Cloning 27aa43c460
  [RuntimeException]
  Failed to clone https://github.com/jaxl/JAXL.git, git was not found, check that it is installed and in your PATH env.  
  sh: 1: git: not found
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...```
docb7 commented 4 years ago

Maybe (but as you might have guessed, I am really no expert ;-), that has something to do with this issue: https://github.com/phpservermon/phpservermon/issues/901 ?

ulfw commented 4 years ago

yes, its almost the same

the process of composer you ran will not finish because the container crashes and restarts so modify the Dockerfile as I wrote, it will work

docb7 commented 4 years ago

ahhh, ok, I thougt you editet the docker file here ;-) Could you please specify the lines? Maybe post them here? I get errors when putting those commands in the lines 5 and 59. My Dockerfile is this here: https://github.com/phpservermon/docker-phpservermonitor/blob/master/Dockerfile

docb7 commented 4 years ago

I found out by try and error, those are the needed lines:

Thank you so much!