abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

I can't seem to get Wordpress working #156

Closed ikifar2012 closed 5 years ago

ikifar2012 commented 5 years ago

I used this command to build the image:

docker build --build-arg \
    plugins=cloudflare,git \
    github.com/abiosoft/caddy-docker.git#:php

My Caddyfile:

https://www.glennsteplock.ca {
  root /var/www
  gzip
  fastcgi / 127.0.0.1:9000 php
  tls {
      dns cloudflare
  }
  rewrite {
    if {path} not_match ^\/wp-admin
    to {path} {path}/ /index.php?_url={uri}
    }
  log stdout
}

This is the error I get in the log:

dial tcp 127.0.0.1:9000: connect: connection refused
abiosoft commented 5 years ago

You haven't started php-fpm. Add this line to your Caddyfile below the fastcgi line like it is in the default Caddyfile.

on startup php-fpm7
ikifar2012 commented 5 years ago

Thank you I got it working