Git Product home page Git Product logo

frankenphp-wordpress's Introduction

WordPress on FrankenPHP

Caution

This repository has been deprecated in favor of FrankenWP, an enterprise-grade WordPress image built using FrankenPHP.

Run the popular WordPress CMS on top of FrankenPHP, the modern app server for PHP.

Getting Started

git clone https://github.com/dunglas/frankenphp-wordpress
cd frankenphp-wordpress
docker compose pull --include-deps
docker compose up

Your WordPress is available on https://localhost. Check docker-compose.yml to find DB credentials.

frankenphp-wordpress's People

Contributors

andreitelteu avatar dunglas avatar eliepse avatar jfcoz avatar jok2 avatar withinboredom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frankenphp-wordpress's Issues

Is it possible to run WordPress in worker mode?

It appears that this doesn't use Frankenphp's worker mode. If that's the case, what would be the use-case/advantage of running WordPress within frankenphp? Just that we'd be able to use it within the broader frankenphp framework to take advantage of Caddy, easy container deployment, use Mercure for websockets, perhaps develop/use other Go tools/services in the background, etc?

Also, if this is indeed this case, is at at least technically possible to run WordPress in Worker mode, but just needs some work to implement? If so, I'd be happy to contribute to that if some guidance can be provided.

Using SQLITE database instead of MYSQL?

How about changing from using MYSQL to using SQLITE instead, or should we give an option wether a user want to a mysql or sqlite, maybe we could give a second docker file? how about that?

Im getting some error

=> ERROR [stage-0 6/7] COPY /app/public/wp-config-docker.php /app/public/wp-config.php

failed to solve: failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount1687527480/app/public: lstat /var/lib/docker/tmp/buildkit-mount1687527480/app/public: no such file or directory

Kubernetes support

Hello

Is this project still active?
Is there any way to make this compatible in a Kubernetes cluster? Is Caddyserver a hard requirement for this to work or can it also be done on top of a Kubernetes ingress like Traefik?
Basically the parts that are used to issue SSL certs can also be done automated with Cert-Manager which works with any reverse proxy and ingress.

pull access denied

Can't pull image due to error

error="pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed" host=registry-1.docker.io

MySQL image pulls just fine.
image

Also tried pull images like Caddy, Traefik, NGINX, all work fine.
Only frankenphp-wordpress returns this error

502 error with cache enabler plugin

Hello Team,
Thank you very much the product.

I installed the WordPress along with Caddy using docker-compose on Ubuntu server. But got http 502 error when I enabled the "Cache Enabler" plugin. No issue with another cache plugin, WP Super Cache.

I found below logs in Caddy container.

{"level":"error","ts":1710649725.8919578,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"cloudking:80","duration":3.578969166,"request":{"remote_ip":"49.204.15.79","remote_port":"57056","client_ip":"49.204.15.79","proto":"HTTP/3.0","method":"GET","host":"cloudking.rocks","uri":"/wp-admin/js/chart.js","headers":{"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Site":["same-origin"],"Accept-Encoding":["gzip, deflate, br"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"],"Referer":["https://cloudking.rocks/"],"X-Forwarded-For":["49.204.15.79"],"Sec-Ch-Ua":["\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Brave\";v=\"122\""],"Sec-Fetch-Dest":["script"],"Cookie":[],"Accept-Language":["en-US,en;q=0.6"],"Sec-Ch-Ua-Platform":["\"Windows\""],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["cloudking.rocks"],"Accept":["*/*"],"Traceparent":["00-546167686b20cfa39eb97f234baa4066-a7fa82efd74eb4af-01"],"Sec-Gpc":["1"],"Sec-Ch-Ua-Mobile":["?0"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"cloudking.rocks"}},"error":"writing: H3_REQUEST_CANCELLED"}


{"level":"error","ts":1710649876.649931,"logger":"http.log.error","msg":"dial tcp 172.25.0.8:80: connect: connection refused","request":{"remote_ip":"49.204.15.79","remote_port":"57056","client_ip":"49.204.15.79","proto":"HTTP/3.0","method":"GET","host":"cloudking.rocks","uri":"/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=","headers":{"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Brave\";v=\"122\""],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"],"Sec-Gpc":["1"],"Sec-Fetch-Mode":["navigate"],"Accept-Language":["en-US,en;q=0.6"],"Cookie":[],"Sec-Fetch-Dest":["document"],"Referer":["https://cloudking.rocks/"],"Sec-Fetch-Site":["same-origin"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"cloudking.rocks"}},"duration":0.319388478,"status":502,"err_id":"exhfkxn8m","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}

Am I doing anything wrong?

Wordpress /wp-json malfunction

The Wordpress REST API under the uri path /wp-json doesn't work under FrankenPHP with the included Caddyfile.
Because of this you can't use the Jetpack plugin and probably other things also.
Another symptom of this is that Tools > Site Health reports problems.

Might be related to PHP 8.2 / Wordpress which is beta support still

Adding

               handle_path /wp-json/* {
                        uri strip_prefix /wp-json
                        rewrite index.php?rest_route={uri}
               }

to the Caddyfile helps in /wp-json/ now working but Site Health and Jetpack still fail

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.