zendframework / zf2-documentation

Zend Framework 2 documentation sources
BSD 3-Clause "New" or "Revised" License
190 stars 571 forks source link

Config required for Apache since Apache v2.4 #1517

Closed porebskk closed 8 years ago

porebskk commented 8 years ago

Since Apache 2.4 a new config is required to avoid "Permission denied"-pages.

manuakasam commented 8 years ago

Can't speak for the validity of this however I'd argue it would be much better to provide alternative configurations outlined in the document. Like:

Apache Config >= 2.4 //config with new line Apache Config < 2.4 //config without new line

Reasoning being: we're lucky if people are reading documentation, but literally noone reads the inline comments of code-samples :)

porebskk commented 8 years ago

Commited your proposed changes.

tfountain commented 8 years ago
Order allow,deny
Allow from all

should be removed from the 2.4 example, as the Require all granted syntax is what replaced them. (See the Apache 2.4 migration guide: https://httpd.apache.org/docs/trunk/upgrading.html)

As an aside (and not a problem with this PR), this information is already correct on the installation page: http://framework.zend.com/manual/current/en/ref/installation.html. I'm not sure why we have duplicate (and less detailed) install instructions on the getting started page.

porebskk commented 8 years ago

Added feedback from @tfountain