Tag: php

Accessing system variables through HHVM

Problem: I want to access environment variables through HHVM that aren’t typically exposed to a default php setup Context: I rely on a couple of system variables to provide dynamic configuration options to a Laravel4 project running in a Docker container. I want to connect to a mysql DB running in another docker container that […]

Docker PHP / Apache Container – Sendmail 553 Error “Domain of Sender Address does not exist” when trying to send mail

I’m having trouble sending e-mail on my PHP/Apache docker container via sendmail. I’m wondering if someone has a simple, straight forward solution. I am not a systems/server expert by any far stretch and my smtp/sendmail expertise is equally underwhelming. Thanks in advance for the help. Below is the error I’m recieiving: sendmail: 553 5.1.8 <apache@a0aca7313106>… […]

Trying to setup lamp and wordpress on kitematic for docker

I am using the following github repositoryies to setup images on kitematic for docker. https://github.com/tutumcloud/tutum-docker-lamp https://github.com/tutumcloud/tutum-docker-wordpress I have them both installed as imags. The docker-lamp gives me a hello world cant connect to local mysql server, and the wordpress just doesnt work at all. Here are the logs from each in order lamp logs https://gist.github.com/anonymous/ad9c56cb817dd619caf8 […]

Creating docker image out of a production environment possible?

I know it’s very common to create Docker containers/images locally upfront of a project and deploy them to a certain environment (DEV/QA/PROD) once you have made changes. But what if you have a project already in production and you want to make local development possible/easier? General design question Is there any (clever) way to clone […]

Add Image to my Base Docker Image

I have a docker base image that runs CentOS 6.5. This image is saved on my computer. I could not find anything that talks about how to add more images into this base image. So for example I have this base image of CentOS6.5, I need too add postgresql 9.3, and php too this base […]

Cant access environment variables in php

Im having issues accessing OS environment variables in php I have apache/php installed on a centos 6.3 image in httpd.conf mod mod_env.so is loaded in php.ini I have set variables_order = “EGPCS” restarted httpd (many times) in shell if I type “env” I get DB_PORT_28017_TCP_PROTO=tcp HOSTNAME=c6188a8bd77f DB_NAME=/rockmongo/db DB_PORT_27017_TCP=tcp://172.17.0.36:27017 TERM=xterm DB_PORT_28017_TCP_PORT=28017 DB_PORT=tcp://172.17.0.36:27017 DB_PORT_27017_TCP_PORT=27017 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/etc/php.d DB_PORT_27017_TCP_PROTO=tcp […]

unable to evaluate symlinks in Dockerfile

When I input docker build -t tutum/apache-php . in docker, it will output the error unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\User\gao\Dockerfile: The system cannot find the file specified. What does this mean? Any advice is helpful. Thank you.

Setting up a PHP decent development environment

After years of spaghetti code (I’m Italian, I do really know what spaghetti are) I’m trying to set up a decent php development environment. This is my battleplan: install git and docker on my laptop; create a docker virtual enviroment as much similar as possible to the production LAMP (shared) server; use sshfs to mount […]

can't run php site using docker on prouduction host

I only have this issue on a Digital Ocean box. On my laptop I can see the website. On production I get 500 when trying to curl my site. if i hit the gateway of that docker from the outside world, i can see my site. but that’s not a solution. i would like to […]

Segmentation Fault (core dumped) while running phpunit

Am getting this error Segmentation Fault (core dumped) when I try to run my unit tests using phpunit. Am stuck with this for 2 days now since I don’t get a clue which is throwing this error. My php version is, PHP 5.3.10-1ubuntu3.13 with Suhosin-Patch (cli) (built: Jul 7 2014 18:54:55) Copyright (c) 1997-2012 The […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.