Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18302 > unrolled thread

docker: wordpress: Call to undefined function yaml_parse_file()

Started bySuperTex <a@b.invalid>
First post2020-07-29 11:26 +0200
Last post2020-08-03 01:50 +0200
Articles 20 — 5 participants

Back to article view | Back to comp.lang.php


Contents

  docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-07-29 11:26 +0200
    Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-07-29 12:49 +0200
      Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-07-29 16:07 +0200
        Re: docker: wordpress: Call to undefined function yaml_parse_file() Jerry Stuckle <jstucklex@attglobal.net> - 2020-07-29 10:33 -0400
          Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-01 16:34 +0200
            Re: docker: wordpress: Call to undefined function yaml_parse_file() Jerry Stuckle <jstucklex@attglobal.net> - 2020-08-01 17:11 -0400
              Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-08-02 06:01 +0200
                Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-02 09:44 +0200
                Re: docker: wordpress: Call to undefined function yaml_parse_file() Jerry Stuckle <jstucklex@attglobal.net> - 2020-08-02 14:22 -0400
                  Re: docker: wordpress: Call to undefined function yaml_parse_file() "J.O. Aho" <user@example.net> - 2020-08-02 21:39 +0200
                  Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-03 09:39 +0200
                    Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-08-03 11:12 +0200
            Re: docker: wordpress: Call to undefined function yaml_parse_file() Percival John Hackworth <pjh@nanoworks.com> - 2020-08-01 14:25 -0700
        Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-07-30 15:40 +0200
          Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-01 16:33 +0200
            Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-08-01 16:40 +0200
              Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-02 09:53 +0200
                Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-08-02 11:49 +0200
                  Re: docker: wordpress: Call to undefined function yaml_parse_file() SuperTex <a@b.invalid> - 2020-08-02 15:28 +0200
                    Re: docker: wordpress: Call to undefined function yaml_parse_file() Arno Welzel <usenet@arnowelzel.de> - 2020-08-03 01:50 +0200

#18302 — docker: wordpress: Call to undefined function yaml_parse_file()

FromSuperTex <a@b.invalid>
Date2020-07-29 11:26 +0200
Subjectdocker: wordpress: Call to undefined function yaml_parse_file()
Message-ID<rfrfc3$hih$1@gioia.aioe.org>
$ curl http://localhost:8000

Among other things, appears:

Fatal error: Uncaught Error: Call to undefined function 
yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php

I suppose you need to install the php-imap extension (or something similar).
How you do it?

Here is my docker-compose.yml file:

version: '3.3'

services:
    db:
      image: mysql:5.7
      volumes:
        - dbdata:/var/lib/mysql
      restart: always
      environment:
        MYSQL_ROOT_PASSWORD: somewordpress
        MYSQL_DATABASE: wordpress
        MYSQL_USER: wordpress
        MYSQL_PASSWORD: wordpress

    wordpress:
         container_name: mytestplugin
         depends_on:
             - db
         image: wordpress:latest
         ports:
             - "8000:80"
         restart: always
         environment:
            WORDPRESS_DB_HOST: db:3306
            WORDPRESS_DB_USER: wordpress
            WORDPRESS_DB_PASSWORD: wordpress
         volumes:
             - .:/var/www/html/wp-content/plugins/mytest

volumes:
     dbdata:

[toc] | [next] | [standalone]


#18303

FromArno Welzel <usenet@arnowelzel.de>
Date2020-07-29 12:49 +0200
Message-ID<hod2inF52v4U1@mid.individual.net>
In reply to#18302
SuperTex:

> $ curl http://localhost:8000
> 
> Among other things, appears:
> 
> Fatal error: Uncaught Error: Call to undefined function 
> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
> 
> I suppose you need to install the php-imap extension (or something similar).

No - YAML has nothing to do with IMAP. YAML is handled php-yaml.

If you created this plugin yourself you should think about using plain
PHP files for configuration instead of YAML. Developing WordPress
plugins which depend on the YAML extension is not a good idea.


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18304

FromSuperTex <a@b.invalid>
Date2020-07-29 16:07 +0200
Message-ID<rfrvqu$fen$1@gioia.aioe.org>
In reply to#18303
Il 29/07/20 12:49, Arno Welzel ha scritto:
> SuperTex:
> 
>> $ curl http://localhost:8000
>>
>> Among other things, appears:
>>
>> Fatal error: Uncaught Error: Call to undefined function
>> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
>>
>> I suppose you need to install the php-imap extension (or something similar).
> 
> No - YAML has nothing to do with IMAP. YAML is handled php-yaml.
> 
> If you created this plugin yourself you should think about using plain
> PHP files for configuration instead of YAML. Developing WordPress
> plugins which depend on the YAML extension is not a good idea.

