Surcharger la configuration du php.ini

From Tuxunix
Jump to: navigation, search

Surcharger les variables du php.ini

Activer le module php5

#> a2enmod php5
#> apache2ctl configtest && apache2ctl graceful

Directives

  • php_value
  • php_flag
  • php_admin_value
  • php_admin_flag


Emplacemnet

<VirtualHost *:80>
    <Directory /var/www/monsite>
         ...
         directive
         ...
    </Directory>
</VirtualHost>


Exemples

  • php_value :
php_value include_path ".:/opt/php5/lib/php"
  • php_flag :
php_flag engine off
  • php_admin_value :
php_admin_value memory_limit 16M
  • php_admin_flag :
php_admin_flag mysql.allow_persistent Off