Sign inSign up

ste80pa/php-lamp-xdebug

By ste80pa

Updated about 9 years ago

Complete LAMP stack for PHP development, profiling and debugging

Image
2

1.1K

ste80pa/php-lamp-xdebug repository overview

Docker image for development and debugging purpose.

Source available at https://github.com/ste80pa/php-lamp-xdebug.

Pre-installed Software

WEBGRIND

The image comes with WebGrind pre-installed https://github.com/jokkedk/webgrind and accessible under /webgrind/ location

PHP
  • PHP 7.1.11-0
  • Zend Engine v3.1.0
  • Zend OPcache v7.1.11-0
  • Xdebug v2.5.5
MARIADB
  • MariaDB Ver 15.1 Dristrib 10.1.25 using readline 5.2
APACHE
  • Apache/2.4.29
COMPOSER
  • Composer 1.6.2

Environment Variables

XDEBUG_REMOTE_HOST

This is the most critical setting. On Unix / Linux / MacOs machine must be set to the ip of the network interface card or to an alias ip address.

On MacOs you can create an alias typing

bash# sudo ifconfig lo0 alias 192.168.1.99 255.255.255.0

On Linux / Unix (this can vary depending on the distibution / os )

bash# ifconfig lo0:0 192.168.1.99 netmask 255.255.255.0 up

On Window machine (requires administrator privileges)

First search for interface alias

PS C:/>Get-NetIPInterface | Format-Table

then add alias

PS C:/>netsh interface ip add address "Loopback Pseudo-Interface 1" 192.168.1.99 255.255.255.0

XDEBUG_REMOTE_PORT

Sets the default remote port. By Default it is set to 9000

SITE_TYPE

SITE_TYPE environment variable instruct the stack about the kind of configuration apache should use, in other words sets the DocumentRoot on web, public or to the root of the folder you attached to the volume /var/www/html.

The values accepted are:

  • laravel
  • symfony
  • normal

Tag summary

Content type

Image

Digest

Size

285.6 MB

Last updated

about 9 years ago

docker pull ste80pa/php-lamp-xdebug