Register globals Settings

From Lunarpages Web Hosting Wiki

How do I configure php.ini settings specifically for my domain?

PHP is configured to run using the suPHP Apache module. This means that scripts will run as the owner of the domain (as opposed to the webserver user). The other benefit of this configuration is that each domain can have its own php.ini file to override default settings.

To setup your php.ini file, create an .htaccess file in the /public_html/ directory and add the line:

suPHP_ConfigPath /home/username/public_html
(Change username to your Lunarpages username.)

Then create a php.ini file in the /public_html/ folder and add the line:

register_globals = Off

Now PHP will be configured not to set variables corresponding to query parameters/form data (you would use $_GET, $_POST and $_REQUEST instead).

Other PHP settings can be configured in an equivelant manner.

Please note: The php.ini file must be in the same directory as the .htaccess file or else this will not work.

For more information see: