This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.
<?php | |
error_reporting(E_ALL); | |
$opts = getopt('f:d:rb:', ['ext:', 'php:', 'diff::']); | |
if ((int)isset($opts['d']) + (int)isset($opts['f']) !== 1) { | |
$self = basename(__FILE__); | |
echo <<<EOF | |
Usage: | |
php $self -f<php_script> [-b] [--php <path_to_php>] [ --diff [<file>]] |
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward the edit
command to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of this benchmark below.
TEST NAME | SECONDS | OP/SEC |
---|
product | price | cores | RAM | SSD | Geekbench 5 ST | Geekbench 5 MT | date of benchmark |
---|---|---|---|---|---|---|---|
Hetzner CP11 | 3,92€/m | 1 | 2GB | 20GB | 691 /710 |
686 /712 |
2023-05-20 |
Hetzner CPX11 | 4,75€/m | 2 | 2GB | 40GB | 869 /856 |
1631 /1626 |
2021-10-03 |
Hetzner CX21 | 5,83€/m | 2 | 4GB | 40GB | 681 /663 |
1279 /1248 |
2022-07-18 |
Hetzner CPX21 | 8,21€/m | 3 | 4GB | 80GB | [902 ](https://browser.geekbench.com/v |