Php alpine install extension

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

PHP APK Repository for Alpine Linux

glensc/php-alpine-codecasts

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

PHP Repositories for Alpine — by CODECASTS

«Maybe Up-to-date, PHP packages for Alpine Linux.»

Maintained by @hernandev. Based on Valery Kartel scripts.

This project provides a simple alternative for running updated PHP on Alpine Linux.

We pack and release PHP versions as soon they are available on http://php.net. (At least, we try to.)

Additionally, many PECL extensions are also available as packages as well.

For short, this project will support 2 minor version of both PHP and Alpine at time.

Alpine Version PHP Version Current Release Repository URL
3.9 7.3 https://dl.bintray.com/php-alpine/v3.9/php-7.3
3.8 7.3 https://dl.bintray.com/php-alpine/v3.8/php-7.3
3.8 7.2 https://dl.bintray.com/php-alpine/v3.8/php-7.2

Alpine v3.7 is now deprecated and removed from this documentation. Your scripts will not stop working since the files are still available but they will not be receiving new builds from now on. PHP 7.1.x is now deprecated and removed from this documentation. Your scripts will not stop working since the files are still available but they will not be receiving new builds from now on. PHP 7.0.x is now deprecated and removed from this documentation. Your scripts will not stop working since the files are still available but they will not be receiving new builds from now on.

Each version is available on a separate repository, choose the one you want and follow the instructions below:

In some cases, the packages on the repositories may present conflicts with official packages.

To solve that, each page was aliases as php-name , without the 7 indicator.

Considering this, all installs are now encouraged to reference the virtual names when installing.

The examples on this documentation are now updated to reflect this decision.

The original names are kept, and it should not break working scripts.

If you want, you can use the base images as your starting point on this repository:

Image Name Tag FROM Example Description
codecasts/alpine-3.9 php-7.3 FROM codecasts/alpine-3.9:php-7.3 PHP 7.3 on Alpine v3.9
codecasts/alpine-3.8 php-7.3 FROM codecasts/alpine-3.8:php-7.3 PHP 7.3 on Alpine v3.8
codecasts/alpine-3.8 php-7.2 FROM codecasts/alpine-3.8:php-7.2 PHP 7.2 on Alpine v3.8

The following code snippets are intended for quick usage on either shell scripts or Dockerfile

Notice that main and community official repositories must be enabled.

You may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway.

# Versions 3.8 and 3.7 are current stable supported versions. FROM alpine:3.9 # trust this project public key to trust the packages. ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub ## you may join the multiple run lines here to make it a single layer # make sure you can use HTTPS RUN apk --update add ca-certificates # add the repository, make sure you replace the correct versions if you want. RUN echo "@php https://dl.bintray.com/php-alpine/v3.9/php-7.3" >> /etc/apk/repositories # install php and some extensions # notice the @php is required to avoid getting default php packages from alpine instead. RUN apk add --update php@php RUN apk add --update php-mbstring@php RUN apk add --update php-you-extension-name-here@php

You may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway.

#!/usr/bin/env sh # install curl and certificates to download the key apk add --update curl ca-certificates # download the repository public key curl https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub -o /etc/apk/keys/php-alpine.rsa.pub # add the repository for the php / alpine version corresponding echo "@php https://dl.bintray.com/php-alpine/v3.9/php-7.3" >> /etc/apk/repositories # install packages # notice that @php is required so you don't end up with default outdated php packages from community repository. apk add --update php@php apk add --update php-redis@php apk add --update php-any-other-extension@php

This is the complete available packages list:

