4. Apache
If you want to debug your code locally, you will Apache
not be spared to kneel. apachectl -v
the execution found that Apache has been updated to 2.4.9
version. There must be something wrong with the version update.
4.1 modifying httpd.conf
First open /private/etc/apache2/httpd.conf
discovery appears to restore the default settings. Re-note the following two lines of code:
Include /private/etc/apache2/extra/httpd-vhosts.conf...LoadModule php5_module libexec/apache2/libphp5.so
4.2 Modifying httpd-vhosts.conf
Open private/etc/apache2/extra/httpd-vhosts.conf
a virtual host that was set up before discovery doesn't seem to have been modified! But because the upgrade to the Apache 2.4
above settings need some adjustment, otherwise you will get 403 Forbidden You don‘t have permission to access / on this server
errors.
will be the original
<virtualhost *:80>ServerAdmin [email protected]documentroot "/users/jerry/dev/apache/php_tester" servername php_tester ErrorLog "/users/jerry/dev/apache/php_tester/log/sites-error_log "CustomLog "/users/jerry/dev/apache/php_tester/log/sites-access_log" common < Directory/> options Indexes followsymlinks includes ExecCGI allowoverride None Order deny, Allow allow from all </directory></VIRTUALHOST>
Change into
<virtualhost *:80>serveradmin [email protected] documentroot "/users/jerry/dev/apache/php_tester" servername php_tester ErrorLog "/users/jerry/dev/apache/php_tester/log/sites-error_log "CustomLog "/users/jerry/dev/apache/php_tester/log/sites-access_log" common < Directory/> options Indexes followsymlinks includes ExecCGI allowoverride None require all Granted </directory></VIRTUALHOST>
It's actually going to Order deny,allow, Allow from all
change Require all granted
. ===== "changed the OK.
Reference: Occurs after upgrading OS X Yosemite: Repairing various development environments
Web server does not issue after Mac upgrade