I am a Howto for the Configuration of Apache.
$ brew install httpd php--- httpd.conf.orig 2024-02-22 18:21:29
+++ httpd.conf 2024-02-22 18:25:22
@@ -49,7 +49,7 @@
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
-Listen 8080
+Listen 80
#
# Dynamic Shared Object (DSO) Support
@@ -178,8 +178,14 @@
#LoadModule speling_module lib/httpd/modules/mod_speling.so
#LoadModule userdir_module lib/httpd/modules/mod_userdir.so
LoadModule alias_module lib/httpd/modules/mod_alias.so
-#LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
+LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
+# Enable Php
+LoadModule php_module /opt/homebrew//lib/httpd/modules/libphp.so
+<FilesMatch \.php$>
+ SetHandler application/x-httpd-php
+</FilesMatch>
+
<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
@@ -189,8 +195,8 @@
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
-User _www
-Group _www
+User michaelholzheu
+Group staff
</IfModule>
@@ -244,8 +250,8 @@
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
-DocumentRoot "/opt/homebrew/var/www"
-<Directory "/opt/homebrew/var/www">
+DocumentRoot "/Users/michaelholzheu/All-Dings/111/Day-Current"
+<Directory "/Users/michaelholzheu/All-Dings/111/Day-Current">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
@@ -265,7 +271,7 @@
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
- AllowOverride None
+ AllowOverride All
#
# Controls who can get stuff from this server.
$ sudo brew services start httpd$ sudo brew services stop httpd