You can override global values of system variables re-setting them in .htaccess

For each system variable ro re-set, you need add to .htaccess a code of line as follows:

php_value setting_name setting value

An example, setting date.timezone:

php_value date.timezone "Europe/Vienna"

  • It may happen that sometimes this kind of operation is impossible: the server may be configured to make it uneffective (especially if you're using a shared hosting plan).
  • Not every system variable may be override using .htaccess

So, to check if your correction is effective, run a phpinfo() to see if the value has been modified or not.

 

Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • php, .htaccess
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings.

If you get following error message:Fatal error: Uncaught exception 'Exception' with message...

 PHP Parse error: syntax error, unexpected $end

This is a very common error, typically caused by a missing } used in PHP to denote content...

 How to send mails through your website

On shared web hosting server for security reasons it's not possible unauthenticated email sending...

 allow_url_fopen

If enabled, allow_url_fopen allows PHP's file functions (such as file_get_contents() and the...

 Limiti funzione php mail()

per motivi di sicurezza sui nostri server di hosting shared Linux la funzione php mail() è...