Posts Tagged: php

Serving self-hosted Invoice Ninja with Caddy

Invoice Ninja is an open-source platform which helps you take care of clients, invoices, payments, expenses, time-tracking, and more… In this guide I explain how you can run Invoice Ninja on your own server with Caddy and PHP-FPM. Prerequisites MySQL Server up and running PHP-FPM up and running I assume that you have already setup… Read more »

Serving ownCloud with Caddy

In this post, I’ll walk you through how to set up ownCloud with Caddy for a secure, personal cloud service. I wrote this guide while configuring on Ubuntu 14. ownCloud A quick introduction to ownCloud for those who never heard about it (as found on Wikipedia): OwnCloud (stylized ownCloud) is a suite of client-server software… Read more »

Getting a Mac ready for development

Apple computers are awesome: they are fancy machines which make your daily life easier. But every developer knows that there are a lot of things to install and configure before you can actually start programming. This guide is an overview of how I configure my Mac for development. I’m sure everyone has his own habits… Read more »

An introduction to PHP 7 type declarations

PHP 7 introduced a feature everyone was waiting for: typing. This solves a lot of bugs/problems caused by wrong types passed to function or returned by functions. Strict typing vs type coercion Before I introduce the actual typing of arguments or return values, I must explain PHP’s behaviour when types don’t match. By default PHP tries… Read more »

Caddy Server and WordPress (PHP-FPM)

Update: I added rewrite rules for WordPress permalinks to the Caddyfile. I also removed all unnecessary bits which are not needed anymore since Caddy now has built-in HTTPS support with Let’s Encrypt. Recently I discovered an amazing open source project: Caddy, a fully functional HTTP/2 webserver, written in Go. Caddy is a lightweight, general-purpose web server for… Read more »

Installing MAMP (Mac OS X Apache MariaDB PHP) using MacPorts

Update: I updated the blogpost for PHP 7 instead of PHP 5. If you want to update your current PHP 5 installation to a PHP 7 installation, see this blogpost: Migrating/updating from PHP 5 to PHP 7 on OS X (MacPorts). MacPorts is a BSD ports like package management system for OS X. The MacPorts Project is… Read more »

PHP fragments in Markdown

Ever wanted to use PHP variables and functions in a markdown file and use that file to generate HTML code from the Markdown syntax? Well, it isn’t too hard… Assume you want to parse the following file as Markdown, after executing the PHP fragment: <?php echo $var; ?> ——————- Some text… > Maecenas sed diam… Read more »