{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/wordpress/issues/102","repository_url":"https://api.github.com/repos/docker-library/wordpress","labels_url":"https://api.github.com/repos/docker-library/wordpress/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/wordpress/issues/102/comments","events_url":"https://api.github.com/repos/docker-library/wordpress/issues/102/events","html_url":"https://github.com/docker-library/wordpress/issues/102","id":116895183,"number":102,"title":"Php-soap extension","user":{"login":"avidsapp","id":11481762,"avatar_url":"https://avatars.githubusercontent.com/u/11481762?v=3","gravatar_id":"","url":"https://api.github.com/users/avidsapp","html_url":"https://github.com/avidsapp","followers_url":"https://api.github.com/users/avidsapp/followers","following_url":"https://api.github.com/users/avidsapp/following{/other_user}","gists_url":"https://api.github.com/users/avidsapp/gists{/gist_id}","starred_url":"https://api.github.com/users/avidsapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avidsapp/subscriptions","organizations_url":"https://api.github.com/users/avidsapp/orgs","repos_url":"https://api.github.com/users/avidsapp/repos","events_url":"https://api.github.com/users/avidsapp/events{/privacy}","received_events_url":"https://api.github.com/users/avidsapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-11-14T04:35:47Z","updated_at":"2016-09-06T20:00:11Z","closed_at":"2015-11-14T18:57:24Z","body":"I can't get the php-extension php-soap to load correctly.\r\n\r\n\r\n\r\nDockerfile:\r\n\r\n    FROM php:5.6-apache\r\n    RUN a2enmod rewrite\r\n        \r\n    # install the PHP extensions we need\r\n    RUN apt-get update && apt-get install -y \\\r\n                libpng12-dev \\\r\n                libjpeg-dev \\\r\n                php-pear \\\r\n                php-http-request \\\r\n        && rm -rf /var/lib/apt/lists/* \\\r\n        && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \\\r\n        && docker-php-ext-install gd\r\n    RUN docker-php-ext-install mysqli\r\n    RUN docker-php-ext-install php-soap\r\n\r\n    ...\r\n\r\nOutput:\r\n\r\n    Step 5 : RUN docker-php-ext-install php-soap\r\n     ---> Running in 1a433edf267f\r\n    error: /usr/src/php/ext/php-soap does not exist\r\n    \r\n    usage: /usr/local/bin/docker-php-ext-install ext-name [ext-name ...]\r\n       ie: /usr/local/bin/docker-php-ext-install gd mysqli\r\n           /usr/local/bin/docker-php-ext-install pdo pdo_mysql\r\n    \r\n    if custom ./configure arguments are necessary, see docker-php-ext-configure\r\n    \r\n    Possible values for ext-name:\r\n    bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imap interbase intl json ldap mbstring mcrypt mssql mysql 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 recode reflection session shmop simplexml snmp soap sockets spl standard sybase_ct sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip\r\n    Service 'web' failed to build: The command '/bin/sh -c docker-php-ext-install php-soap' returned a non-zero code: 1"},"comment":{"url":"https://api.github.com/repos/docker-library/wordpress/issues/comments/245071580","html_url":"https://github.com/docker-library/wordpress/issues/102#issuecomment-245071580","issue_url":"https://api.github.com/repos/docker-library/wordpress/issues/102","id":245071580,"user":{"login":"avidsapp","id":11481762,"avatar_url":"https://avatars.githubusercontent.com/u/11481762?v=3","gravatar_id":"","url":"https://api.github.com/users/avidsapp","html_url":"https://github.com/avidsapp","followers_url":"https://api.github.com/users/avidsapp/followers","following_url":"https://api.github.com/users/avidsapp/following{/other_user}","gists_url":"https://api.github.com/users/avidsapp/gists{/gist_id}","starred_url":"https://api.github.com/users/avidsapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avidsapp/subscriptions","organizations_url":"https://api.github.com/users/avidsapp/orgs","repos_url":"https://api.github.com/users/avidsapp/repos","events_url":"https://api.github.com/users/avidsapp/events{/privacy}","received_events_url":"https://api.github.com/users/avidsapp/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T20:00:11Z","updated_at":"2016-09-06T20:00:11Z","body":"That's one way to do it, however every time you recreate the WordPress container, you will need to redo these steps.\r\n\r\nThe method I used was adding the php extensions in the Dockerfile built from the docker-compose.yml file. The Dockerfile looks like:\r\n\r\n`FROM php:5.6-apache\r\n\r\nRUN a2enmod rewrite expires\r\n\r\n# install the PHP extensions we need\r\nRUN apt-get update && apt-get install -y \\\r\n\t\tlibpng12-dev \\\r\n       \tlibjpeg-dev \\\r\n        libxml2-dev \\\r\n        libmcrypt-dev \\\r\n        libmhash2 \\\r\n        libc6 \\\r\n\t\tphp5-mcrypt \\\r\n\t\tphp-pear \\\r\n\t\tphp-http-request \\\r\n\t\tzlib1g \\\r\n\t\tbzip2 \\\r\n\t&& rm -rf /var/lib/apt/lists/* \\\r\n\t&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \\\r\n\t&& docker-php-ext-install gd mysqli opcache mcrypt soap\r\n\r\n# set recommended PHP.ini settings\r\n# see https://secure.php.net/manual/en/opcache.installation.php\r\nRUN { \\\r\n\t\techo 'opcache.memory_consumption=128'; \\\r\n\t\techo 'opcache.interned_strings_buffer=8'; \\\r\n\t\techo 'opcache.max_accelerated_files=4000'; \\\r\n\t\techo 'opcache.revalidate_freq=60'; \\\r\n\t\techo 'opcache.fast_shutdown=1'; \\\r\n\t\techo 'opcache.enable_cli=1'; \\\r\n\t} > /usr/local/etc/php/conf.d/opcache-recommended.ini\r\n\r\nVOLUME /var/www/html\r\n\r\nENV WORDPRESS_VERSION 4.5.1\r\nENV WORDPRESS_SHA1 9bf09e0ca8f656b650b3056339e2d3eb28c6355e\r\n\r\n# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress\r\nRUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VERSION}.tar.gz \\\r\n\t&& echo \"$WORDPRESS_SHA1 *wordpress.tar.gz\" | sha1sum -c - \\\r\n\t&& tar -xzf wordpress.tar.gz -C /usr/src/ \\\r\n\t&& rm wordpress.tar.gz \\\r\n\t&& chown -R www-data:www-data /usr/src/wordpress\r\n\r\nCOPY docker-entrypoint.sh /entrypoint.sh\r\n\r\n# make entrypoint executable\r\nRUN chmod +x /entrypoint.sh\r\n\r\n# grr, ENTRYPOINT resets CMD now\r\nENTRYPOINT [\"/entrypoint.sh\"]\r\nCMD [\"apache2-foreground\"]`"}}
{"actor":{"display_login":"avidsapp"}}