# Apache Version and Setting Changed in OS X Yosemite

Today I just upgraded my Mac to 10.10 Yosemite. Before I could even be able to enjoy the new UI style in Yosemite, I found that my personal wiki server was not working any more! My god, get down to work...

My wiki KMS is based on dokuwiki, which depends on Apache and PHP. It seems the new operating system overrides the current setting of Apache, to be exact, changing it from Apache/2.2.24 into Apache/2.4.9.

What problems can this lead to? When you visit your local or remote server as usual, it responds with the following error:

 +------------------------------------------+
|                                          |
+------------------------------------------+
or
+---------------------------------------+
|403 Forbidden                          |
|                                       |
| You don't have permission to access   |
+---------------------------------------+


!--more--

Basically, the default Web Root Directory in OS X is: /Library/WebServer/Documents/, which requires no configuration.

Additionally, users can have their own Web Root Directories: ~/Sites

To achieve this, you need to do a couple things first:

• If your system is 10.7 or earlier, you can do it in GUI way:
• Start Personal Web Sharing in System Preferences → Sharing
• If from 10.8 and 10.9 onward, you’ll need to do it in CLI.
• Take this for reference.
• If your system is as latest as 10.10! Congratulations! You have to modify something in addition to make it work.
• For detail or this tutorial. The important points are some more options for permission control and a deprecated option in new Apache/2.4.9.

For Apache 2.4 and in all *.conf files (e.g. httpd-vhosts.conf, http.conf, httpd-autoindex.conf ..etc) use

Require all granted

Order allow,deny
Allow from all