Git Product home page Git Product logo

docker-lamp's People

Contributors

davidjguru avatar isholgueras avatar keopx 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-lamp's Issues

APC

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/apc.so' - /usr/lib/php/20160303/apc.so: undefined symbol: apc_iterator_obj_init in Unknown on line 0

[Documentar] Usuario local identico al usuario de docker

Para evitar esta configuración tan compleja, creo que es interesante esto:

Añadir el siguiente usuario:

RUN useradd me

Con esto conseguimos un usuario con uid 1000. Que quiere decir esto, pues que este usuario es el equivalente al usuario de nuestra maquina con uid 1000. Por tanto al ejecutar bash ejecutaríamos como si fuese nuestro usuario local.

Para ejecutar el bash lo haríamos así:

$ docker exec --user='me' -it {nombre_contenedor} bash

De esta manera simplificamos el entorno de configuración y evitamos tener que hacer todas esas operaciones fuera del contenedor.

Igual es muy loco todo esto, pero creo que esto simplificaría el proceso.

PD: también se podría añadir el usuario al grupo www-data si fuese necesario.

usermod -G www-data -a me

Referencia:

Setup para opcache en la version de php7

Es necesario añadir las mejoras de opcache para la cache de php basada en las recomendaciones para Drupal.

Aquí la configuración:

opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
        echo 'opcache.memory_consumption=128'; \
        echo 'opcache.interned_strings_buffer=8'; \
        echo 'opcache.max_accelerated_files=4000'; \
        echo 'opcache.revalidate_freq=60'; \
        echo 'opcache.fast_shutdown=1'; \
        echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini

Can't connect to local MySQL server

I tried to install Drupal from a fresh clone but when it comes to DB credentials it fails:

Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] No such file or directory.

Steps performed

  • $ git clone https://github.com/keopx/docker-lamp keopx
  • $ cd keopx/data
  • $ rm -rf www
  • $ drush dl (local Drush on my Mac)
  • $ mv drupal-8.4.4 www
  • $ docker-compose up -d
  • everything fine, no error
  • Browser: http://localhost:8008
  • run installation routine
  • then stops on DB connection (UN: drupaluser, PW: drupalpass, DB: drupal) with above error

I then tried

  • $ docker exec -ti keopx_web_1 bash
  • inside I tried: $ mysql -uroot -proot
  • Follwing error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")

Do have to perform anything extra before the MySQL container is available to the web container?

Error al activar xdebug

Cuando se descomenta la línea:

- ./config/php/xdebug.ini:/etc/php/${PHP_VERSION}/apache2/conf.d/20-xdebug.ini

devuelve el siguiente error:

web_1 | rm: cannot remove '/etc/php/7.1/apache2/conf.d/20-xdebug.ini': Device or resource busy

README.md

Revisar la documentación y hacer mas comprensiva.

docker_mysql_1 exited with code 1

Al ejecutar docker-compose up con la la opción - ./config/mysql/my.cnf:/etc/mysql/my.cnf me devuelve el error: docker_mysql_1 exited with code 1

Cuando vuelvo a lanzar docker-compose up me devuelve lo siguiente:
mysql_1 | 190121 16:27:05 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'

Mi .env file https://gist.github.com/oskarcalvo/dc75731f2084438eef4732578fd16c7b
Mi docker-compose.yml file https://gist.github.com/oskarcalvo/540b2c9391fc6746950f0640b8885fba

Problems to activie PHP5.6

Hi keopx,
thx for your cool docker stuff. I tried to use the configuration with PHP 5.6. I became the following answer:
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

What can i do, to fix it?

Many thx for your help and an good time between the years. ;)
m.orange

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.