Sign inSign up

alchatti/wordpress-apache-xdebug

By alchatti

Updated almost 9 years ago

Based on wordpress apache with xdebug installed and enabled for development

Image
0

1.0K

alchatti/wordpress-apache-xdebug repository overview

Tags
-slim

Removed plugins & themes, kept twentyseventeen

Requirements

For xdebug to work you need three thing

  • create conf/xdebug.ini
    ; PHP Configurations
    display_errors = 1
    log_errors = on
    ; XDebug
    xdebug.remote_enable=1
    xdebug.remote_autostart=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_port=9000
    xdebug.var_display_max_depth = -1
    xdebug.var_display_max_children = -1
    xdebug.var_display_max_data = -1
  • in docker-compose.yml add the following
    environment:
      XDEBUG_CONFIG: remote_host=${HOST_IP}
      WORDPRESS_DB_HOST: db:3306
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: wordpress
      WORDPRESS_DB_NAME: wordpress
    volumes:
      - './conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebugmc.ini'
  • Replace ${HOST_IP} with your real IP address

Tag summary

Content type

Image

Digest

Size

168.6 MB

Last updated

almost 9 years ago

docker pull alchatti/wordpress-apache-xdebug