Setup the server

See automatic provisioning tools for semi-automatic setup.

Or setup your server manually.

Manual setup

Setup the document root

Make public your document root. TIP: If you cannot easily modify your document root, try a symlink (e.g. ln -sfn website/public docroot).

Logrotate (optional)

Schedule a cronjob that performs the linux native logrotate.

See macrominds/provision/uberspace/web-logrotate for uberspace provisioning.

Basically, you will want to make a cronjob like this:

@daily /usr/sbin/logrotate -s /home/my-website/.logrotate.status /home/my-website/etc/web-logrotate.conf

And a web-logrotate.conf like this:


/var/www/virtual/my-website/shared/log/*.log {
    rotate 8

Automatic provisioning tools

I recommend using Uberspace.

See for ansible roles that are specially tailored for Uberspace and macrominds/website.

You can combine them as follows. Configure ssh access for your Uberspace and run ansible-playbook -i my-website, site.yml to provision it. Most likely, I will provide a detailed example project soon.


- hosts: all
    - role: lib-webp
    - role: web-domains
    - role: mail-domains

    - role: web-prerequisites
    - role: web-provide-shared-deployer-dot-env
    - role: web-logrotate

    - role: deployment-key
      deployment_key_local_path: ~/.ssh/my-deploy-key

    - role: web-link-html-to-deployer-target

An Uberspace server, provisioned that way, is ready to be used for auto deployment.

Setup auto deployment Manual deployment