avori
September 12, 2024, 10:29pm
1
Your software
My Mautic version is: 5.1
My PHP version is: 8.2
My Database type and version is: 8.0
Your problem
My problem is:
After a long time of screwing around with Laragon, I was finally able to get composer to install mautic. I went to the browser to finalize installation but its stuck on this screen and is not responding to any clicks, and wont move forward.
These errors are showing in the log:
There are no logs var\logs is empty
Steps I have tried to fix the problem:
I have no idea what to even do.
Hi,
I strongly recommend installing docker desktop and install mautic via docker-compose.yml
1. So create a folder
Inside this folder create a file docker-compose.yml
// docker-compose.yml
version: '3'
volumes:
mautic-mysql-data:
mautic-config:
mautic-logs:
mautic-media-files:
mautic-media-images:
mautic-cron:
services:
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- mautic-mysql-data:/var/lib/mysql
ports:
- 3306:3306
healthcheck:
test: mysqladmin --user=$$MYSQL_USER --password=$$MYSQL_PASSWORD ping
start_period: 5s
interval: 5s
timeout: 5s
retries: 100
networks:
- default
mautic_web:
image: mautic/mautic
links:
- db:mysql
ports:
- 8001:80
volumes:
- mautic-config:/var/www/html/config:z
- mautic-logs:/var/www/html/var/logs:z
- mautic-media-files:/var/www/html/docroot/media/files:z
- mautic-media-images:/var/www/html/docroot/media/images:z
- mautic-cron:/opt/mautic/cron:z
environment:
- DOCKER_MAUTIC_LOAD_TEST_DATA=${DOCKER_MAUTIC_LOAD_TEST_DATA}
- DOCKER_MAUTIC_RUN_MIGRATIONS=${DOCKER_MAUTIC_RUN_MIGRATIONS}
env_file:
- .mautic_env
healthcheck:
test: curl http://localhost
start_period: 5s
interval: 5s
timeout: 5s
retries: 100
depends_on:
db:
condition: service_healthy
networks:
- default
mautic_cron:
image: mautic/mautic
links:
- db:mysql
volumes:
- mautic-config:/var/www/html/config:z
- mautic-logs:/var/www/html/var/logs:z
- mautic-media-files:/var/www/html/docroot/media/files:z
- mautic-media-images:/var/www/html/docroot/media/images:z
- mautic-cron:/opt/mautic/cron:z
environment:
- DOCKER_MAUTIC_ROLE=mautic_cron
env_file:
- .mautic_env
depends_on:
mautic_web:
condition: service_healthy
networks:
- default
mautic_worker:
image: mautic/mautic
links:
- db:mysql
volumes:
- mautic-config:/var/www/html/config:z
- mautic-logs:/var/www/html/var/logs:z
- mautic-media-files:/var/www/html/docroot/media/files:z
- mautic-media-images:/var/www/html/docroot/media/images:z
- mautic-cron:/opt/mautic/cron:z
environment:
- DOCKER_MAUTIC_ROLE=mautic_worker
env_file:
- .mautic_env
depends_on:
mautic_web:
condition: service_healthy
networks:
- default
networks:
default:
name: ${COMPOSE_PROJECT_NAME}-docker
Also u need to create .env file in the same root folder:
//.env
COMPOSE_PROJECT_NAME=yourprojectname
COMPOSE_NETWORK=${COMPOSE_PROJECT_NAME}-docker
MYSQL_HOST=db.${COMPOSE_NETWORK}
MYSQL_PORT=3306
MYSQL_DATABASE=yourdatabasename
MYSQL_USER=databaseuser
MYSQL_PASSWORD=somestrongpassword1@
MYSQL_ROOT_PASSWORD=somestrongpassword2@
DOCKER_MAUTIC_RUN_MIGRATIONS=false
DOCKER_MAUTIC_LOAD_TEST_DATA=false
Now ur ready and all you need to do is open terminal, go to the root folder and hit
docker compose up -d
You can access mautic on http://localhost:8001/