Install Apache Web Server
Install Apache Web Server
pkg_add apache24 - install Apache 2.4
/usr/local/etc/apache24/httpd.conf - configuration
apachectl start - start Apache
rcctl enable apache24 - enable on boot
Default root: /var/www/htdocs
a2enmod php8_module - enable PHP module"
Article author: Arthur Isaev