Questions tagged [ddev]

open source tool for setting up a local PHP development environment.

ddev is an open source tool for setting up a local PHP development environment, explicitly supporting Drupal, TYPO3, WordPress and Backdrop.

394 questions
3
votes
2 answers

How to install the SQL Server PHP drivers in DDEV-Local?

I'm working on a DDEV-Local project where I need the SQL Server drivers for PHP (sqlsrv and pdo_sqlsrv). How can I add them to its web container? I can't use the extra packages configuration because it requires adding external repositories.
wizonesolutions
  • 577
  • 3
  • 15
3
votes
1 answer

How to add alias on post-start hook?

I need to add alias for certain commands, but can't figure out how to do this with post-start hooks. For example, I want alias ll='ls -lah'. Thanks.
JanneS
  • 63
  • 6
3
votes
6 answers

How to relocate DDEV project that was moved to different directory?

Scenario DDEV project has been moved from /home/old-path/project-name to /home/new-path/project-name executing ddev start in new location shows the following error Unable to get project(s): stat /home/old-path/project-name: no such file or…
Oliver Hader
  • 4,093
  • 1
  • 25
  • 47
3
votes
2 answers

How can I speed up my first few pages on a ddev Drupal 8 project?

Drupal 8 is notoriously slow on the first page (like the install page) or the front page after a webserver starts up (including under ddev). Is there a way I can speed it up a bit? I think the problem is that all those thousands of Drupal php files…
rfay
  • 9,963
  • 1
  • 47
  • 89
3
votes
1 answer

How to use a separate node container in your ddev setup?

Sometimes you want to use a custom node version in your ddev setup. I will give an example configuration how this can be archived.
Tim Schreiner
  • 513
  • 4
  • 14
3
votes
1 answer

How can I use the composer cache from my host machine in DDEV containers?

I'd like to use the composer cache from my host machine also in my DDEV containers to prevent unnecessary downloads and save time.
Peter Kraume
  • 3,577
  • 2
  • 21
  • 39
3
votes
1 answer

How to set up Solr server for TYPO3 using DDEV?

I have TYPO3 development environment set up using DDEV. Now I want to add Solr server to it, and use Ext:Solr extension for indexing and searching. How can I set up Solr server to be available from the ddev web container?
3
votes
2 answers

How to pair DDEV databases for a migration from Drupal 7 to Drupal 8

I realise this is not strictly speaking a ddev support question, but I am hoping you can point me in the right direction. Quite simply, I want to upgrade a Drupal 7 site to Drupal 8 with the Migrate module. Both sites would be in their own DDEV…
MrPaulDriver
  • 243
  • 1
  • 13
3
votes
1 answer

After upgrading to ddev v0.19.0 I can't do a ddev import-db: Access denied for root

I keep a sql import file that I regularly use to build a site, and after upgrading to ddev v0.19.0, I get this when I do `ddev import-db --src=.tarballs/d7git.sql.gz: Failed to import database for d7git: Failed to run docker-compose [-f…
rfay
  • 9,963
  • 1
  • 47
  • 89
3
votes
2 answers

How to connect to the database in ddev?

I installed successfully ddev for TYPO3 and now want to connect to the mariadb database. But what are the credentials? If I ssh into the container and want to connect I got a password prompt.
Chris
  • 427
  • 4
  • 13
3
votes
2 answers

How can I step-debug a drush command with ddev and PhpStorm?

I need to debug a drush command in a ddev project, but I don't know how to do it. In ddev v0.18.0, the PhpStorm debugger breaks at the beginning, but it can't find the associated code.
rfay
  • 9,963
  • 1
  • 47
  • 89
3
votes
1 answer

How can I set environment variables inside ddev's containers?

I need to set environment variables inside ddev's web container. How can I do that? I've seen techniques that override the nginx configuration and such but that sounds too hard.
rfay
  • 9,963
  • 1
  • 47
  • 89
3
votes
4 answers

How to set TYPO3_CONTEXT in ddev

My ddev environment always runs in production mode. How to change that? SetEnv TYPO3_CONTEXT Development
bschauer
  • 958
  • 9
  • 33
2
votes
1 answer

DDEV/PhpStorm - invalid ddev-docker-compose-full.yaml

DDEV/PhpStorm - invalid ddev-docker-compose-full.yaml I'm trying to setup PhpStorm CLI interpreter and face this... I found that PhpStorm has/had problems with docker-compose2, but did not find a solution. ddev version ITEM VALUE …
sv3n
  • 319
  • 4
  • 17
2
votes
1 answer

ddev get drud/ddev-platformsh configuration - error when generating needed environment variables on MacOS

I'm encountering an issue with undefined project variables following the installation steps outlined here: https://github.com/drud/ddev-platformsh#install Steps 1-3 were smooth, with no issues. On step 4 ddev get drud/ddev-platformsh, the script…
scaffolding
  • 153
  • 2
  • 13