Installation

To install Sword, you need only Docker to be installed on your host.

You don't need to be familiar with Docker. Everything is taken care of for you. Just download and install itopen in new window.

To create a new project, simply replace myproject by the name of your project and run:

docker run --rm --pull=always -t -e HOST_PWD="$PWD" \
    -v "$PWD":/app -v /var/run/docker.sock:/var/run/docker.sock \
    ghcr.io/phpsword/installer myproject

Wait a couple of minutes. Done! Now visit https://myproject.localhost/open in new window to access WordPress installation page.

NOTE

If port 443 is unavailable, the installation process will automatically assign a free port to your app.

You can now check the tutorial to understand the basics.

Windows / Linux / WSL / macOS manual installation

WARNING

The manual installation process is a bit complex and has not been tested.

Requirements to install Sword:

If for any reason you don't want to use Docker, try a manual install using these files as guide: