Page 1 of 1

How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Thu Feb 20, 2020 4:14 pm
by konanjudicael
Hello,
I have two values for post_max_size in phpinfo
I modified the file /etc/php.ini but it applies globally
there is a second local value that prevents downloading large files

Re: How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Mon Feb 24, 2020 10:33 am
by konanjudicael
No one to help me ?

Re: How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Mon Feb 24, 2020 10:06 pm
by exclu254
You want post_max_size values to apply globally? Is that what you meant?

Re: How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Mon Mar 02, 2020 10:45 am
by konanjudicael
I want to increase the size of the downloadable files.
I already edited /etc/php.ini but it didn't solve the problem
I still cannot upload a file larger than 10MB

Re: How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Mon Mar 02, 2020 1:00 pm
by grayfolk
konanjudicael wrote:
Mon Mar 02, 2020 10:45 am
I want to increase the size of the downloadable files.
I already edited /etc/php.ini but it didn't solve the problem
I still cannot upload a file larger than 10MB
Set upload_max_filesize and post_max_size. post_max_size should be bigger than upload_max_filesize.
Dont forget to restart apache/php-fpm after changes.
Or, with apache you can override this directives via .htaccess file.

Re: How to change VestaCP local post_max_size modify value in /etc/php.ini file applies globally

Posted: Mon Mar 02, 2020 1:41 pm
by konanjudicael
thank you for your reply.
Actually i have two values in the phpinfo file

Directive Local Value Master Value

upload_max_filesize 10M 200M



I want to change the value 10 Mo to 200 Mo