Tag: php

Can't see staring installation page of wordpress docker container based on alpine linux

Here is my configuration : OS : Windows 10 Enterprise x64 [Version 10.0.14393] Docker Toolbox: Docker version 1.12.5, build 7392c3b docker-compose version 1.9.0, build 2585387 My docker-compose.yml: version: ‘2’ services: wordpress: image: wordpress:4.7.0-php7.0-fpm-alpine links: – “mysql:mysql-database” ports: – 8080:80 – 9000:9000 expose: – “3306” – “8080” – “80” environment: WORDPRESS_DB_PASSWORD: example mysql: image: mysql ports: […]

Network configuration docker PHP API

I’m trying to create a container with the docker API written in PHP (https://github.com/docker-php/docker-php) I can’t figure the way to configure the network using classes, if I remove the lines, container is created fine but without the port configuration : // Debug $name = “service_1”; $port = 7777; /* Container configuration */ $params = [“name”=>$name]; […]

How to find dependencies before installing a PHP extension with Docker

I’ve been looking at using docker to upgrade my PHP, and looking at the official image, I see that because it’s compressed, they added special commands to install extensions, but that the dependencies must be downloaded first. I can’t seem to figure out how I know what dependencies are required. Docker seems a lot more […]

connect a password of mssql server to other services in using docker

Hello there I am practicing Docker and Docker-compose. It is quite fun and cool. I am a beginner also. I am trying to make a docker-compose.yml file for creating 3 services ( I dont know if this is the right term for it) the services are follows: frontend backend database Here is my code docker-compose.yml […]

Error logging in docker running nginx, php-fpm

I use error logging for debugging in php. I define my error_log file in php.ini then output in my terminal: tail -f /path/to/errorlog/error_log. So as I am debugging I can use error_log(‘debug message’). How do I achieve a similar thing with docker running nginx and php-fpm? Have read similar questions (PHP-FPM doesn't write to error […]

Linking custom container on wercker

I create a container in docker and with id/name i box: ujwaldhakal/laravel build: steps: – install-packages: packages: git – script: name: install phpunit code: |- curl -L https://phar.phpunit.de/phpunit.phar -o /usr/local/bin/phpunit chmod +x /usr/local/bin/phpunit – script: name: install composer code: curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer – script: name: install dependencies code: composer […]

“Error: mysqli_connect() No Such File or Directory”. PHP 7 FPM, MariaDB, Nginx, Docker

I’m learning Docker and am still pretty new to it. I’m trying to get PHP 7 FPM, Nginx and MariaDB to work together ( I’m using this version of PHP 7 FPM because it come with MySQLi already installed) but I receive the following error: Warning: mysqli_connect(): (HY000/2002): No such file or directory in /usr/share/nginx/html/index.php […]

PHP5-FPM missing 'clear_env' option in www.conf

I’m running a Dockerfile with PHP 5.6, which adds the repository at ppa:ondrej/php5-5.6 and then installs the following: RUN apt-get install -y php5-fpm php5-cli php5-gd php5-mcrypt php5-mysql php5-curl php5-imagick php5-intl After that, I used to be able to run this command: sed -e ‘s/;clear_env = no/clear_env = no/’ -i /etc/php5/fpm/pool.d/www.conf Now the repository ppa:ondrej/php5-5.6 is […]

Using the official php docker image and running memcached on start

I have a docker file that I am basing from the php:5.5.36-apache image, for creating image expressly for development. My Dockerfile installs memcached but I am having no luck getting memcached to start on boot. If I ssh into the container and start memcached manually, it starts just fine. FROM php:5.5.36-apache RUN apt-get update \ […]

Why can't apache communicate with php-fpm in separate containers using Docker for Windows?

hope you can help. I’m running the latest stable Docker for Windows on Windows 10. I’ve written a docker-compose file (see below) that builds separate containers, based on Centos 6 with SCL, one for httpd24-httpd (Apache) and one for rh-php56-php-fpm (PHP-FPM). The containers start up fine with the services reporting an OK status. If I […]

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