Modifying php.ini variables by changing htaccess file

This article will explain how you can edit the php.in variables by modifying  the htaccess file, since Sentora currently does not offer a solution for automating this task.

The first step is to open the htaccess file for the desired site. Within the htaccess file you can modify variables such as:

  • set the include path php_value include_path ".:/usr/local/lib/php"
  • toggle between showing or hiding site errors - php_flag display_errors Off
  • set maximum file size - php_value upload_max_filesize 2M


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 10483