![]() ![]() PHP doesn't need a filled in php.ini file.Įxposing any Xdebug port in docker-compose.yml would not work, because it is Xdebug that makes the connection, and exposed ports are for incoming connections only. Just leave the file empty, and only put in the changes that you want to make from the default. The php.ini file really has just the default contents I copied here, nothing special here. I tried exposing port 9000, 9001, 9002, 9003 on docker-compose.yml file as I notice sometimes it uses port 9000, sometimes 9003, still does not work. I tried removing the xdebug.client_host = from xdebug.ini, it does not work. I tried exposing port 9000 on docker-compose.yml file, it does not work. Tried: :9000 (through xdebug.client_host/xdebug.client_port) :-( I also got this on debug.log of WordPress Xdebug: Time-out connecting to debugging client, waited: 200 ms. I used php debug extension for VS Code btw and followed its intructions, still no good. Xdebug.client_host = Īgain I can't seem to make the step debugging work. The php.ini file really has just the default contents I copied here xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini # Copy our xdebug.ini into the location the container's xdebug.iniĬOPY. RUN pecl install xdebug & docker-php-ext-enable xdebug wordpress here in the wp service as I have noticed if I used the later, it is a bit slow? I don't know why? It's slow like installing wp plugins, takes over a minute if I used the later but for the former its like 9-10 sec only.īuild/Dockerfile FROM wordpress:5.7.2-php7.4-apacheĬOPY. Note: yes I intentionally mapped ~/local_wp/wordpress instead of. Note: All these files are inside ubuntu 20.04 installed via WSL 2.Ĭommand: -default-authentication-plugin=mysql_native_passwordĭefine( 'FS_METHOD', 'direct' ) // Required to allow installing of plugins without the need for ftp access It is an empty folder at start but will be populated with WordPress files upon setting up the dev env via docker-compose up. The wordpress folder will contain all wordpress files. Ignore the references.txt file, it has no use here. I can't make the step debugging work with XDebug 3 on WP Dev Env inside Docker + WSL 2 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |