What is post_max_size in WHM?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
I saw post_max_size in my WHM and I am going to increase it to allow post size for my Wordpress blog. Do I need to do this? I wan to know What exactly is post_max_size and when I should increase it?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Hello David,
you only need to increase post_max_size if you are not able to download a large file.
To be able to upload bigger files, it's the the variable upload_max_filesize you need to change.
But make sure the variable memory_limit is higher than post_max_size and upload_max_filesize.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
Hello David,
you only need to increase post_max_size if you are not able to download a large file.
Directly download or downloading from my website cms?
I don't got your point on this or can not understand it.

To be able to upload bigger files, it's the the variable upload_max_filesize you need to change.
But make sure the variable memory_limit is higher than post_max_size and upload_max_filesize.
Why memory_limit is higher than post_max_size? my VPS server will be freeze if I set memory_limit lower than post_max_size?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Directly download or downloading from my website cms?
I don't got your point on this or can not understand it.
Download from your CMS done via php, not direct links to files.

Link to download using php : yoursite.com/s/afnFFhT0FPbUAbL
Link to download directly from web server : yoursite.com/s/yourvideo.mp4

Why memory_limit is higher than post_max_size? my VPS server will be freeze if I set memory_limit lower than post_max_size?
If php doesn't have enough memory to handle upload or download, it will fail.
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
The post_max_size refers to the maximum upload limit handled by POST request. It is the maximum size of allowed post data.

The post_max_size used to affect the working of uploading files. It's value should be grater than the upload_max_filesize to upload the large files. Memory limit should be greater than the post_max_size.

post_max_size > upload_max_size
post_max_size < memory limit
If you have the correct setup ad stated above, you won't face any issue while uploading the images on your WordPress site.
 

CaygriWEB

Well-known member
Hosting Provider
Registered
Joined
Jul 4, 2017
Messages
305
Points
18
There is many way to increase. Have you cpanel or plesk?
You can also try to edit php.ini or wp-config.php in wordpress installlation
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
post_max_size > upload_max_size
post_max_size < memory limit
So, I should do as following line?

memory limit > post_max_size > upload_max_size

Is there a way to check memory limit, post_max_size and upload_max_size on my server and setting up them as what you mentioned?

There is many way to increase. Have you cpanel or plesk?
You can also try to edit php.ini or wp-config.php in wordpress installlation
What are the codes?
I tried to add codes in wp-config.php but they didn't affect.
Just curious which codes have you used?
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
So, I should do as following line?

memory limit > post_max_size > upload_max_size

Is there a way to check memory limit, post_max_size and upload_max_size on my server and setting up them as what you mentioned?

What are the codes?
I tried to add codes in wp-config.php but they didn't affect.
Just curious which codes have you used?
It was for mentioning the less than and greater than size. It's not the code. If you've PHP selector then you can increase the PHP values using the PHP options in PHP selector. Else, you can opt to any of the below method to increase the values -

1. Using .htaccess file

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256
2. Using php.ini file -

memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
3. Using wp-config file (Configuration file of WordPress) -
@ini_set( ‘upload_max_size' , '25MB' );
@ini_set( ‘post_max_size', '27MB');
@ini_set( ‘memory_limit', '30MB' );
Let me know how you go.
 
Older Threads
Replies
10
Views
4,338
Replies
8
Views
5,419
Newer Threads
Replies
13
Views
7,547
Replies
4
Views
4,742
Replies
8
Views
6,262
Recommended Threads
Replies
0
Views
1,422
Replies
6
Views
3,182
Replies
3
Views
4,937
Replies
6
Views
1,899

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top