htaccess php_flag not allowed here

0 Flares Filament.io 0 Flares ×

If using this code

<IfModule mod_php5.c>
	#Turn off php register globals
	php_flag register_globals off
</IfModule>

gives the error :

.htaccess: php_flag not allowed here

in /var/log/apache/error.log

Then Options should be added to AllowOverride in : /etc/apache2/sites-available/default

AllowOverride FileInfo Options

like this


 <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride FileInfo Options
                Order allow,deny
                allow from all
        </Directory>






Last Updated On : 13th June 2011

Subscribe to get updates delivered to your inbox

About Silver Moon

Php developer, blogger and Linux enthusiast. He can be reached at m00n.silv3r@gmail.com. Or find him on

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 StumbleUpon 0 Filament.io 0 Flares ×