Skip to content

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 it.

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

bash
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

NOTE

The command line above will install a new project using the latest compatible version. If you want to install a project using a newer PHP version in beta support, use the tag corresponding to the PHP version you want to install:

bash
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:php-8.3 myproject

Wait a couple of minutes. Done! Now visit https://myproject.localhost/ 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:

Released under the MIT License.