Questions tagged [ddev]
open source tool for setting up a local PHP development environment.
298
questions
0
votes
0
answers
10
views
How to install Drupal 9 instance with DDEV in this way?
My customer a has production environment with the following folder structure:
- www
|- maresmuseum
where I only have access to these two empty folders, being the "maresmuseum" the ...
0
votes
0
answers
9
views
Nginx multiple domains and http to https redirection on DDEV
I'm moving some small websites in production to DDEV and, some of them has multiple domains with a 301 redirection to the main HTTPS site.
This config was working well with the "natural" ...
0
votes
1
answer
57
views
How to set PHP memory_limit in DDEV
I am running a local shopware6 environment insider docker with DDEV configuration.
After trying to fetch all products (~11.000) via https://sw6.ddev.site/api/search/product I get following error:
...
-1
votes
1
answer
25
views
Running ddev with colima in external hard disk
I'm trying to run ddev outside my home directory. Colima is the docker platform. I'm wondering how I am able to make it fully run in an external hard disk.
I've added a Drupal9 site in my external ...
-1
votes
1
answer
40
views
How to connect to database (Laravel with ddev and MySQL)
I have a Laravel project where I have to connect to a MySQL db. I deployed the project with ddev, so I´m using docker.
The .env file have this credentials:
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
...
0
votes
0
answers
27
views
ddev start - shows operation not permitted
Installed DDEV to use to run our local server.
On my local github repo folder, I run the following
$: ddev start
this shows the following error below:
Adding custom/shell commands failed: Failed to ...
0
votes
1
answer
28
views
DDEV with WSL2: Browser on Windows can't access DDEV project in WSL2
Hello after installing Ddev and ddev config under wsl2 Windows my domain is not accessible in the Windows browser. I installed Mkcert according to the instructions. Do I have to consider anything ...
0
votes
1
answer
38
views
Drush in ddev returns BadRequestHttpException
When I try and run any drush commands within ddev (even just drush itself), I get a BadRequestHttpException. My drush version is 11.0.9 . I have tried ddev restart, ddev stop/start, and ddev delete; ...
0
votes
1
answer
26
views
DDEV IMPORT-DB: failed to extract provided archive: error during read of tar archive | err: archive/tar: invalid tar header
I am trying to import a mySQL database using DDEV but I am running into the following error:
ddev import-db --src=.ddev/imports/db/hfweb.tar.gz
Failed to import database db for hfweb: failed to ...
0
votes
1
answer
23
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
1
answer
214
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 ...
1
vote
1
answer
120
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
26
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
33
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
28
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
85
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
128
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
54
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
153
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....
1
vote
1
answer
117
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
332
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
41
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
473
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
113
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
256
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
271
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
36
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
988
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 ...
3
votes
2
answers
320
views
How to add Python and pip or conda packages to DDEV
I need to execute a Python script inside the Ddev web docker image, but am having trouble figuring out what Debian python libraries are required to get Python binary with additional py package ...
0
votes
1
answer
114
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
173
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
2k
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 ...
2
votes
0
answers
424
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
127
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
922
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
87
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
238
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
214
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
242
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
90
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
298
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
128
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
295
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
74
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
251
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
670
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
75
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
422
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
176
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
66
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 ...