GithubHelp home page GithubHelp logo

splitbrain / docker-phpfarm Goto Github PK

View Code? Open in Web Editor NEW
224.0 22.0 61.0 280.06 MB

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

Shell 86.34% PHP 13.66%
docker php phpfarm gitlab-ci docker-image

docker-phpfarm's Introduction

Hi there 👋

I'm Andreas Gohr, welcome to my github profile. I'm a web developer and maker living in Berlin, Germany. You probably know me from my work on DokuWiki, but you'll find all kinds of other projects here. Check the links below to get started.

🔨 Check out what I'm currently working on

These are the projects I most recently worked on.

📜 My recent blog posts

I blog at splitbrain.org for nearly two decades now. Here is what I have published recently.

♥️️ These awesome people sponsor me (thank you!)

If you like what I'm doing, you can sponsor me on github. These fine people already do.

:octocat: All the statistics

github stats top languages

🐙 Octo-Ring

I'm a member of Octo-Ring - a webring (remember those?) for github user profiles. Because why wouldn't I?

docker-phpfarm's People

Contributors

eugenesia avatar splitbrain avatar thajeztah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-phpfarm's Issues

Can't connect to local MySQL server through socket

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)

xdebug vscode macos debugging not working

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.

museum.php.net is down

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 👍)

php mail

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

Commands executed as root

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)?

xdebug?

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

docker-compose example

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

  • vhosts (project-a.docker, project-b.docker)
  • setup projects in right folder : ./project-a => /var/www/php56/project-a and ./project-b => /var/www/php7.0/project-b

php 8

Hi will you support php 8 ?

xdebug in php 7.1

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?

include opcache

hi, would it be possible to include opcache in your builds? thanks, dan

Consider adding nginx support

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?

virtual hosts

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 !

do not use default host on port 80

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

Error during "docker run"

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.

PHP DEBUG versions

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.

mysql

How add php-mysql support for image?

Integrate with CircleCI

Unable to integrate this project to CircleCI as I don't have admin access to this repo - see screenshot.

circleci_cannot_add_splitbrain_docker_phpfarm

May need to contact CircleCI support for help.

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.