Comments on How to Install and Configure Caddy Web Server with PHP and MariaDB on Ubuntu 20.04
Caddy Web Server is a modern open-source web server written in GO language. In this tutorial, you'll install and configure Caddy to run along with PHP and MariaDB on an Ubuntu 20.04 based server.
7 Comment(s)
Comments
Thanks for this amazing tutorial.
How do I install wordpress with this??
Please, reply asap
You should just be able to drag+drop it after setting up the DB, isn't that how you normally install WP?
Thank you for this post. However I'm not able to see correctly this page, I even remove everything but labels and still facing issues to load web page. Regards.
Since I discovered Caddy I'm having a hard time using anything else. I had to migrate a legacy PHP application to EC2 and your tutorial fits like a glove for this purpose. Now on to replacing PHP with a well designed language, Python. TYVM.
It would be better if you instead just linked to https:// caddyserver.com/ docs/install# debian-ubuntu-raspbian instead of copying the instructions from the docs. It's already been made outdated.
Along with that, the "experimental_http3" option is no longer configured that way as of v2.3.0, see the updated global options docs.
And the tls protocols options are pointless, please remove those so that people don't mistakenly keep them when we inevitably get some later TLS version like 1.4 or whatever. Caddy will continue to have secure defaults, so specifying the same as its defaults, especially in blog posts, only risks confusion.
You're also missing "file_server" in your Caddyfile, which is necessary if your site ever plans to serve any .css or .js files. Please include that, so people who read this don't get confused.
And finally, for the log directive, you should use "format json" rather than "format console", because the former is machine parseable with something like jq, whereas the later is meant for human-readable console output.
Nice one, can i install multiple websites on one caddy server?
This worked very well! Thanks for this post!