Here in this post we can see how to increase the php memory limit in wordpress.
while working on our word press site you sometimes notify that the following type of warnings like,
- post content-length of bytes exceeds the limit..
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- exceeds the maximum upload size for this site..
- Fatal error: Allowed memory size of 12345678 bytes exhausted (tried to allocate 2345678 bytes) in /home/your-username/public_html/wp-includes/plugin.php on line 1000413 Error: Request Entity Too Large
- 413 Error: Request Entity Too Large
The above message will clearly tells or related to the website server settings for maximum upload size or memory limit.
Most of them are used the word press for building websites and blogs where you can easily upload the data as much of many times.
The data can be of any type such as ,an application ,an image or an any videos.
The default limit set for all such uploads are 8 MB (mega bytes).But the upload files are moreover this size at that time we want to increase the memory size or upload limits.
Many of them are try to do it by making changes in ".htaccess"file but this doesn't work always.
Steps to increase the Php memory size.
- Create a ‘php.ini’ file and upload it in to ‘/wp-admin’ folder.
- Then add the following code
memory_limit = 28M upload_max_filesize = 28M post_max_size = 28M file_uploads = On
Here I have used 28 megabytes for just a example and you can replace with your desired limit to be set for maximum upload file size limit in wordpress.
That's all for this documentation. Hope it helps!