Giter Club home page Giter Club logo

alpine's People

Contributors

glensc avatar petk avatar philetaylor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpine's Issues

PHP 7.3 / Imagick not working

After installing php7.3-imagick php throws errors:

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/lib/php/7.3/modules/imagick (Error loading shared library /usr/lib/php/7.3/modules/imagick: No such file or directory), /usr/lib/php/7.3/modules/imagick.so (Error relocating /usr/lib/php/7.3/modules/imagick.so: _rc_dtor_func: symbol not found)) in Unknown on line 0
PHP 7.3.0 (cli) (built: Dec  6 2018 15:50:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies

Seems like php7.3-imagick is rather old (is not not being built automatically?)

php7.3-7.3.0-r10 x86_64 {php7.3} (PHP-3 BSD LGPL2 MIT Zend) [installed]
php7.3-imagick-3.4.3-r0 x86_64 {php7.3-imagick} (PHP-3) [installed]

Base php is r10, imagick is r0.

PHP-FPM7.2: ERROR: Unable to create the PID file

I have installed the php7-fpm package from the repositories you provide in an apline 3.7 GNU/Linux virtual machine. When I try to launch php-fpm for some reason I get the following error:

[05-May-2018 13:14:14] ERROR: Unable to create the PID file (/run/php/php-fpm7.2.pid).: No such file or directory (2)
[05-May-2018 13:14:14] ERROR: FPM initialization failed

I receive the response if I run the following command:

sudo php-fpm

Furthermore I launched it as a service via:

sudo /etc/init.d/php-fpm7.2 start

But when I try to look for the runninc process it does not find it as the following commands show:

webserver:~$ ps -A | grep php-fpm
 2120 user       0:00 grep php-fpm
webserver:~$ ps -A | grep php
webserver:~$ ps -A | grep php*
 2128 user       0:00 grep php*
webserver:~$ ps -A | grep -e "/php.*/"
 2132 user       0:00 grep -e /php.*/
webserver:~$ ps -A php*
PID   USER     TIME   COMMAND
 2022 user       0:00 sshd: user@pts/0
 2023 user       0:00 -bash
 2134 user       0:00 ps -A php*

Also if I look over the log file /var/log/php/7.2/php-fpm.log I get the following piece of log:

[05-May-2018 13:21:18] NOTICE: configuration file /etc/php/7.2/php-fpm.conf test is successful

[05-May-2018 13:21:18] ERROR: Unable to create the PID file (/run/php/php-fpm7.2.pid).: No such file or directory (2)
[05-May-2018 13:21:18] ERROR: FPM initialization failed

Do you know why php-fpm fails to launch?

readme is outdated

  1. alpine:3.9 not mentioned
  2. php 7.4 not mentioned
  3. php 7.0 mentioned, but no longer present

certificate error for repos.php.earth

Hi Team,
I am using below approach on Alpine linux to build my PHP container.

Approach:
apk add --no-cache wget ca-certificates
&& wget -O /etc/apk/keys/phpearth.rsa.pub https://repos.php.earth/alpine/phpearth.rsa.pub
&& echo "https://repos.php.earth/alpine/v3.8" >> /etc/apk/repositories

However, I started receiving below error since yesterday while building docker container. Can you please help me on this and what is this issue. I am not getting this error while accessing site in browser.

Error:
#9 4.239 fetch https://repos.php.earth/alpine/v3.8/x86_64/APKINDEX.tar.gz
#9 4.530 139816800693196:error:14007086:SSL routines:CONNECT_CR_CERT:certificate verify failed:ssl_clnt.c:1132:
#9 4.533 ERROR: https://repos.php.earth/alpine/v3.8: Permission denied
#9 4.533 WARNING: Ignoring https://repos.php.earth/alpine/v3.8: No such file or directory

inconsistency with php packages

  1. why is that 7.2 and 7.2 have provides line, but 7.1 does not?
@@ -346,6 +349,7 @@

 package() {
   install="$pkgname.post-install"
+  provides="php=$pkgver-r$pkgrel php7=$pkgver-r$pkgrel"
   replaces="php php7"

   cd "$builddir"
  1. why fpm post install does different trickery among versions.
  • 7.1 checks for php-fpm7.2 & php-fpm7.3
  • 7.2 checks for php-fpm7.3
  • 7.3 does not check anything

as a result of these, 7.1 and 7.3 can be installed in parallel, while 7.2 cann not be installed in parallel with any version.

i don't think there should be conflicts between the packages, should allow installing any version in parallel, and symlinks to unversioned paths could left undefined, i.e probably last install will win.

Extensions for multiple PHP branches

Currently there is some error popping up when compiling extensions for different versions of PHP at the same time...

make package p="php7.1-extension php7.2-extension php7.3-extension"

php 7.3.0b3 compatibility for php-redis

Forked from phpredis/phpredis#1397 (comment)

Firstly, not sure if this is the right place or if this is an Apline issue, but... hey ho.

Alpine Linux has PHP 7.3 beta3 available, and 4.1.1 of php7.3-redis

I'm using docker to build a container with PHP 7.3 beta3 with the above.

On installation I get the error below

On running PHP at the command line I get the same error below

Expected behaviour

No errors :)

Actual behaviour

Error:

"_zval_ptr_dtor: symbol not found"

PHP Warning:  PHP Startup: Unable to load dynamic library 'redis' (tried: /usr/lib/php/7.3/modules/redis (Error loading shared library /usr/lib/php/7.3/modules/redis: No such file or directory), /usr/lib/php/7.3/modules/redis.so (Error relocating /usr/lib/php/7.3/modules/redis.so: _zval_ptr_dtor: symbol not found)) in Unknown on line 0

I'm seeing this behaviour on

  • OS: Alpine:latest
  • Redis: n/a
  • PHP: 7.3.0b3
  • phpredis: 4.1.1

Steps to reproduce, backtrace or example script

DockerFile:

FROM alpine:latest

ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
RUN apk update \
    && echo "https://repos.php.earth/alpine/v3.8" >> /etc/apk/repositories \
    && apk add --no-cache supervisor composer git openssh ca-certificates curl wget zlib-dev procps \
    php7.3              \
    php7.3-dev          \
    php7.3-fpm          \
    php7.3-curl         \
    php7.3-zip          \
    php7.3-mbstring     \
    php7.3-pcntl        \
    php7.3-posix        \
    php7.3-iconv        \
    php7.3-intl         \
    php7.3-pdo_mysql    \
    php7.3-tokenizer    \
    php7.3-dom          \
    php7.3-redis        \
    php7.3-xml          \
    php7.3-simplexml    \
    php7.3-json         \
    php7.3-sodium       \
    php7.3-opcache      \
    php7.3-shmop        \
    php7.3-xmlwriter    \
    php7.3-common

# <snip>

EXPOSE 9000

CMD ["php-fpm"]

make private-key: Extra arguments given.

running make private-key gives error Extra arguments given.

i've narrowed it down, it tries to execute:

/v3.9 $ openssl genrsa -out phpearth.rsa.priv 4096 --build --force-recreate
Extra arguments given.
genrsa: Use -help for summary.
/v3.9 $ openssl version
OpenSSL 1.1.1b  26 Feb 2019
/v3.9 $

likely the syntax changed in openssl 1.0 -> 1.1?

Multiple Maintainers Needed

This project needs multiple maintainers to be a success.

Waiting weeks for releases of security releases is not acceptable. I appreciate its a side project but for this project to be a success it needs to have multiple maintainers so that builds can be made in the absence of volunteer help.

As the build instructions are incomplete, and in a previous ticket you alluded to the fact that dedicated hardware/environment was needed, maybe we could encourage you to document all that and open this project (which my business and I guess others depend on). :-)

Server is down

Currently repos.php.earth server is down and is being fixed...

Repo for Alpine 3.8?

Thank you very much for this awesome PHP repo. A few weeks ago Alpine 3.8 released and I wonder if you are planning to release a 3.8 branch of the PHP.earth Alpine repo?

Certificate to domain repos.php.earth expired

Common name: repos.php.earth
SANs: repos.php.earth
Valid from September 3, 2019 to December 2, 2019
Serial Number: 04ace46232f899cc4f89847448985f7aba6d
Signature Algorithm: sha256WithRSAEncryption
Issuer: Let's Encrypt Authority X3

Checket at: 2019-12-03T04:11:00Z

Warning: Found OpenRC directory

When building PHP on Alpine 3.8 the following warning appears:

Found OpenRC directory (/etc/conf.d or /etc/init.d) but name doesn't end with -openrc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.