ddev: With magento (1) in htdocs subdirectory, creation of local.xml failed or in wrong location
Describe the bug
Creation of local.xml
failed. selected docroot not added to path
Example error message: Unable to create settings file '/home/kkrieger/htdocs/PROJECT/app/etc/local.xml': open /home/kkrieger/htdocs/PROJECT/app/etc/local.xml: no such file or directory
BUT: I can run ddev start
and the project is running
Only issue is failing creation of the config file
To Reproduce Steps to reproduce the behavior:
- Go to your project folder
ddev config
- Accept projectname
- existing
htdocs
is recognized, accepthtdocs
as docroot - select
magento
from Project Type list => creation of local.xml failed - you should see that ddev tried to create the local.xml in NOT htdocs docroot in which the magento code is located
Expected behavior
Config file should be saved to PROJECT_PATH + previously selected docroot + app/etc/local.xml
Version and configuration information (please complete the following information):
- Ubuntu 20.04 LTS, 64 bit
docker version ✔ 6705 09:46:24 Client: Version: 19.03.8 API version: 1.40 Go version: go1.13.8 Git commit: afacb8b7f0 Built: Wed Mar 11 23:42:35 2020 OS/Arch: linux/amd64 Experimental: false
Server:
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.13.8
Git commit: afacb8b7f0
Built: Wed Mar 11 22:48:33 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.3.3-0ubuntu2
GitCommit:
runc:
Version: spec: 1.0.1-dev
GitCommit:
docker-init:
Version: 0.18.0
GitCommit:
DDEV-Local version v1.13.0
commit v1.13.0
db drud/ddev-dbserver-mariadb-10.2:v1.13.0
dba phpmyadmin/phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.13.0
docker 19.03.8
docker-compose 1.25.0-rc4
os linux
router drud/ddev-router:v1.13.0
web drud/ddev-webserver:v1.13.0
config.yaml
APIVersion: v1.13.0 name: werbekoenig type: magento docroot: htdocs php_version: “5.6” webserver_type: nginx-fpm router_http_port: “80” router_https_port: “443” xdebug_enabled: false additional_hostnames: [] additional_fqdns: [] nfs_mount_enabled: false provider: default use_dns_when_possible: true timezone: “”
- Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? no
Additional context project structure: /home/kkrieger/htdocs/PROJECT/ |- .ddev |- composer.json |- htdocs | - index.php |- vendor
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (14 by maintainers)
Commits related to this issue
- Fix magento-in-subdir failure, fixes #2291 — committed to rfay/ddev by rfay 3 years ago
- Fix magento-in-subdir failure, fixes #2291 — committed to rfay/ddev by rfay 3 years ago
- Fix magento-in-subdir failure, fixes #2291 — committed to rfay/ddev by rfay 3 years ago
Fixed in #3481 - this wasn’t just a magento 1 problem, also magento2
It’s not ignoring it, it reports that it used it, “Found a php codebase at path/to/ddev-config-test/htdocs”, but apparently it’s not looking in there.
Thanks for the re-check on this, it will make it easier to get fixed up. Thanks!
Iam pretty sure my Issue is the same as the initial reported one. Maybe @kkrieger85 can validate " failing creation of the config file" only happens, if the directory does not exist before.