Мне дали статический сайт. Он был построен с PHP. К сожалению, я не знаком с этим. Тем не менее, я думал, что это не должно быть большой проблемой, так как моя цель просто пытается обслуживать его на местном уровне, поэтому я могу обновить его./Users/antonio-pavicevac-ortiz/Sites/
< /code>
Я настроил Apache следующим образом. (Я нахожусь на macOS V10.13.6 (High Sierra).)##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
#127.0.0.1 localhost
127.0.0.1 fragrances.christinaaguilera
127.0.0.1 www.fragrances.christinaaguilera
255.255.255.255 broadcasthost
::1 localhost
/private/etc/apache2/httpd.confbr/> Это то, что я понял, самая важная часть для изменения ... я ошибаюсь?DocumentRoot "/Users/antonio-pavicevac-ortiz/Sites/"
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options FollowSymLinks Multiviews
MultiviewsMatch Any
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
/private/etc/apache2/users/antonio-pavicevac-ortiz.conf
Options Indexes MultiViews
AllowOverride None
Require all granted
и, наконец, файл config.php :
Подробнее здесь: https://stackoverflow.com/questions/525 ... e-php-file