cd /usr/ports/www/apache24 make install clean Installing apache24-2.4.51... ===> 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 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: Чтобы запустить Apache как сервис, нужно добавить строку apache24_enable=”YES” в файл /etc/rc.conf sysrc apache24_enable="YES" Для запуска Apache в ручную service apache24 start проверка запуска веб сервера service apache24 status apache24 is running as pid 48211. Настройки Apache находятся в файле /usr/local/etc/apache24/httpd.conf для того что бы Apache работа с PHP нужно установить порт /usr/ports/www/mod_php74 cd /usr/ports/www/mod_php74 make install clean После установки порта mod_php74 в каталоге usr/local/etc/apache24/modules.d создаю файл 080_mod_php.conf следующего содержания DirectoryIndex index.html index.php SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source