Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Dan Bryant
@cube-dan
GIve the cook a name, slop in the js code above, save the book, and you're all setup with a shiny new bookmarklet that gives you "I can connect to a vscode + xdebug session" superpowers:
image.png
To make sure everything is A<=>B you can shell into the devilbox and give the xdebug.log file, specified in the xdebug.ini file (above) a tail -f:
 tail -f /var/log/php/xdebug.log
if everything is connecting you'll get this bit of magic pixie powder:
Dan Bryant
@cube-dan
[22630] Log opened at 2021-09-15 22:37:18.304575
[22630] [Step Debug] INFO: Connecting to configured address/port: 10.254.254.254:9000.
[22630] [Step Debug] INFO: Connected to debugging client: 10.254.254.254:9000 (through xdebug.client_host/xdebug.client_port). :-)
... dig the smiley face on the end; because awesome, thats why.
Dan Bryant
@cube-dan
Anyway. Maybe someone can help me out with a problem of my own. After sitting on an xdebug breakpoint too long, proxy_fcgi (probably) decides that I'm done with the connection and barfs out these errors:
==> log/apache-2.4/qualitydigest.com-error.log <==
[Wed Sep 15 16:46:59.355296 2021] [proxy_fcgi:error] [pid 1097:tid 140406884910848] [client 172.16.238.1:64840] AH01067: Failed to read FastCGI header, referer: http://somesite.com.loc/
[Wed Sep 15 16:46:59.356665 2021] [proxy_fcgi:error] [pid 1097:tid 140406884910848] (104)Connection reset by peer: [client 172.16.238.1:64840] AH01075: Error dispatching request to : , referer: http://somesite.com.loc/

==> log/apache-2.4/somesite.com-access.log <==
172.16.238.1 - - [15/Sep/2021:16:44:44 -0600] "GET / HTTP/1.1" 503 299 "http://somesite.com.loc/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0"
Does anyone know how to keep proxy_fcgi — or whatever part of the stack gets bored with me looking at the contents of variables — from timing out and punching back with a 503?
Ghost
@ghost~618bfa826da03739848a40df

Hi all, I'm stuck on something and I could use some help.

I'm having Postman send over a GET request with an Authorization header, but it's not getting to PHP. Apache is probably discarding it, for security reasons. I have tried several ways to tell Apache NOT to do this, but nothing is working. Here's what I've tried:

  1. Adding custom vhost templates to /my-project/.devilbox with the appropriate directives, and confirmed they're being picked up
  2. Adding a custom .conf file to /devilbox/cfg/apache-2.4
  3. Making changes directly to my .htaccess files in my webapp (CakePHP v3)

I've restarted the Devilbox countless times but I'm getting nowhere with this. Any help would be appreciated.

Novitsh
@Novitsh
Does someone have any docs on using Devilbox with mutagen? I read it increases speed a lot. Docker is slow on Mac.
Alberto
@B1NAR10
Hi, I have a problem with mysql since it does not run and gives me an error, what could it be?
Jimmy
@Jarco
Can anyone point me to the documentation or explain to me how I can use the work flavor container. It is set in my docker compose, but I am still missing the drush tool.
3 replies
Nvm. my question, I am now sure I am running the work container. It just doesn't contain drush. If anyone could explain to me how to get drush in there I would be grateful. If I read this correctly it should already be? https://github.com/devilbox/docker-php-fpm
Raa'Shaun Hunter
@CardcaptorRLH85
I've been following the installation instructions and I've reached the point where I'm supposed to be able to access the Devilbox intranet. However, when I try to access it on the port I've assigned in the .env file (the machine I run my containers on has a web server that uses ports 80 & 443 so I assigned Devilbox to 30080 and 30443), I get a connection timeout message in Chrome. I'm accessing this from another machine on the same LAN, would that be a problem?
Raa'Shaun Hunter
@CardcaptorRLH85
I've tried using curl to grab the intranet webpage for devilbox from the machine that my docker containers live on and I received the correct page. However, I can't access it from any other machines. Is it only supposed to be accessible from localhost?
3 replies
oodlenoodle
@oodlenoodle:matrix.org
[m]
Hi, I'm trying to install devilbox on my machine and I'm able to access the intranet from my local machine. I keep getting a timeout and I can't figure out what I'm doing wrong
deneb-v
@deneb-v

Hi, I have 2 devilbox instances running on my docker.

lets says devilbox 1 is running service at backend.loc and devilbox 2 is running service at frontend.loc

is there a way to make the service in devilbox 2 (frontend.loc) able to access backend.loc?

