MantisBT/CentOS7/FastCGI/Caddy

This ended up written up for use on GCP

Dependencies

Need epel-release package installed.

Database Server

In the trial environment I am using postgresql on the VM

Setup the postgres password

As the postgres user also modify /var/lib/pgsql/data/pg_hba.conf to set md5 method for all IPv4 local connections.

Mantis Install

Grab the source

Make a /srv/www directory and extract the contents into a folder mantisbt .

Caddy Install

Grab the tarball

Follow the installation instructions in caddy/dist/init/linux-systemd at master · mholt/caddy · GitHub to enable systemd support, substituting /var/www for /srv/www .

The /etc/caddy/Caddyfile is as simple as:

Allow web server to connect to database.

Enable firewall rule

Configure PHP-FPM

By default php-fpm is configured to use the apache user on CentOS. Caddy and the mantisbt files use www-data so update this in /etc/php-fpm.d/www.conf by changing the user and group directives.

Last updated

Was this helpful?