1

On each virtualhost, I have a custom php.ini:

PHPINIDir /var/www/site1/php.ini

What I currently do is copy the original /etc/php.ini to /var/www/site1/php.ini then do the modifications. But it's a headache, how can I just enter only the values which I want to change so the content of /var/www/site1/php.ini for example will just override the default php.ini?

memory_limit = 256M
Jürgen Paul
  • 1,225
  • 4
  • 14
  • 21
  • It seems duplicate Q, which is also answered here: http://serverfault.com/questions/144021/separate-php-ini-file-for-each-apache-virtual-host – Dexter Huinda Jun 23 '12 at 20:14

1 Answers1

2

You can use php_value to override specific values, e.g. php_value memory_limit 256M.

ThiefMaster
  • 378
  • 4
  • 19