By drupol on
Hello,
Download drupal:
C:\Projects\drupals\drupaldocker>composer create-project drupal/recommended-project:9.4.8Created docker-compose.yml.
version: '3'
services:
mysql:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
drupal:
image: drupal:latest
ports:
- 80:80
volumes:
- ./web:/var/www/html
- ./vendor:/opt/drupal/vendor
- ./composer.json:/opt/drupal/composer.json
- ./composer.lock:/opt/drupal/composer.lock
links:
- mysql
environment:
- MYSQL_USERNAME=root
- MYSQL_PASSWORD=rootCreating containers:
C:\Projects\drupals\drupaldocker>docker-compose up -d
[+] Running 3/3
- Network drupaldocker_default Created 0.7s
- Container drupaldocker-mysql-1 Started 1.1s
- Container drupaldocker-drupal-1 StartedContainers are running just fine.
Structure: https://ibb.co/GTQS6cw
This site can’t be reached
localhost refused to connect.
Try:
- Checking the connection
- Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
How can I launch drupal? What am I doing wrong?
Thanks!
Comments
Updated the yml file:
Updated the yml file:
From:
To
http://localhost:8080/
Get this:
Maybe try DDev. It has Drupal
Maybe try DDev. It has Drupal Docker templates in it, that are set up specifically for Drupal. It's what I use.
Contact me to contract me for D7 -> D10/11 migrations.
Spent all day to set up d9
Spent all day to set up d9 with ddev. Finally it is working.
Had to install ubuntu, ddev, docker.
Gone thru a lot of troubleshooting.
Browser spins long time. Other sites load just fine. Not sure why this local site takes longer time to load.
Site:
https://ibb.co/0jmLQM1
Also enabled a module via drush for the first time ever. -)
Thanks!
Do you know why I get this
Do you know why I get this error:
Try removing the quotes:
Try removing the quotes:
Contact me to contract me for D7 -> D10/11 migrations.
Now I get this:
Now I get this:
php version
Extracted php zip to
C:\php-8.0.27
Now I have two php folders
C:\php-8.0.27
C:\php-8.2.0
Not sure if downgrade php right or do I need to downgrade php?
Was able to download and install the module.
System php version is 8.2 but I am not sure if php version for this site is 8.0. At this point, I am just confused with php version. Which php version my site is using? I also could not find any php.ini file under ddev directory. Not sure if I also need that file.
What does your composer.json
What does your composer.json look like?
Contact me to contract me for D7 -> D10/11 migrations.
{
Working through the following
Working through the following (I'll go through them in reverse):
Drupal core is set to use 9.5.1, which requires laminas/laminas-diactoros 2.14.0, which requires PHP 7.3, 8.0 or 8.1. You are using PHP 8.2, which is not included in the laminas/laminas-diactoros requirements.
So you have two options, upgrade to a version of Drupal that is compatible with PHP 8.2 (Drupal 10 is compatible), or downgrade PHP to 8.1.
Contact me to contract me for D7 -> D10/11 migrations.
php version
php version
composer.json shows
I was able to install the module above only because I ran the command first:
What would be the usage of php 8.0 mentioned in composer.json?
php version
Yes, you are running 8.2, and Drupal 9 is not compatible with PHP 8.2.
No idea.
Contact me to contract me for D7 -> D10/11 migrations.
Thank you!
Thank you!
For my old drupal 8 proyects
For my old drupal 8 proyects i use
https://github.com/mogtofu33/docker-compose-drupal
works fine for me