Posted at December 8, 2017 at 2:37 pm by Jithin
The error may come while handling a WordPress website. when we check the error log, we can see the error like “Could Not Write You May Be Over Quota: Bad File Descriptor”. But the site will show 500 internal server error. We need to know some basic information regarding WordPress and error mainly related to WordPress websites.
WordPress is a free and open-source content management system(CMS) based on PHP and MySQL. WordPress is installed on a webserver with the help of hosting service or a network host. WordPress is an easy yet sometimes hard to handle CMS. To host a WordPress website, you need a web hosting which has the cPanel to control your website.
What will you do when you get a 500-internal server error
The common suggestion for 500 internal server error is to contact your web hosting provider and deactivate the plugins. People have contacted their hosting providers and deactivating the plugins is the common suggestion when we get 500 internal server error. But it might be the lack of enough memory for websites. You can edit the wp-config.php file to increase the memory limit. Mainly the error may occur due to your web hosting space isn’t enough to handle your website.
1) Increase memory limit
2) Plugin deactivation
3) Change web hosting
4) Upgrade web hosting plan.
Let’s see the detailed solution
1) Increase Memory Limit
Some plugin required more space, therefore it will exhaust the WordPress memory. To resolve this issue, you can increase the memory limit by adding the following code into the wp-config.php file. Open “wp-config.php” file with your favorite editor
Here I am using ‘vi’ text editor.
# vi wp-config.php
Add the following code to the file, if already exists, edit the code and replace the value according to your needs.
# define(‘WP_MEMORY_LIMIT’, ’256M’);
You can replace 256M with 1024 or more depending on your requirement.
After adding or editing the code, don’t forget to save the file then only the changes will reflect in your server.
2) Deactivate all the Plugins
There is a possibility to conflict one plugin with any other plugin. In such cases, you can deactivate all WordPress plugins. This method is applicable when you are able to log in your WordPress admin dashboard.
If you can login to your WordPress admin dashboard, follow the below-given steps.
1) Login to WordPress admin dashboard.
2) Click on plugins.
3) Select installed plugins.
4) Deactivate each plugin one by one.
If the error is still same, we can analyze that the issue is not related to any of the plugins which are installed on your website.
3) Check Disk Space Usage
The error like “Could Not Write You May Be Over Quota” may be related to your disk space. If the disk usage is full, you have to face the error. If your website needs a large amount of space, you should buy a large web hosting plan. Otherwise when your website size increases you will hit the error like above. You can use cPanel to determine how much space used by any folder or file.
you can use the following commands for disk related queries.
Disk Usage of files and directories
# du -h
Check file system disk space usage
# df -h
Display information of /home file system
# df -hT /home
Make sure that once you download the backup to your local machine, it is not necessary to keep the backup file on the live server. when you take backup your website, the backup file inside the root directory or any folder may consume the large disk space and throws the error “Could Not Write You May Be Over Quota”
4) Upgrade Web Hosting Plan
If you’re working website required more space day by day, you could upgrade the plan.
Always take care about to choose managed hosting plans.
If you need any further help please do reach our support department.
You can skip to the end and leave a response. Pinging is currently not allowed.