Page 2 of 2

Re: How To Change Local Settings ?

Posted: Fri Feb 02, 2018 3:11 pm
by xguntis
The problem that tpl file has php_admin_value post_max_size 64M and thus the master value is 64M, which is as expected, but - the local value is 8M and i do not know where to change the local value. How else can i explain it ...

Re: How To Change Local Settings ?

Posted: Fri Feb 02, 2018 9:23 pm
by mehargags
Just manually Change / Add the directive php_admin_value post_max_size 72M in your Apache Virtual host file
/home/<Vesta-User>/conf/web/<domain-name>.apache2.conf
But this change will be lost if you do Rebuild-Web anytime.
Better edit the tpl file for which you have the pkg selected for the domain. It is a simple thing

Re: How To Change Local Settings ?

Posted: Sat Feb 03, 2018 1:02 am
by noogen
@xguntis huh? That template has the default value of 8M, example:

https://github.com/serghey-rodin/vesta/ ... ng.tpl#L19
https://github.com/serghey-rodin/vesta/ ... g.stpl#L20

Also, do not manually modify the conf file per @mehargags mention below: "But this change will be lost if you do Rebuild-Web anytime."

Better if you just pick a different template as I've stated before.

Re: How To Change Local Settings ?

Posted: Sun Feb 04, 2018 11:37 am
by xguntis
Is anybody listening to me? :(

php_admin_value post_max_size changes the master value. Where to change local value?

Re: How To Change Local Settings ?

Posted: Sun Feb 04, 2018 4:38 pm
by mehargags
xguntis wrote:Is anybody listening to me? :(

php_admin_value post_max_size changes the master value. Where to change local value?
Are you reading / listening to anyone here posting results and trying to help you ? Are you even trying to define what you really want ?

Re: How To Change Local Settings ?

Posted: Mon Feb 05, 2018 7:33 am
by xguntis
Yes, I am reading that i need to change php_admin_value post_max_size in the Apache template file and that is what I have already done. This modifies only master value. But this does not help, because the local value is lower and local value prevails. I am trying to say it in every post here.

I am trying to change php_value post_max_size 999M in .htaccess, but it does not change the local value. phpinfo(); still shows the following:
Image

Re: How To Change Local Settings ?

Posted: Mon Feb 05, 2018 3:16 pm
by xguntis
Sorry everyone for confusion. After i had some technical support with experienced server guy, i discovered 2 things that i was wrong with:

1) php_admin_value post_max_size changes local value, not master one. Master values are probably set in /etc/php5/apache2/php.ini
2) which is more important - i am using ssl for these domains and therefore i had to modify hosting.stpl (not hosting.tpl). My wrong assumption was - because i use public_html instead of public_shtml directory the template is tpl, not stpl, which is WRONG.

Hope this will help someone not to do the same mistakes.