Package Name Type v3.9/php-7.3 v3.8/php-7.2 v3.8/php-7.2
php PHP Core Yes Yes Yes
php-common PHP Core Yes Yes Yes
php-fpm PHP Core Yes Yes Yes
php-cgi PHP Core Yes Yes Yes
php-apache2 PHP Core Yes Yes Yes
php-doc PHP Core Yes Yes Yes
php-dev PHP Core Yes Yes Yes
php-sodium Core Extension Yes Yes Yes
php-bcmath Core Extension Yes Yes Yes
php-bz2 Core Extension Yes Yes Yes
php-calendar Core Extension Yes Yes Yes
php-ctype Core Extension Yes Yes Yes
php-curl Core Extension Yes Yes Yes
php-dba Core Extension Yes Yes Yes
php-dom Core Extension Yes Yes Yes
php-embed Core Extension Yes Yes Yes
php-enchant Core Extension Yes Yes Yes
php-exif Core Extension Yes Yes Yes
php-ftp Core Extension Yes Yes Yes
php-gd Core Extension Yes Yes Yes
php-gettext Core Extension Yes Yes Yes
php-gmp Core Extension Yes Yes Yes
php-iconv Core Extension Yes Yes Yes
php-imap Core Extension Yes Yes Yes
php-intl Core Extension Yes Yes Yes
php-json Core Extension Yes Yes Yes
php-ldap Core Extension Yes Yes Yes
php-litespeed Core Extension Yes Yes Yes
php-mbstring Core Extension Yes Yes Yes
php-mcrypt Core Extension Yes Yes Yes
php-mysqli Core Extension Yes Yes Yes
php-mysqlnd Core Extension Yes Yes Yes
php-odbc Core Extension Yes Yes Yes
php-opcache Core Extension Yes Yes Yes
php-openssl Core Extension Yes Yes Yes
php-pcntl Core Extension Yes Yes Yes
php-pdo Core Extension Yes Yes Yes
php-pdo_dblib Core Extension Yes Yes Yes
php-pdo_mysql Core Extension Yes Yes Yes
php-pdo_pgsql Core Extension Yes Yes Yes
php-pdo_sqlite Core Extension Yes Yes Yes
php-pear Core Extension Yes Yes Yes
php-pgsql Core Extension Yes Yes Yes
php-phar Core Extension Yes Yes Yes
php-phpdbg Core Extension Yes Yes Yes
php-posix Core Extension Yes Yes Yes
php-pspell Core Extension Yes Yes Yes
php-session Core Extension Yes Yes Yes
php-shmop Core Extension Yes Yes Yes
php-snmp Core Extension Yes Yes Yes
php-soap Core Extension Yes Yes Yes
php-sockets Core Extension Yes Yes Yes
php-sqlite3 Core Extension Yes Yes Yes
php-sysvmsg Core Extension Yes Yes Yes
php-sysvsem Core Extension Yes Yes Yes
php-tidy Core Extension Yes Yes Yes
php-wddx Core Extension Yes Yes Yes
php-xml Core Extension Yes Yes Yes
php-xmlreader Core Extension Yes Yes Yes
php-xmlrpc Core Extension Yes Yes Yes
php-xsl Core Extension Yes Yes Yes
php-zip Core Extension Yes Yes Yes
php-zlib Core Extension Yes Yes Yes
php-amqp Extra Extension Yes Yes Yes
php-apcu Extra Extension Yes Yes Yes
php-ast Extra Extension Yes Yes Yes
php-ds Extra Extension Yes Yes Yes
php-imagick Extra Extension Yes Yes Yes
php-mailparse Extra Extension No No Yes
php-memcached Extra Extension Yes Yes Yes
php-mongodb Extra Extension Yes Yes Yes
php-msgpack Extra Extension Yes Yes Yes
php-psr Extra Extension Yes Yes Yes
php-phalcon Extra Extension Yes Yes Yes
php-redis Extra Extension Yes Yes Yes
php-ssh2 Extra Extension No No Yes
php-swoole Extra Extension Yes Yes Yes
php-timecop Extra Extension Yes Yes Yes
php-libsodium Extra Extension Yes Yes Yes
php-scalar_objects Extra Extension Yes Yes Yes
php-secp256k1 Extra Extension Yes Yes Yes
php-xdebug Extra Extension Yes Yes Yes
argon2 Extra Package Yes Yes Yes
argon2-dev Extra Package Yes Yes Yes
libargon2 Extra Package Yes Yes Yes
secp256k1 Extra Package Yes Yes Yes

About

PHP APK Repository for Alpine Linux

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you get php-mysql extensions installed for php:7-fpm-alpine #279

How do you get php-mysql extensions installed for php:7-fpm-alpine #279

Comments

It seems the ‘php7-mysqli’ extension is not available?

FROM php:7-fpm-alpine RUN apk --no-cache update \ && apk --no-cache upgrade \ && apk add --no-cache php7-mysqli 
Sending build context to Docker daemon 2.048 kB Step 1 : FROM php:7-fpm-alpine ---> 50b972b9e729 Step 2 : RUN apk --no-cache update && apk --no-cache upgrade && apk add --no-cache php7-mysqli ---> Running in a04fecd6c73a fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz v3.4.2-2-gd037d87 [http://dl-cdn.alpinelinux.org/alpine/v3.4/main] v3.4.1-50-gd7c21d4 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community] OK: 5967 distinct packages available fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz OK: 16 MiB in 25 packages fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz ERROR: unsatisfiable constraints: php7-mysqli (missing): required by: world[php7-mysqli] The command '/bin/sh -c apk --no-cache update && apk --no-cache upgrade && apk add --no-cache php7-mysqli' returned a non-zero code: 1 

The text was updated successfully, but these errors were encountered:

Источник

andrewmclagan / Nginx, PHP-FPM, Supervisord: Installation steps

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

#
#—————————————————————————
# Install
#—————————————————————————
#
RUN apk —no-cache add \
libmcrypt-dev \
freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \
wget \
git \
nginx \
ca-certificates \
supervisor \
bash \
&& docker-php-ext-install \
mcrypt \
mbstring \
mysqli \
pdo_mysql \
opcache \
&& docker-php-ext-configure gd \
—with-gd \
—with-freetype-dir=/usr/include/ \
—with-png-dir=/usr/include/ \
—with-jpeg-dir=/usr/include/ \
&& NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \
&& docker-php-ext-install -j$ gd \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& chown -R www-data:www-data /var/lib/nginx \
&& chown -R www-data:www-data /var/www \
&& curl -sS https://getcomposer.org/installer | php — —install-dir=/usr/bin —filename=composer \
&& composer global require «hirak/prestissimo:^0.3»

Источник

Читайте также:  Java new что это
Оцените статью