danieltruong
@danieltruong:matrix.org
[m]
Hi, how can I add crontab? crontab -e * php -q "/var/www/html/cron.php" >/dev/null 2>&1
I tried connect to container Httpd and php to add : update; install cron; and crontab -e; add >> crontab -e * php -q "/var/www/html/cron.php" >/dev/null 2>&1 ... But not work. could someone hlep. Thanks
Matei Nicolae - Daniel
@matei1337
How can I enable OpenSSL on Devilbox? I am trying to test something that involves curl, but I get this error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
Raa'Shaun Hunter
@CardcaptorRLH85
I'm running devilbox in Docker on a Synology DS220+ and I have the No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 debitpay.loc error. Do I add this the the NAS' hosts file or the one inside the container?
Raa'Shaun Hunter
@CardcaptorRLH85
I've added this line (as well as ::1 debitpay.loc) to the NAS' hosts file and nothing changed even after restarting the NAS (and therefore all of the containers). What should I try now?
cytopia
@cytopia
Peter Nerád
@neradp
@CardcaptorRLH85 Add 127.0.0.1:HOST_PORT_BIND nameserver to your dns network resolution setup at NAS at first place. If you use some dns service on NAS, add forwarding to 127.0.0.1:HOST_PORT for your development domain.
6 replies
Matei Nicolae - Daniel
@matei1337
service "pgsql" refers to undefined volume devilbox-pgsql-13.0: invalid compose project I get this error after updating the Devilbox to version 2.0.0
1 reply
Matei Nicolae - Daniel
@matei1337
how can i
1 reply
enable display_errors on
devilbox
anatoli
@anatoli:matrix.org
[m]
you most likely don't need that
did you check container logs?
cytopia
@cytopia

Hi everyone, there is finally a new feature release that adds full arm64 support for anyone that already has a Mac M1 notebook :-)

https://github.com/cytopia/devilbox/releases/tag/v2.1.0

clotted
@clotted
Nice 👍 any idea if it should work on arm64 Raspberry Pi? Eg Pi Zero 2 or Pi 4
1 reply
clotted
@clotted
That’s huge 👍 So Raspi 3,4 and zero2!
I see this project gaining more popularity as a result. Portable pocket sized development env 🔥
cytopia
@cytopia

Another release has been drafted: https://github.com/cytopia/devilbox/releases/tag/v2.2.0

This one adds the ability to easily create custom PHP-FPM images (based upon the official Devilbox images). I.e, you're now able to add lots of tools and create your own set of PHP flavours

Ezequias Lopes
@Saiuke_twitter
image.png
image.png
Hi,
I'm using DevilBox on Windows. This is is my first time using Docker. I wanted to know if it's possible to change this CLI. It's horrible and doesn't have any shortcuts.
1 reply
ravinayag@gmail.com
@ravinayag_gitlab

Hello i like this project, https://github.com/cytopia/docker-bind,
Before i deep dive, i would like to check if this will solve my use case.

My use case : I have domain registered and want to have private DNS on subdomain. For Ex. priv.example.com using this bind9 project.
I have CA/Letsencrypt server running under this subdomain. Ex. CA.example.com
Now i have clients with acme connecting to this domain for certs authority to validate by the protocols(( DNS-01, http-01, tls-alpn-01) For ex. A DNS validation should be added in the private DNS.( like clienthost1.priv.example.com)
This entry should added in to the DNS so the acme client can do DNS-01 validation.
So the Sub.sub.domain.com should be added dynamically as A record.

For the above requirement, can this docker-bind project solve my need. ? if yes.. any doc ref...

1 reply
anthony popejoy
@anthonypopejoy2_twitter
hi
Théo D
@TheoD02

Hello all ! how are you ?

I have a request, for tests i need use the following "chrome-php/chrome" package.

I can't install chrome correctly, I've tried several images but I can't get it to work... has someone already succeeded?

Hylosium
@Hylosium
Good afternoon, how can I access s Virtual Host using only IP for my LAN, I don't want to use domains names, neither want to configure the domain for each device in the LAN, can someone help me out with this?
MacExpert
@lcmkevin
Hi all, devilbox is using docker, is it possible to replace docker to podmand / rancher?
Matei Nicolae - Daniel
@matei1337
do somebody know why I can't export a database from devilbox phpmyadmin?
Rodolfo de Souza Pereira
@srRodolfo
Goodnight. How are you? Hope so!
Please, how do I access my projects by cell phone?
Name_Siege
@NameSiege
How do I allow sub directories?
cw95403
@cw95403

New installation of Devilbox here - having problems connecting to the sql servers. I have tried MySQL 5.4, 5.5, 5.6, 5.7 and a variety of MariaDB versions. phpMyAdmin connects fine and I am able to manage the db. I can also connect to the db via 3rd party DBM tools. The issue I am having is that the containers cannot connect to the db server. I get the "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)" error. I have tried connecting to localhost, 127.0.0.1, the assigned IP address for the MySQL container, etc.

I have tried with an .env file that is not modified, as well as one that has been modified for my needs. Any ideas here?

Akash Kumar Verma
@AkashKumarVerma

Hey everybody
I am new to mgento and devilbox and i am stuck at point in this tutorial
https://plumrocket.com/learn/devilbox-docker-wsl2

and i am facing this error on doing docker-compose up the second time

  • error decoding 'Ports': Invalid hostPort: 127.0.0.16379
Jamison Bryant
@jamisonbryant

Following the instructions for an XDebug setup on macOS is not working for me: https://devilbox.readthedocs.io/en/latest/intermediate/configure-php-xdebug/macos/phpstorm.html#configure-php-xdebug-mac-phpstorm

I have followed all the steps (& verified everything...) and I still do not trigger the debugger in PhpStorm on my breakpoints