Focus on cloud service provider activities
Notes on website operation and maintenance

Effective methods for troubleshooting 500 internal server errors encountered by WordPress website

Today, Lao Zuo saw that there was a 500 internal server error on a netizen website in the group, which I had never encountered before. But it seems that it is caused by the problem of the host computer. I think it is a Windows host computer. This problem does occur more frequently in the WIN host computer. After all, I am helping him solve the problem and search for it separately. For example, solutions are provided to tell the need to set file writable permissions, set IIS version compatibility, and the pseudo static problem.

 Effective methods for troubleshooting 500 internal server errors encountered by WordPress website

In fact, when encountering such problems, there is no special error report, and we can only check one by one. Here Lao Zuo recorded the process of troubleshooting for this netizen, and of course, the problem was solved finally.

First, set site directory permissions

According to the friends who have used the solution to this problem, I didn't set the permission through FTP. I log in to the server directly and set the read/write permissions in batches. But the problem has not been solved.

Second, the server configuration problem

At first, I wondered whether there was a problem with the server configuration. So I put a separate PHP file in and saw that PHP information can be detected. It seems that the server environment is OK. In addition, I put another program CMS separately and found that there is no problem. It seems that the problem is not in the server, but in the WP program.

Third, solve the pseudo static problem

It turns out that he came in from the relocated website, and the htaccess pseudo static file in the root directory of this website is not original WORDPRESS, but is not clear about the pseudo static of other environments. So I deleted the pseudo static to solve the problem. It can't be deleted here. I have to move a pseudo static file. Here I find the WordPress Apache pseudo static file( See here )。

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !- f
RewriteCond %{REQUEST_FILENAME} !- d
RewriteRule . / index.php [L] </IfModule>
# END WordPress

Of course, the final problem is solved.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Effective methods for troubleshooting 500 internal server errors encountered by WordPress website