bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

Please update the documentation to fix apache configuration #1250

Closed elieobeid7 closed 2 years ago

elieobeid7 commented 2 years ago

This documentation, says:

You also need to set up Apache so it knows the physical location of index.php in your hard drive. A typical configuration is:

DocumentRoot "/var/www/html"
<Directory "/var/www/html">
    Options -Indexes +FollowSymLinks +Includes
    AllowOverride All
    Order allow,deny
    Allow from All
</Directory>

It should be

DocumentRoot "/var/www/html"
<Directory "/var/www/html">
    Options -Indexes +FollowSymLinks +Includes
    AllowOverride All
    Require all granted
</Directory>
Hackmastr commented 2 years ago

Depends on Apache's version. For 2.2 the old one should work. For 2.4 your suggestion works.

Perhaps the docs should reflect that.

Rayne commented 2 years ago

Please create a PR for https://github.com/f3-factory/F3com-data.

elieobeid7 commented 2 years ago

@Hackmastr No one uses 2.2 in 2022, I doubt it's available in any distro repos anyway.

@Rayne Okay will do.