I would need to turn register globals on just for one site. How can I do it with apache directive... any idea. If I put in .htaccess php_flag register_globals on I get 500 Internal server error. If I put it in Apache Directives: php_flag register_globals on It does not work.
Try this in the Apache Directives: Code: php_admin_flag register_globals on and nothing in the .htaccess it's working fine for me!
forgot to mention it I tried that too. (did not work) I did use search before I posted. Thanks anyway.
Solved I also change /etc/apache2/default-server.conf (bold part) Code: <Directory "/srv/www/htdocs"> # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.2/mod/core.html#options # for more information. Options None # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit [B]AllowOverride all[/B] # Controls who can get stuff from this server. Order allow,deny Allow from all </Directory>
This solved your problem? The allow override options do not limit the values in the apache directives window. I guess you put the php_admin_flag setting in a .htaccess file instead of the apache directives field as edge mentioned.
No i did not. I put apache directives. php_admin_flag register_globals on php_admin_flag register_long_arrays on And i also check phpinfo for that site and it has register globals on , all my other sites have it off.
yes its working. p.s. I tried to remove it from apache directives and put it only in .htaccess file but it does not work then.