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
1

1 Answer 1

2

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

2
  • I would be putting that in my virtualhost file? Jun 23, 2012 at 19:14
  • Yes, you can put it in the vhost or even inside a .htaccess Jun 23, 2012 at 20:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .