Coder Social home page Coder Social logo

dlamp's People

Contributors

fmfpereira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dlamp's Issues

Error 500 installing Wordpress - step 2

missing mysqli extension
Replace on Dockerfile

# INSTALL PHP EXTENSIONS
RUN docker-php-ext-install gd json mbstring pdo pdo_mysql zip opcache intl xsl

by

# INSTALL PHP EXTENSIONS
RUN docker-php-ext-install gd json mbstring pdo pdo_mysql mysqli zip opcache intl xsl

PHP 5.6 build fails.

The new xdebug version requires PHP version >= 7.0.0 and it fails in the CI build.

Since PHP 5.6 end of life is scheduled to be on 31 of December of 2018, it make sense to create a legacy branch with specific configurations for PHP 5.6, leaving the master branch with latest supported major version.
Sooner or later official PHP docker Hub will also drop the support for PHP 5.6.

CI build should also be split by PHP major/minor version.

  1. 5.6
  2. 7.0
  3. 7.1
  4. 7.2
  5. 7.x (Each supported Official PHP Docker Hub supported major/minor version)

The build error log

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update pecl/xdebug requires PHP (version >= 7.0.0), installed version is 5.6.33 No valid packages found install failed ERROR: Service 'web' failed to build: The command '/bin/sh -c pecl install xdebug' returned a non-zero code: 1

Re add Apache enviroment variables

Docker apache environment variables must exist and cannot be arguments.

The initial solution worked: Set the ENV variable with the ARG value.

Need to roolback this solution.

Fix comments on php.ini

# For linux replace by your docker0 network ip (default)
# For docker4mac use "docker.for.mac.localhost" as xdebug.remote_host

This comments should use ";" instead of "#"

Add nginx ssl proxy configuration

Sometimes there is the need to enable https when working with some external API's on stating environment.
Local environments https connectivity can be solved with ngrok [see #21].

As most projects will work locally, re-configuring apache container to enable ssl is complicated for most regular users and an overload for most developers.

The most simple and elegant solution is to create a new compose file that runs a nginx reverse proxy that forwards all https requests to the web container on http.

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.