Internal server error in wordpress is probably an error that no one using wordpress has ever experienced, this is the most common error, very familiar to those who use wordpress. website design with wordpress whether new or experienced. This error makes us very uncomfortable after uploading the web code data, in this article I will share ways to fix internal server error in wordpress effective.
Causes of Internal Server Error in WordPress
Internal server error It’s not a simple error at a specific location, but it can be caused by many reasons in the web server, so we have to try each way to fix the error, the error message page often does not specify the error cause. So we have to slowly find a way to fix it.
The main causes or causes of internal server error in wordpress lies in the wrong plugin or theme or .htaccess file, some due to limited PHP Memory Limit parameters.
In many cases, when you access the website homepage, it is normal, but when you go to the admin page, an error occurs or vice versa when you go to the admin page, it is normal, but when you go to the web, you see an error.
Ways to fix Intenal Server Error in WordPress
1. Check the .htaccess file
First you need to check if the htaccess Permissions file is correct according to the file type, usually 644 for files and 755 for folders.
Next, rename the .htaccess file to .htaccess_old and save it. To edit this file name you need to access the hosting containing the sourcode or access it with ftp to edit.
After renaming, try accessing the website again to see if it works, if the homepage is still not working but the login page is ok, then go to the admin dashboard, go to Settings => Permalink => Click Save changes 2 times. This will create a new htaccess file.
2. Disable all plugins in use
If you can access the admin page, you can turn it off, and if you can’t access it, open the sourcode file and access it. wp-content => rename folder plugins Fort plugins.deactive.
At this point, all plugins will be disabled and you can check the website to see if it works. If it works, then surely the error is caused by a certain plugin caused by collision, now log in to the admin and deactivate all plugins in it and then change the name of the plugins folder as it was, Next, proceed to activate each plugin one by one to see which one causes the error, you will see the plugin causing it.
3. Increase hosting’s PHP parameters
This is also one of the factors that cause the internal server error that I’ve encountered, you can try by raising the parameters in PHP like PHP Memory Limitthe default is usually 32MB, please upgrade to 256mb for example.
PHP Memory Limit is the PHP memory limit in the hosting configuration settings, you can go to the hosting cpanel to edit as desired in the PHP Select Version area (select Switch To PHP Options) or you can ask the provider. Advanced hosting helps you.
I had a tutorial on raising PHP parameters in case the theme could not be uploaded. You can see detailed instructions Here
4. Re-upload the wordpress code
If you try the above methods and still don’t work, then do this, go to wordpress.org and download the latest version of wordpress, then extract the 2 files wp-admin and wp-includes to overwrite the existing sourcode, Remember to only overwrite these 2 files.
5. Contact hosting provider
This is the last resort if you still can’t fix it yourself internal server error in wordpress, Contact the hosting provider to check for errors, but remember that some providers will not support you with this, because it is related to code and data, so people will not support it for fear of data loss. whether the customer. Do not interfere with web code to avoid misunderstanding or trouble.
Epilogue : With my experience, let fix internal server error in wordpress Only the first 3 ways are successful, the error rate caused by the plugin is quite high, with the PHP Memory Limit parameter also causing errors. However, it is best to try each way from the top down, and try it carefully to succeed.