Это старая версия документа!
cd /usr/ports/www/apache24 make install clean
==⇒ Registering installation for apache24-2.4.23 Installing apache24-2.4.23… ==⇒ Creating groups. Using existing group 'www'. ==⇒ Creating users Using existing user 'www'. To run apache www server from startup, add apache24_enable=«yes» in your /etc/rc.conf. Extra options can be found in startup script.
Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch.conf typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- apache24 default build changed from static MPM to modular MPM - more modules are now enabled per default in the port - icons and error pages moved from WWWDIR to DATADIR
If build with modular MPM and no MPM is activated in httpd.conf, then mpm_prefork will be activated as default MPM in etc/apache24/modules.d to keep compatibility with existing php/perl/python modules!
Please compare the existing httpd.conf with httpd.conf.sample and merge missing modules/instructions into httpd.conf!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==⇒ SECURITY REPORT:
This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system.
/usr/local/libexec/apache24/mod_cgid.so
This port has installed the following startup scripts which may cause these network services to be started at boot time.
/usr/local/etc/rc.d/apache24 /usr/local/etc/rc.d/htcacheclean
If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern.
For more information, and contact details about the security status of this software, see the following webpage:
http://httpd.apache.org/ ==⇒ Cleaning for apr-1.5.2.1.5.4 ==⇒ Cleaning for apache24-2.4.23
Чтобы запустить Apache как сервис, нужно добавить строку apache24_enable=”YES” в файл /etc/rc.conf
sysrc apache24_enable="YES"