- Joined
- Jun 14, 2016
- Messages
- 1,501
- 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?
Directly download or downloading from my website cms?Hello David,
you only need to increase post_max_size if you are not able to download a large file.
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?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.
Download from your CMS done via php, not direct links to files.Directly download or downloading from my website cms?
I don't got your point on this or can not understand it.
If php doesn't have enough memory to handle upload or download, it will fail.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 you have the correct setup ad stated above, you won't face any issue while uploading the images on your WordPress site.post_max_size > upload_max_size
post_max_size < memory limit
So, I should do as following line?post_max_size > upload_max_size
post_max_size < memory limit
What are the codes?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
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 -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?
2. Using php.ini file -php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256
3. Using wp-config file (Configuration file of WordPress) -memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
Let me know how you go.@ini_set( ‘upload_max_size' , '25MB' );
@ini_set( ‘post_max_size', '27MB');
@ini_set( ‘memory_limit', '30MB' );