PDA

View Full Version : .htaccess and php_flag register_globals on


edge
9th March 2006, 16:06
For some reason I keep getting a 500 error when I add php_flag register_globals on to the .htaccess file for sites running on my server. When I set register_globals to on in the php.ini file all is working fine!

Is there a reason that I can not set php_flag register_globals on in the .htaccess for the sites needing this?
(I do not really want to set register_globals on in the PHP.ini as this if for all the sites on the server)

The php_flag register_globals on in the .htaccess works fine on my old server runing PHP4

The new server is setup with the perfect_setup_fedora_core_4.

bjmg
9th March 2006, 16:30
This is normal and correct.
You can't set that option unless you allow it on your apache configuration. You have to change AllowOverride on the right place to "AllowOverride All". Anyway, you should not do that!
Do it with the optional Apache directives in ISPConfig.

Bernhard

edge
9th March 2006, 17:49
This is normal and correct.
You can't set that option unless you allow it on your apache configuration. You have to change AllowOverride on the right place to "AllowOverride All". Anyway, you should not do that!
Do it with the optional Apache directives in ISPConfig.

Bernhard

Hi Bernhard,

I've had a look for the 'optional Apache directives in ISPConfig', but can not find it.

Is it within the ISPConfig (port 81) itself, or do I need to do a small 'code' hack?

edge
9th March 2006, 17:55
re: 'optional Apache directives in ISPConfig'
Nevermind.. I found it..

I created a 'Client' without the 'Apache directives' for myself.. Thats why I do not have it! :P

Now I have to find a way of adding the 'Apache directives' without killing the account ... :(

till
9th March 2006, 19:14
re: 'optional Apache directives in ISPConfig'
Nevermind.. I found it..

I created a 'Client' without the 'Apache directives' for myself.. Thats why I do not have it! :P

Now I have to find a way of adding the 'Apache directives' without killing the account ... :(

If you enable apache directives for the reseller, you will be able to insert the directive when you are logged in as admin or reseller.

falko
9th March 2006, 19:17
Please put
php_admin_flag register_globals on
into the Apache Directives field instead of php_flag register_globals on

edge
9th March 2006, 20:05
Please put
php_admin_flag register_globals on
into the Apache Directives field instead of php_flag register_globals on


Actually I needed to add:
php_admin_flag register_globals on
php_admin_flag register_long_arrays on in it to make it work (OSCommercer)

Thank you all for the help