I apologize.
I meant php-yaml extension (or something similar).

But can't you just install php extensions in docker/wordpress?

[toc] | [prev] | [next] | [standalone]


#18305

FromJerry Stuckle <jstucklex@attglobal.net>
Date2020-07-29 10:33 -0400
Message-ID<rfs1bn$vfc$1@jstuckle.eternal-september.org>
In reply to#18304
On 7/29/2020 10:07 AM, SuperTex wrote:
> Il 29/07/20 12:49, Arno Welzel ha scritto:
>> SuperTex:
>>
>>> $ curl http://localhost:8000
>>>
>>> Among other things, appears:
>>>
>>> Fatal error: Uncaught Error: Call to undefined function
>>> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
>>>
>>> I suppose you need to install the php-imap extension (or something 
>>> similar).
>>
>> No - YAML has nothing to do with IMAP. YAML is handled php-yaml.
>>
>> If you created this plugin yourself you should think about using plain
>> PHP files for configuration instead of YAML. Developing WordPress
>> plugins which depend on the YAML extension is not a good idea.
> 
> I apologize.
> I meant php-yaml extension (or something similar).
> 
> But can't you just install php extensions in docker/wordpress?
> 

PHP extensions are installed in PHP, not Wordpress.  Only a system 
administrator can do that.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18309

FromSuperTex <a@b.invalid>
Date2020-08-01 16:34 +0200
Message-ID<rg3uih$109q$2@gioia.aioe.org>
In reply to#18305
Il 29/07/20 16:33, Jerry Stuckle ha scritto:
> 
> PHP extensions are installed in PHP, not Wordpress.  Only a system 
> administrator can do that.

The admin of?
Of my pc?
o_O

[toc] | [prev] | [next] | [standalone]


#18315

FromJerry Stuckle <jstucklex@attglobal.net>
Date2020-08-01 17:11 -0400
Message-ID<rg4lq3$7t4$1@jstuckle.eternal-september.org>
In reply to#18309
On 8/1/2020 10:34 AM, SuperTex wrote:
> Il 29/07/20 16:33, Jerry Stuckle ha scritto:
>>
>> PHP extensions are installed in PHP, not Wordpress.  Only a system 
>> administrator can do that.
> 
> The admin of?
> Of my pc?
> o_O

The admin of whatever system your wordpress is running on.  For a Unix 
system you would need root privileges.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18319

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-02 06:01 +0200
Message-ID<homs4gF7n2pU1@mid.individual.net>
In reply to#18315
Jerry Stuckle:

> On 8/1/2020 10:34 AM, SuperTex wrote:
>> Il 29/07/20 16:33, Jerry Stuckle ha scritto:
>>>
>>> PHP extensions are installed in PHP, not Wordpress.  Only a system 
>>> administrator can do that.
>>
>> The admin of?
>> Of my pc?
>> o_O
> 
> The admin of whatever system your wordpress is running on.  For a Unix 
> system you would need root privileges.

The OP uses Docker. There is no "admin" for a Docker setup.


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18320

FromSuperTex <a@b.invalid>
Date2020-08-02 09:44 +0200
Message-ID<rg5qs9$4he$1@gioia.aioe.org>
In reply to#18319
Il 02/08/20 06:01, Arno Welzel ha scritto:
> The OP uses Docker. There is no "admin" for a Docker setup.

In fact, it seems strange to me

[toc] | [prev] | [next] | [standalone]


#18324

FromJerry Stuckle <jstucklex@attglobal.net>
Date2020-08-02 14:22 -0400
Message-ID<rg709p$95k$1@jstuckle.eternal-september.org>
In reply to#18319
On 8/2/2020 12:01 AM, Arno Welzel wrote:
> Jerry Stuckle:
> 
>> On 8/1/2020 10:34 AM, SuperTex wrote:
>>> Il 29/07/20 16:33, Jerry Stuckle ha scritto:
>>>>
>>>> PHP extensions are installed in PHP, not Wordpress.  Only a system
>>>> administrator can do that.
>>>
>>> The admin of?
>>> Of my pc?
>>> o_O
>>
>> The admin of whatever system your wordpress is running on.  For a Unix
>> system you would need root privileges.
> 
> The OP uses Docker. There is no "admin" for a Docker setup.
> 
> 

