Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How To Change Local Settings ? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
17 posts
  • Previous
  • 1
  • 2
xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

Re: How To Change Local Settings ?
  • Quote

Post by xguntis » Fri Feb 02, 2018 3:11 pm

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 ...
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: How To Change Local Settings ?
  • Quote

Post by mehargags » Fri Feb 02, 2018 9:23 pm

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
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: How To Change Local Settings ?
  • Quote

Post by noogen » Sat Feb 03, 2018 1:02 am

@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.
Top

xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

Re: How To Change Local Settings ?
  • Quote

Post by xguntis » Sun Feb 04, 2018 11:37 am

Is anybody listening to me? :(

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

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: How To Change Local Settings ?
  • Quote

Post by mehargags » Sun Feb 04, 2018 4:38 pm

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 ?
Top

xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

Re: How To Change Local Settings ?
  • Quote

Post by xguntis » Mon Feb 05, 2018 7:33 am

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
Top

xguntis
Posts: 30
Joined: Sat Mar 12, 2016 12:42 pm

Re: How To Change Local Settings ?
  • Quote

Post by xguntis » Mon Feb 05, 2018 3:16 pm

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.
Top


Post Reply
  • Print view

17 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password