splitbrain / docker-phpfarm Goto Github PK
View Code? Open in Web Editor NEWA Dockerfile to build an image running multiple PHP versions on Apache
Home Page: http://www.splitbrain.org/blog/2014-02/02-docker_phpfarm
License: MIT License
A Dockerfile to build an image running multiple PHP versions on Apache
Home Page: http://www.splitbrain.org/blog/2014-02/02-docker_phpfarm
License: MIT License
Hello,
Could you provide an example of docker-compose file to simplify the command to start docker ?
I was thinking a docker-compose (and eventually a .env) for
Hi!
First, let me get this out of the way: this is awesome. Thank you for putting it together.
I'm in the middle of setting up a testing environment for the stuff we make at work and on personal projects. We need to quickly be able to test on many different environments from the same codebase. And this, frankly, is an amazing start.
I'm way more than happy to contribute to this project, but want to open some dialogue in terms of support for other pieces to this stack.
First; nginx rather than apache. Thoughts?
According to the documentation xdebug should be active for php 7.1 but as far as I can tell it just isn't there. Not in phpinfo() or any config files, doesn't connect to the IDE, xdebug_break doesn't exist.
It there a mistake in the documentation or is https://hub.docker.com/r/splitbrain/phpfarm/ out of date or something else?
I noticed that the php.ini files under the .php/ directory are not being parsed anymore. The May 2018 build does. The latest do not.
I noticed that the PHP versions built are DEBUG versions. I was going to use this for a local development image. So I modified it a bit. But how do I make it build RELEASE builds of PHP? I wanted to use Z-Ray with the supported versions but that doesn't work with DEBUG builds.
Hi and thank you for your job !
How i can have multiple vhosts, like :
xxx.localhost:8073
xxx.localhost:8072
yyy.localhost:8073
yyy.localhost:8072
etc...
For each website (xxx.localhost) documentRoot can change (like /var/www/xxx/public)
Thank you !
Currently the container starts an Apache on port 80 for the default host. This is not needed and is annoying when you want to use the image with --net=host
PHP error logs should be sent to the containers output
Hi, the debugging not working (all php versions). I'm not sure if the problem is in me. I am docker newbie.
I start vs code and listen for debug connection on port 9000, but noting is happening.
Please advise.
How add php-mysql support for image?
It would be cool if the farm would be preconfigured to expose xdebug's remote debugging on port 90XX
Hey, ๐
are there any chances that there will be a new release on docker.hub?
I saw the last update over there was three years ago (https://hub.docker.com/r/splitbrain/phpfarm), however the latest activity in this repo was some weeks ago (8160342).
I setup my projects with composer and all the files are created as root.
Doesn't matter if I use install, require or create project.
Doesn't matter if I execute command using loaded docker image, or with an independent command.
Is it possible to override that with current user (just like apache's uid)?
Hi, I am testing php5.2 and can't seem to be able to send mail out thru php app to my mail server where it can easily reach in the network!
I checked dockerfiles..seems like I have to add sendmail or postfix to it and then rebuild it
Hi!
I work on Fedora 25. I ran to the local mysqld server, but the php script cannot access the database from the Docker.
I'm not familiar with Docker, can you help ?
#docker run --rm -t -i -e APACHE_UID=48 -v $PWD:/var/www:rw -p 8052:8052 -p 8053:8053 -p 8054:8054 -p 8055:8055 -p 8056:8056 -p 8070:8070 -p 8071:8071 splitbrain/phpfarm:jessie
AH00112: Warning: DocumentRoot [/var/www/html] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Sun Jan 15 14:13:37.545861 2017] [mpm_event:notice] [pid 16:tid 140507995342720] AH00489: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
[Sun Jan 15 14:13:37.545947 2017] [core:notice] [pid 16:tid 140507995342720] AH00094: Command line: '/usr/sbin/apache2'
/var/www/index.php(9) : Warning - mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Hello, I have an error when I use docker run:
In sudo:
docker run --rm -t -i -e APACHE_UID=$UID -v $PWD:/var/www:rw -p 8052:8052 -p 8053:8053 -p 8054:8054 -p 8055:8055 -p 8056:8056 splitbrain/phpfarm
useradd: UID 0 is not unique
chown: invalid user:wwwrun' /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) chown: invalid user:
wwwrun'
With basic user:
docker run --rm -t -i -e APACHE_UID=$UID -v $PWD:/var/www:rw -p 8052:8052 -p 8053:8053 -p 8054:8054 -p 8055:8055 -p 8056:8056 splitbrain/phpfarm
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.6 for ServerName
[Wed Mar 18 19:05:22 2015] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6 configured -- resuming normal operations
Why please ? Thanks.
Hi will you support php 8 ?
how enable short-tag?
In your Dockerfile you use:
COPY var-www /var/www/
COPY apache /etc/apache2/
to copy the Files into your Dockerfile. Maybe it's better to use Volumes to link the Data of your Project-Dir to your Dockerfile: https://docs.docker.com/userguide/dockervolumes/
Using a Volume makes you able to access to the same Data from different Images at the same time.
hi, I've seen you're adding xdebug to the build but somehow it doesn't appear in phpinfo()
PHP Version 5.6.29-0+deb8u1
should I enable it somehow?
thx
regards, dan
inside the container tail -f /var/log/apache2/error.log
not work.
how to see?
I'm willing to try docker-phpfarm, and the system is trying to communicate with museum.php.net to fetch PHP5.2.17... But museum.php.net is down for a while! (see here: bugs.php.net)
Last response : from [email protected] (2014-10-03) : It will be a while. Museum is probably the lowest priority service on this dead box.
Any chance this can be fixed (even by me if I know where to look at ๐)
hi, would it be possible to include opcache in your builds? thanks, dan
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.