What's not clear to me is is the OP trying to run this on his own system 
(bad idea) or on a hosting service?

I'm not at all familiar with Docker, so I don't know which OS version of 
PHP et. al. he's running.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18325

From"J.O. Aho" <user@example.net>
Date2020-08-02 21:39 +0200
Message-ID<hooj39Fj1e3U1@mid.individual.net>
In reply to#18324
On 02/08/2020 20.22, Jerry Stuckle wrote:
> On 8/2/2020 12:01 AM, Arno Welzel wrote:
>> Jerry Stuckle:
>>
>>> On 8/1/2020 10:34 AM, SuperTex wrote:
>>>> Il 29/07/20 16:33, Jerry Stuckle ha scritto:
>>>>>
>>>>> PHP extensions are installed in PHP, not Wordpress.  Only a system
>>>>> administrator can do that.
>>>>
>>>> The admin of?
>>>> Of my pc?
>>>> o_O
>>>
>>> The admin of whatever system your wordpress is running on.  For a Unix
>>> system you would need root privileges.
>>
>> The OP uses Docker. There is no "admin" for a Docker setup.
>>
>>
> 
> What's not clear to me is is the OP trying to run this on his own system 
> (bad idea) or on a hosting service?
> 
> I'm not at all familiar with Docker, so I don't know which OS version of 
> PHP et. al. he's running.

The mysql 5.7 docker image is based on debian 10 if using the latest 
released image. It will provide PHP 7.3 according to 
https://packages.debian.org/buster/php/php

-- 

  //Aho


[toc] | [prev] | [next] | [standalone]


#18327

FromSuperTex <a@b.invalid>
Date2020-08-03 09:39 +0200
Message-ID<rg8evc$1v4q$1@gioia.aioe.org>
In reply to#18324
Il 02/08/20 20:22, Jerry Stuckle ha scritto:
> 
> What's not clear to me is is the OP trying to run this on his own system 
> (bad idea) or on a hosting service?

My system.

> I'm not at all familiar with Docker, so I don't know which OS version of 
> PHP et. al. he's running.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
$ php -v
PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
     with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
     with Xdebug v2.9.2, Copyright (c) 2002-2020, by Derick Rethans
