This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

david
david

I decided to make a tutorial on how to setup OctoberCMS on a fresh CentOS 7 minimal server using Caddy, php-fpm, and MariaDB. Hope you enjoy it! I would be glad to answer any questions

Highlights:

  • Uses systemd for everything
  • Does NOT disable selinux
  • Shows full caddyfile syntax needed for OctoberCMS

https://davidleonard.co/posts/october-cms-caddy-mariadb-and-php-fpm-centos-7-guide

Last updated

Crazymodder
Crazymodder

Hi david,

Nice tutorial thanks. Its nice to see some not so mainstream setups here:)

david
david

Thanks! My goal was to offer something different, and give people the opportunity to try something new. Glad you liked it :)

leocavalcante
leocavalcante

Really cool.

Have you noticed any diference from running October over Caddy and MariaBD instead of Apache and MySQL?

Crazymodder
Crazymodder

@leocavalcante

With Caddy you have a smaller memory footprint :)

david
david

leocavalcante said:

Really cool.

Have you noticed any diference from running October over Caddy and MariaBD instead of Apache and MySQL?

Between MariaDB and MySQL: MariaDB is designed to be an open source, drop in replacement for mysql, so overall they should look extremely similar. Here is a page on the MariaDB website though: https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-features/

Between Apache and Caddy: Yes, there are lots of differences. Mainly the smaller footprint as listed above. Also the automatic HTTPS and the correctly working HTTP/2 OOB is great. Plus when you can use the following in caddy and have it be fully working? (awwyiss)

mysite.com {
    root /var/www/mysite.com
    log /var/log/caddy/mysite.com.access.log
    fastcgi / 127.0.0.1:9000 php
    gzip
    rewrite {
        to {path} {path}/ /index.php?{query}
    }
}

The one downside that is out there right now, cache-control is currently not possible with caddy, which means you can't get a perfect pagespeed score :(

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.