Questions tagged [ddev]
open source tool for setting up a local PHP development environment.
289
questions
0
votes
1
answer
9
views
How to use ddev commands in its own exec-host hooks for an automated backup
I've made a custom command to my ddev, creating a database backup with a single command (yes, I'm lazy, sorry).
I was thinking if there's some way to hook a ddev command, e.g. ddev poweroff to run ...
0
votes
0
answers
48
views
DDEV: Laravel + Vite + Websockets with Soketi - trouble with port configuration
I am trying to get a local ddev setup working with the stack:
Apache
PHP 8.1
Laravel 9
Vite
Soketi for WebSockets
I am confused on how to configure ports on ddev, and which host/port i should use on ...
0
votes
1
answer
40
views
Why can't I execute vendor/bin/drush (no execute permission on the file)
I have a docker and DDEV setup running on a linux/amd64 machine.
While all commands are working as expected, does ddev drush ... not.
This error is given:
/mnt/ddev_config/.global_commands/web/drush: ...
0
votes
1
answer
19
views
Docker Volumes lost (and DDEV databases) during OS upgrade
About a month ago I created a Drupal 9 instance using DDEV. It was fast and easy! I spent about 8 hours over several user sessions on my Linux laptop customizing my content types and views.
Last week ...
0
votes
1
answer
24
views
Visual Studio Code DDEV and auto reload on Linux
I'm using DDEV with Visual Studio Code and I tried to configure Live Server Extension to automatically auto reload page that I'm working on in Chrome when I hit save in VSC, but it doesn't seem to ...
0
votes
0
answers
22
views
Create a DDEV application with a NodeJS backend instead of PHP
When I run ddev config I get project type options such as php, wordpress, drupal, etc. How can I create a DDEV project with the NodeJS runtime, so I can build a backend using NodeJS, instead of PHP?
0
votes
1
answer
48
views
DDEV/docker-compose: Bind-mount a path with an absolute path
I'm trying to define a volume in ddev like this:
Filename: docker-compose.salesforce.yaml
Contents:
version: '3.6'
services:
web:
volumes:
- /Users/dmgig/JWT:/home/dmgig/JWT:rw
But as you ...
0
votes
2
answers
77
views
Corporate network: `ddev composer create` results in "ssl certificate error"
I'm running ddev under wsl2. I'm behind the zscaler proxy. I was able to copy the zscaler cert to ubuntu "/usr/local/share/ca-certificates" and ran "sudo update-ca-certificates". ...
0
votes
1
answer
31
views
`ddev magento` results in `permission denied: unknown`
After running ddev start i cannot run magento commands from outside of the container.
% ddev magento
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: ...
0
votes
0
answers
81
views
WSL2: ddev sites won't load in a web browser on the Windows side
I setup ddev, ubuntu 18.04 and wsl2 on windows 10 following the https://ddev.readthedocs.io/en/stable/ guide
and video https://www.youtube.com/watch?v=ZMfHaUkhfc0
Ubuntu 20.04 https://www.microsoft....
0
votes
1
answer
55
views
Renaming a ddev project
We are a group of developers that work on multiple ddev projects. Some of these projects have a "." in their name, which by now breaks the PhpStorm integration.
Is there an easy way to ...
3
votes
1
answer
198
views
macOS DDEV drush command Permission denied (Experimental docker settings)
When I updated ddev version 1.19.0 then drush command doesn't work.
$ ddev drush
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/mnt/...
0
votes
0
answers
30
views
Why composer fails to set CodeSniffer in a clone of a Magento2 project?
I cloned a repo through bitbucket, it's a Magento2 project.
Here's some specifics:
I'm using ddev along with docker in a Windows environment.
I've used Ubuntu v18.04
php v7.4.1
composer v2
Now, I'm ...
3
votes
2
answers
418
views
PHP Warning in Typo3DatabaseBackend line 158 after updating DDEV to 1.19
After updating DDEV to 1.19 I get following error after backend login in TYPO3 11.5.8:
PHP Warning: gzuncompress(): need dictionary in
/var/www/html/public/typo3/sysext/core/Classes/Cache/Backend/...
0
votes
1
answer
60
views
How do I reach a ddev site from LAN with docker-ce in an WSL2 enviroment?
When configuring ddev with a project TLD it becomes unreachable when replacing "docker desktop" with "docker-ce".
project_tld: testing
How can I reach the project again from my ...
0
votes
1
answer
160
views
Run ddev containers on port 80, solve port conflict
Instead of using ddev share, I want to run ddev applications on a virtual server (Hetzner, Ubuntu installed, pre-installed docker ce).
As docker already reserved port 80:
Is there a way to forward a ...
0
votes
1
answer
193
views
ddev import-db "ERROR at line 4200: ASCII '\0'" on Windows
I host my site on bluehost. I use ssh mysqldump to export database. It is unzipped or tarred.
Then I use the ddev import-db
and this is the error I get
ddev import-db --src=.tarballs/xxx4_2_2022.sql
...
0
votes
1
answer
30
views
ddev pull command seems to wipe/clear/empty the .downloads folder which results in rsync being redundant
Not sure if I'm doing something wrong but here is my situation. I'm trying to setup a 'provider' to download a database dump and files folder from a remote server, this is working in the most part. ...
1
vote
2
answers
685
views
Driver info: driver.version: unknown error running Selenium and Codeception in DDEV (Mac M1)
I was using VirtualBox for development when i had a windows pc. Later i bought a Macbook M1 and installed the DDEV instead of VirtualBox.
In my old development virtualbox, i installed selenium and ...
2
votes
1
answer
217
views
How to add Python 2 to Ddev's web Docker image
I need to execute a legacy python 2 file inside the Ddev web docker image, but am having trouble figuring out what Debian python libraries are needed to get Python 2 working.
The web container ...
0
votes
1
answer
94
views
why is the .htaccess auth command not working in a directory in Drupal 9
i have a mini website below my sites default files directory and i am trying to make it be password protected with the following .htaccess file which i put in that same directory:
#Protect Directory
...
0
votes
2
answers
139
views
DDEV/Laravel/PHPUnit: Problems with setup in PhpStorm
Using Laravel with DDEV/Docker on a Mac, I am stuck getting PhpStorm to run directly PHPUnit with coverage. I am following these instructions: https://ddev.readthedocs.io/en/stable/users/topics/...
4
votes
2
answers
1k
views
volume already exists but was not created by Docker Compose
This is what i get after i use ddev start on new or any other projects.
I clear all docker images, volumes, etc... and problem repeats again...
Does anybody has the same problem, does it have any ...
1
vote
0
answers
348
views
How to create settings.json and extensions.json outside of image and named config level for an ATTACHED VSCode Container
I'm using WSL 2 for Windows, and I'm currently working on a ddev repo where I am creating a development environment using ddev and VSCode. On initiation of the ddev environment, I am starting up all ...
0
votes
1
answer
99
views
DDEV - Configure multiple environments
Is there a way to have multiple DDEV configurations for the same project? For example, we need to cover the case when we have several servers:
production with Apache + PHP 7.3 + Composer 1;
staging ...
0
votes
1
answer
504
views
How can I install and run Docker Desktop and DDEV on a really old Mac?
Apple supports only the last two preceding major operating system versions. Which leads to the fact that Docker as well as Homebrew dropped the support for those. At the time of the writing this post ...
0
votes
1
answer
71
views
Weird interference between two DDEV projects using PostgreSQL
I am working on two Drupal (7 and 9) projects which use PostgreSQL (based on the procedure described here). I noticed errors when they are both running at the same time: Drupal 7 will complain the ...
1
vote
1
answer
180
views
Can't get webpack dev server connected to ddev host from web container
I try to run an webpack dev server on my ddev web container and get it connected to my host system, so I can reach the URL in my web browser. But I just get an 502: Unresponsive/broken ddev back-end ...
0
votes
1
answer
174
views
custom DDEV pull provider to update local database and user generated files
I'm trying to create a custom DDEV Provider, to import the current database and also user generated files from the web server.
I want to use it with TYPO3 Projects, where I develop the EXT locally ...
1
vote
1
answer
210
views
How to use Django/Nodejs with DDEV
I work a lot with DDEV on my PHP projects and love the features DDEV offers.
Since I also work with Django and NodeJS projects I would like to use them in combination with DDEV. Officially these are ...
-2
votes
1
answer
68
views
ddev-ssh-agent fails to start "entry.sh: no such file or directory"
I have several DDEV machine on my Linux MINT 20.2 / BTRFS system file , and it was working great. But after a reboot , i cant start my DDEV machine anymore, i have a ddev-ssh-agent error:
ERROR: for ...
0
votes
0
answers
260
views
send notification from virtual machine (docker container) to host machine
I m trying to make notify-send passing messages to host and create a notification on my desktop from my local-machine. But its not that simple :(.
My Operation system is Ubuntu and vm machine's Debian....
0
votes
1
answer
99
views
How can I use drush 8 with Drupal 8 or Drupal 9?
I am upgrading a site and don't want to site-install (composer-install) drush at all, but I need it. I know that on my Drupal 7 project drush8 is installed, but I'd like to use it in my Drupal8+ ...
2
votes
1
answer
235
views
How to expose a Nodejs app with DDEV web container on local port 80 - 443 with SSL
Expose nodejs app witch execute on port 3001 on DDEV web container, and access with local port 80 - 443 with SSL for access with https:myproject.ddev.site without add any port.
All without create a ...
0
votes
1
answer
73
views
How can I make in-container tools like drush or typo3cms usable if they're not in the standard DDEV PATH?
I have a nonstandard composer layout, so some of my tools are in docroot/vendor/bin instead of the expected vendor/bin, so they're not in the $PATH inside the web container, and tools like ddev drush ...
0
votes
2
answers
225
views
Overriding DDEV's default db settings in TYPO3 to point to an external Database
We want to use the same (staging) database for our project within our team. So we can develop on our local machines with DDEV and can share the database, so we dont have to export the database and ...
2
votes
1
answer
541
views
How do I install and configure Docker on Ubuntu-like systems (Kubuntu)
i tried using ddev with Linux Kubuntu and did as proceeded as described here:
https://t3terminal.com/typo3-tutorials/install-typo3-docker-ddev/
means:
// Install DDEV
curl -L https://raw....
0
votes
0
answers
71
views
To develop a drupal site locally using DDEV: which Drupal files do you edit locally to replicate an established production site?
To develop a drupal site locally using DDEV: which Drupal files do you edit locally to replicate an established production site?
Background I have a functioning Drupal 8 site on a shared hosting ...
0
votes
0
answers
322
views
Slow HMR with Vite js, DDEV & Craft CMS
I building a boilerplate(Craft CMS) thats uses the power of Vite js, I got this project up and running using DDEV and it runs without problems on Windows 10.
However when I spin up the same project on ...
0
votes
1
answer
158
views
Specify a particular database query from command line with MySQL Workbench
I would like to facilitate opening a database UI for development projects (usually docker containers, bound to arbitrary ports on the host machine) by a generic command.
I wonder if it is possible to ...
1
vote
1
answer
45
views
ddev on PowerShell on Windows Japanese UTF-8
There is an issue with DDEV and UTF8 output on Japanese Win10 systems in powershell & git-bash.
ddev list displays an truncated mark (=) at the end of table lines on dispite the window size being ...
0
votes
0
answers
23
views
How to access logo.svg outside container
I am working on a Drupal 8 theme where there are some color preview features where my logo should appear.
This is done via my preview.html file where the following is inserted:
<div class="...
0
votes
0
answers
180
views
Add a Mercure Hub to DDEV
I am just learning how to use Mercure via learning Symfonys Turbo implementation.
I just followed Symfonycasts Turbo course and had no problems using Turbo Streams plus the Mercure Hub via the symfony ...
1
vote
2
answers
161
views
Controlling Healthcheck with a Compose file in DDEV-Local
Using DDEV Local a project will sometimes fail the healthcheck, but then eventually become available. How could someone disable the healthcheck in order to better diagnose what is happening in a ...
2
votes
1
answer
1k
views
How to move Docker data in WSL2 to a different drive
I'm completely new to docker and ddev and I have just started learning things. My main purpose to use Docker & Ddev is to work on my CMS projects. However, I noticed that by default the docker ...
0
votes
0
answers
148
views
Failed to start ddev-magento2: failed to start ddev-ssh-agent: Failed to run docker-compose
I am trying to do this magento2 quickstart (https://ddev.readthedocs.io/en/stable/users/cli-usage/#magento-2-quickstart) on a windows 10 machiene.
Wrongly I first have done mkdir ddev-magento2 &&...
2
votes
3
answers
300
views
DDEV multisite setup with Acquia pull
I've just gotten DDEV setup and I have multisite working by manually running ddev import-db --target-db=[db-name]. It's working just fine but I would like to figure out how to get database pulls from ...
0
votes
0
answers
85
views
Change ddev password for a single project
I try to change a ddev database password for a single project.
I need to check sign-escaping for a project, because I want to know how and if that works.
How can I change a database password in a ...
3
votes
1
answer
475
views
How can I access ddev's database with external database browsers or similar tools?
As far as I know, DDEV provides configuration options for phpMyAdmin to comfortably work with containered MySQL/MariaDB databases. But I would rather like to use a different tool like e.g. phpStorm or ...
0
votes
1
answer
158
views
How to upgrade to Drupal 9 using DDEV
The instructions at https://ddev.readthedocs.io/en/latest/users/cli-usage/#drupal-9-quickstart clearly state how to set up a Drupal 9 project.
However, what is the procedure to upgrade an up to date ...