desarrollo-cespi / docker-php-5.3-alpine Goto Github PK
View Code? Open in Web Editor NEWPHP 5.3 docker image from Alpine Linux
PHP 5.3 docker image from Alpine Linux
Hi, I noticed some of the most recent changes target sorting out JPEG support for the GD extension, but I've noticed that using cespi/php-5.3:modules-apache-latest
as published to Docker Hub, I seem to currently get a version without JPEG support.
Is there a known issue with that tag or something else we should do to enable this feature? The Dockerfile itself seems to include the commands to build with a viable-looking jpeg-dir
and I can see GD itself is definitely enabled.
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/docker/docker-php-5.3-alpine/with-modules/Dockerfile: no such file or directory
Hi!
I'm using your image for and test and so testing portainer.
Both portainer and php-fpm use by default port 9000.
I tried to change php-fpm port but can't do it work.
Here is my configuration:
FROM cespi/php-5.3:modules-fpm-latest
RUN sed -Ei 's|listen = 9000|listen = 9001|' /usr/local/etc/php-fpm.d/zz-docker.conf
RUN sed -Ei 's|;listen = 127.0.0.1:9000|listen = 127.0.0.1:9001|' /usr/local/etc/php-fpm.conf.default
RUN sed -Ei 's|;listen = 127.0.0.1:9000|listen = 127.0.0.1:9001|' /usr/local/etc/php-fpm.d/www.conf
EXPOSE 9001
version: '3'
php-app:
build: './php/'
image: 'php-app:latest'
container_name: php-app
restart: always
ports:
- '9001:9001'
volumes:
- /dados/app1/volume/:/var/www/html/
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5f35c7bdffa6 php-app:latest "docker-php-entrypoi…" 8 minutes ago Up 8 minutes 9000/tcp, 0.0.0.0:9001->9001/tcp php-app
I aways see port 9000 when issue the "docker ps" command.
Thanks!
image cespi/php-5.3:apache
in /etc/apache2/httpd.conf
"Listen 80" not "Listen 0.0.0.0:80"
Hi. How can I activate the mssql driver?
Hi. I see apache2-foreground
script for images cespi/php-5.3:apache
and cespi/php-5.3:modules-apache
is different:
docker run cespi/php-5.3:apache sh -c "cat /usr/local/bin/apache2-foreground" | grep 'envsubst' --
envsubst '${PORT},${APACHE_RUN_USER},${APACHE_RUN_GROUP},${APACHE_DOCUMENT_ROOT},${DIRECTORY_OPTIONS},${ALLOW_OVERRIDE}' < /usr/local/etc/httpd.conf.tpl > /etc/apache2/httpd.conf
docker run cespi/php-5.3:modules-apache sh -c "cat /usr/local/bin/apache2-foreground" | grep 'envsubst' --
envsubst '${APACHE_RUN_USER},${APACHE_RUN_GROUP},${APACHE_DOCUMENT_ROOT}' < /usr/local/etc/httpd.conf.tpl > /etc/apache2/httpd.conf
As a result, I can only have configurable AllowOverride OR extra php modules with each image, but not both.
Is this the desired behavior or a bug?
Hi,
The console shows several messages with permission problems. Like this...
PHP Warning: file_put_contents(/var/www/html/fileNotExist.log) [function.file-put-contents]: failed to open stream: Permission denied in ...
I've tried adding this in my Docker file, but the problem persist.
FROM cespi/php-5.3:apache
RUN set -x ; \
addgroup -g 1000 -S www-data ; \
adduser -u 1000 -D -S -G www-data www-data ; \
set -x ; \
addgroup -g 1000 -S nobody ; \
adduser -u 1000 -D -S -G nobody nobody ; \
set -x ; \
addgroup -g 1000 -S apache ; \
adduser -u 1000 -D -S -G apache apache ;
Hi! How to install and enable php postgresql for php 5.3?
The error show "Fatal error: Call to undefined function pg_connect() "
Thankz
docker-php-ext-install mysql
print error info
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
Hi, thank you very much for your work.
I'm trying to run a command from the docker-compose file but this seems to break the process.
docker-compose.yml
version: "2"
services:
php:
image: cespi/php-5.3:apache
volumes:
- ./app/:/var/www/html
ports:
- "80:80"
# command: sh -c "echo Hello" # exited with code 0
command: sh -c "echo Hello; apache2-foreground" # runs the server without mod_rewrite
app/index.php
<?php phpinfo(); ?>
apache2-foreground
does wakes up the server but mod_rewrite
is not working.
How can I maintain the same behaviour from your image with the command parameter?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.