Je sais que cela ressemble à d'autres questions, mais Yosemite semble avoir changé quelque chose avec la configuration d'apache avec la mise à niveau. mon journal d'erreurs indique "client refusé par la configuration du serveur: /Users/douglas/Sites/testpatient.php"
Version Apache: MacBook-Pro: apache2 douglas $ apachectl -v Version serveur: Apache / 2.4.9 (Unix) Version du serveur: 9 septembre 2014 14:48:20 mon fichier douglas.conf est 644 root / wheel et ce qui suit:
<Directory "/Users/douglas/Sites">
Options Indexes Multiviews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
mon http.conf a les éléments suivants:
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User _www
Group _www
</IfModule>
...
DocumentRoot "/Library/WebServer/Documents"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy All
</Directory>
...
<Directory "/Library/WebServer/Documents">
#
# 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.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
#AllowOverride None
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
Satisfy All
</Directory>
Tout serait apprécié. J'ai essayé de revenir au fichier http.conf précédent, mais il existe un certain nombre de différences en ce qui concerne les modules qui doivent être chargés. Il est tout à fait possible que j'ai manqué un module mais il n'y a aucune plainte dans le journal.