2, Copyright (c) 2002-2020, by Derick Rethans
$ docker run wordpress php -v
PHP 7.4.8 (cli) (built: Jul  9 2020 23:12:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
     with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies

[toc] | [prev] | [next] | [standalone]


#18328

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-03 11:12 +0200
Message-ID<hoq2o7FscnuU1@mid.individual.net>
In reply to#18327
SuperTex:

> Il 02/08/20 20:22, Jerry Stuckle ha scritto:
>>
>> What's not clear to me is is the OP trying to run this on his own system 
>> (bad idea) or on a hosting service?
> 
> My system.
> 
>> I'm not at all familiar with Docker, so I don't know which OS version of 
>> PHP et. al. he's running.
> 
> $ lsb_release -a
[...]

The *host* system is irrelevant for the system inside the Docker image.

Docker composition means to use an existing image which provides the
runtime environemnt and then adding your own software to it. It's
similar to build a virtual machine, just a more lightweight solution.

-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18316

FromPercival John Hackworth <pjh@nanoworks.com>
Date2020-08-01 14:25 -0700
Message-ID<0001HW.24D615420083DE4B700005CBC2CF@news.individual.net>
In reply to#18309
On 01-Aug-2020, SuperTex wrote
(in article <rg3uih$109q$2@gioia.aioe.org>):

> Il 29/07/20 16:33, Jerry Stuckle ha scritto:
> >
> > PHP extensions are installed in PHP, not Wordpress. Only a system
> > administrator can do that.
>
> The admin of?
> Of my pc?
> o_O

OP: If this is on your PC, you'll have to compile and install the php module 
yourself. It can be done, but if you've never done it, you'd best hire a 
college student to do it for you.

-- 
DeeDee, don't press that button! DeeDee! NO! Dee...

[toc] | [prev] | [next] | [standalone]


#18306

FromArno Welzel <usenet@arnowelzel.de>
Date2020-07-30 15:40 +0200
Message-ID<hog0u9Fo9q6U3@mid.individual.net>
In reply to#18304
SuperTex:

> Il 29/07/20 12:49, Arno Welzel ha scritto:
>> SuperTex:
>>
>>> $ curl http://localhost:8000
>>>
>>> Among other things, appears:
>>>
>>> Fatal error: Uncaught Error: Call to undefined function
>>> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
>>>
>>> I suppose you need to install the php-imap extension (or something similar).
>>
>> No - YAML has nothing to do with IMAP. YAML is handled php-yaml.
>>
>> If you created this plugin yourself you should think about using plain
>> PHP files for configuration instead of YAML. Developing WordPress
>> plugins which depend on the YAML extension is not a good idea.
> 
> I apologize.
> I meant php-yaml extension (or something similar).
> 
> But can't you just install php extensions in docker/wordpress?

See this:

<https://stackoverflow.com/questions/49864132/adding-php-extensions-using-docker-compose>

But anyway: relying on php-yaml is not a good idea if you ever want to
use your WordPress plugin anywhere outside your own local docker setup.

-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18308

FromSuperTex <a@b.invalid>
Date2020-08-01 16:33 +0200
Message-ID<rg3ufh$109q$1@gioia.aioe.org>
In reply to#18306
Il 30/07/20 15:40, Arno Welzel ha scritto:
> SuperTex:
> 
>> Il 29/07/20 12:49, Arno Welzel ha scritto:
>>> SuperTex:
>>>
>>>> $ curl http://localhost:8000
>>>>
>>>> Among other things, appears:
>>>>
>>>> Fatal error: Uncaught Error: Call to undefined function
>>>> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
>>>>
>>>> I suppose you need to install the php-imap extension (or something similar).
>>>
>>> No - YAML has nothing to do with IMAP. YAML is handled php-yaml.
>>>
>>> If you created this plugin yourself you should think about using plain
>>> PHP files for configuration instead of YAML. Developing WordPress
>>> plugins which depend on the YAML extension is not a good idea.
>>
>> I apologize.
>> I meant php-yaml extension (or something similar).
>>
>> But can't you just install php extensions in docker/wordpress?
> 
> See this:
> 
> <https://stackoverflow.com/questions/49864132/adding-php-extensions-using-docker-compose>
> 
> But anyway: relying on php-yaml is not a good idea if you ever want to
> use your WordPress plugin anywhere outside your own local docker setup.
> 

-- SNIPPET ---
    wordpress:
         dockerfile: extensions
         #image: wordpress:latest
--- END SNIPPET ---

$ docker-compose build
The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.wordpress: 'dockerfile'

[toc] | [prev] | [next] | [standalone]


#18310

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-01 16:40 +0200
Message-ID<hold6aFst6hU1@mid.individual.net>
In reply to#18308
SuperTex:

> Il 30/07/20 15:40, Arno Welzel ha scritto:
>> SuperTex:
>>
>>> Il 29/07/20 12:49, Arno Welzel ha scritto:
>>>> SuperTex:
>>>>
>>>>> $ curl http://localhost:8000
>>>>>
>>>>> Among other things, appears:
>>>>>
>>>>> Fatal error: Uncaught Error: Call to undefined function
>>>>> yaml_parse_file() in /var/www/html/wp-content/plugins/mytest/main.php
>>>>>
>>>>> I suppose you need to install the php-imap extension (or something similar).
>>>>
>>>> No - YAML has nothing to do with IMAP. YAML is handled php-yaml.
>>>>
>>>> If you created this plugin yourself you should think about using plain
>>>> PHP files for configuration instead of YAML. Developing WordPress
>>>> plugins which depend on the YAML extension is not a good idea.
>>>
>>> I apologize.
>>> I meant php-yaml extension (or something similar).
>>>
>>> But can't you just install php extensions in docker/wordpress?
>>
>> See this:
>>
>> <https://stackoverflow.com/questions/49864132/adding-php-extensions-using-docker-compose>
>>
>> But anyway: relying on php-yaml is not a good idea if you ever want to
>> use your WordPress plugin anywhere outside your own local docker setup.
>>
> 
> -- SNIPPET ---
>     wordpress:
>          dockerfile: extensions
>          #image: wordpress:latest
> --- END SNIPPET ---
> 
> $ docker-compose build
> The Compose file './docker-compose.yml' is invalid because:
> Unsupported config option for services.wordpress: 'dockerfile'

You should read the ANSWERS there and not the QUESTION.


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18321

FromSuperTex <a@b.invalid>
Date2020-08-02 09:53 +0200
Message-ID<rg5rdq$am9$1@gioia.aioe.org>
In reply to#18310
Il 01/08/20 16:40, Arno Welzel ha scritto:
> You should read the ANSWERS there and not the QUESTION.

E.g.:
https://stackoverflow.com/a/49875802

Maybe I didn't understand it?

[toc] | [prev] | [next] | [standalone]


#18322

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-02 11:49 +0200
Message-ID<honghpFbqmeU1@mid.individual.net>
In reply to#18321
SuperTex:

> Il 01/08/20 16:40, Arno Welzel ha scritto:
>> You should read the ANSWERS there and not the QUESTION.
> 
> E.g.:
> https://stackoverflow.com/a/49875802

Exaclty.

> Maybe I didn't understand it?

No, you just did not do what they said:

  #remove this
  #dockerfile: extensions
  #image: php:7-fpm
  #change with build ...

Then, add Dockerfile file to the docker/php folder:

FROM php:7-fpm

RUN apt-get update && apt-get install -y \
        libicu-dev \
    && docker-php-ext-install \
        intl \
    && docker-php-ext-enable \
        intl

Of course you have to adapt this to your needs (yaml instead of intl and
you don't need libicu-dev).


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#18323

FromSuperTex <a@b.invalid>
Date2020-08-02 15:28 +0200
Message-ID<rg6f1v$g1f$1@gioia.aioe.org>
In reply to#18322
Il 02/08/20 11:49, Arno Welzel ha scritto:
> No, you just did not do what they said:
> 
>    #remove this
>    #dockerfile: extensions
>    #image: php:7-fpm
>    #change with build ...
> 
> Then, add Dockerfile file to the docker/php folder:
> 
> FROM php:7-fpm
> 
> RUN apt-get update && apt-get install -y \
>          libicu-dev \
>      && docker-php-ext-install \
>          intl \
>      && docker-php-ext-enable \
>          intl
> 
> Of course you have to adapt this to your needs (yaml instead of intl and
> you don't need libicu-dev).

--- docker-compose.yml (snippet) ---
    wordpress:
         #image: wordpress:latest
         build: 'docker/php'
--- EOF ---


$ cat docker/php/Dockerfile
FROM php:7-fpm

RUN apt-get update && apt-get install -y \
     && docker-php-ext-install \
         yaml \
     && docker-php-ext-enable \
         yaml


$ docker-compose build
db uses an image, skipping
Building wordpress
Step 1/2 : FROM php:7-fpm
  ---> d7f856a7dcc7
Step 2/2 : RUN apt-get update && apt-get install -y     && 
docker-php-ext-install         yaml     && docker-php-ext-enable 
yaml
  ---> Running in e43351dcd302
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates 
InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main 
amd64 Packages [217 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages 
[7868 B]
Fetched 8370 kB in 7s (1150 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
   lsb-base
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
error: /usr/src/php/ext/yaml does not exist

usage: /usr/local/bin/docker-php-ext-install [-jN] [--ini-name file.ini] 
ext-name [ext-name ...]
    ie: /usr/local/bin/docker-php-ext-install gd mysqli
        /usr/local/bin/docker-php-ext-install pdo pdo_mysql
        /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo 
pdo_mysql shmop

if custom ./configure arguments are necessary, see docker-php-ext-configure

Possible values for ext-name:
bcmath bz2 calendar ctype curl dba dom enchant exif ffi fileinfo filter 
ftp gd gettext gmp hash iconv imap intl json ldap mbstring mysqli oci8 
odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc 
pdo_pgsql pdo_sqlite pgsql phar posix pspell readline reflection session 
shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem 
sysvshm tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zend_test zip

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
ERROR: Service 'wordpress' failed to build: The command '/bin/sh -c 
apt-get update && apt-get install -y     && docker-php-ext-install 
   yaml     && docker-php-ext-enable         yaml' returned a non-zero 
code: 1

[toc] | [prev] | [next] | [standalone]


#18326

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-03 01:50 +0200
Message-ID<hop1qlFlv1rU1@mid.individual.net>
In reply to#18323
SuperTex:

[...]
> error: /usr/src/php/ext/yaml does not exist

Hmm - seems the php source php:7-fpm does not provide yaml.

After checking <https://www.php.net/manual/en/yaml.installation.php> I
realized this is a PECL extension which has to be built similar to this
procedure:

<https://stackoverflow.com/questions/44097266/add-yaml-extension-to-php-on-using-official-alpine-docker-image>

I'm sorry that I don't have a definitive solution, but hopefully you get
the idea to do more research on your own.

-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web